JAVASCRIPT QUIZ
1 .
Which attribute needs to be changed to make elements invisible?

Correct Answer : Option (A)

visibilty
  Show Answer
2 .
Which is not a primitive data type in JavaScript?

Correct Answer : Option (D)

character
  Show Answer
3 .
Which event fires whenever a control loses focus?

Correct Answer : Option (C)

onblur
  Show Answer
4 .
Which of the ways below is incorrect of instantiating a date?

Correct Answer : Option (C)

new Date(seconds)
  Show Answer
5 .
What is the correct JavaScript syntax for opening a new window called "ftl" ?

Correct Answer : Option (A)

ftl = window.open("http://www.freetimelearning.com");
  Show Answer
6 .
Which of the following is used to capture all click events in a window?

Correct Answer : Option (A)

window.captureEvents(Event.CLICK);
  Show Answer
7 .
How do you round the number 7.25, to the nearest integer?

Correct Answer : Option (C)

Math.round(7.25)
  Show Answer
8 .
How would one declare a string variable?

Correct Answer : Option (A)

Any of these
  Show Answer
9 .
Why so Java and JavaScript have similar name?

Correct Answer : Option (B)

The syntax of JavaScript is loosely based on Java syntax
  Show Answer
10 .
How do you find the number with the highest value of x and y?

Correct Answer : Option (C)

Math.max(x, y)
  Show Answer