JavaScript MCQ : JS Statements (Multiple Choice Questions)
Question 1 |
____________ is used to assign value to the variable.
Assignment Statement | |
Declaration Statement | |
Conditional Statement | |
Executable Statement |
Question 2 |
JavaScript Statement may contain HTML Tags. Say True/False.
False | |
True |
Question 3 |
JavaScript is Case Sensitive !!Say True or False
True | |
False |
Question 4 |
What will be printed inside webpage ?
var message="Hello JS"; document.write(Message);
Nothing Will be printed because Code is not error free, | |
"Hello JS" will be printed multiple times | |
It will crash browser since No Error handler is provided. | |
Hello JS |
Question 5 |
It is not necessary to write Semicolon at the end of JS statement !!
No | |
Yes |
Question 5 Explanation:
The browser is supposed to interpret the end of the line as the end of the statement.
There are 5 questions to complete.