JAVASCRIPT QUIZ
1 .
__________ JavaScript is also called client-side JavaScript.

Correct Answer : Option (B)

Navigator
  Show Answer
2 .
Which of the following is not a reserved word?

Correct Answer : Option (D)

program
  Show Answer
3 .
Which of the following is a server-side Java Script object?

Correct Answer : Option (B)

File
  Show Answer
4 .
Which of the following is a client-side Java Script object?

Correct Answer : Option (C)

FileUpload
  Show Answer
5 .
What’s the correct syntax for creating a Date object for January 7, 1991?

Correct Answer : Option (C)

new Date(1991, 0, 7);
  Show Answer
6 .
What is the correct JavaScript syntax to change the content of the HTML element below?
<p id="demo">Free Time Learn Demo.</p>

Correct Answer : Option (D)

document.getElementById("demo").innerHTML = "Hello World!";
  Show Answer
7 .
Which of the following is correct to write “Hello World” on the web page?

Correct Answer : Option (C)

document.write(“Hello World”)
  Show Answer
8 .
Which operator is used to assign a value to a variable?

Correct Answer : Option (A)

=
  Show Answer
9 .
How do you create a function in JavaScript?

Correct Answer : Option (C)

function myFunction()
  Show Answer
10 .
How do you declare a JavaScript variable?

Correct Answer : Option (B)

var carName;
  Show Answer