Contribute Us | Ask Question | login
Try Another Quiz
Question: 1 How to insert a comment that has more than one line?
Your Answer: /*This comment has
more than one line*/
Correct Answer: /*This comment has
more than one line*/
Description: None
Question: 2 How can you add a comment in a JavaScript?
Your Answer: //This is a comment
Correct Answer: //This is a comment
Description: None
Question: 3 How does a FOR loop start?
Your Answer: for (i = 0; i <= 5; i++)
Correct Answer: for (i = 0; i <= 5; i++)
Description: None
Question: 4 What is the correct way to write a JavaScript array?
Your Answer: None
Correct Answer: var colors = ["red", "green", "blue"]
Description: None
Question: 5 How do you round the number 7.25, to the nearest integer?
Your Answer: None
Correct Answer: Math.round(7.25)
Description: None
Question: 6 How do you find the number with the highest value of x and y?
Your Answer: None
Correct Answer: Math.max(x, y)
Description: None
Question: 7 What is the correct JavaScript syntax for opening a new window called "w2" ?
Your Answer: None
Correct Answer: w2 = window.open("http://www.javatpoint.com");
Description: None
http://www.javatpoint.com/description.jsp?x=203&y=10 1/2
5/6/2015 Description of Quiz
Question: 8 How can you detect the client´s browser name?
Your Answer: None
Correct Answer: navigator.appName
Description: None
Question: 9 How does a WHILE loop start?
Your Answer: None
Correct Answer: while (i <= 10)
Description: None
Question: 10 JavaScript is the same as Java.
Your Answer: None
Correct Answer: False
Description: None
Finish
http://www.javatpoint.com/description.jsp?x=203&y=10 2/2