This test consists in two parts: a quiz with 9 questions and a coding part with 3 problems.
This test consists in two parts: a quiz with 9 questions and a coding part with 3 problems.
Write your answer in the corresponding textboxes or choose the rigth radio buttons/checkboxes.
var x = 2 ;
var y = 2 ;
if ( x > y ) {
alert("True") ;
}
else {
alert("False") ;
}
var x = "Monday" ;
var y = "Monday" ;
if ( x == y ) {
alert("True") ;
} else {
alert("False") ;
}
var x = 2 ;
if ( x == 2 ) {
alert("True") ;
}
var x = 3 ;
if ( x == 2 ) {
alert("True") ;
}
x = 3 ;
y = 10 ;
if (x > 0){
y = 12;
}
y = y + 5 ;
alert(y) ;
x = -3 ;
y = 10 ;
if (x > 0){
y = 12 ;
}
y = y + 5 ;
alert(y) ;
x = -3 ;
y = 10 ;
if ( x > 0 ) {
y = 12 ;
y = y + 5 ;
}
alert(y) ;
x
for which the following code will produce the value "yes". There may be more than one correct choice.
if ( ! (x < 5) ) {
alert("yes") ;
}
else {
alert("No") ;
}
var name1 = "John" ;
var name2 = "Donald" ;
var x = 30 ;
var person = "unknown";
if ( name1 < name2 ) {
person = name1 ;
}
else {
person = name2 ;
}
alert( person ) ;