JavaScript MCQ : JS Statements (Multiple Choice Questions)


Question 1
____________ is used to assign value to the variable.
A
Assignment Statement
B
Declaration Statement
C
Conditional Statement
D
Executable Statement
Question 2
JavaScript Statement may contain HTML Tags. Say True/False.
A
False
B
True
Question 3
JavaScript is Case Sensitive !!Say True or False
A
True
B
False
Question 4
What will be printed inside webpage ?
var message="Hello JS";
document.write(Message);
A
Nothing Will be printed because Code is not error free,
B
"Hello JS" will be printed multiple times
C
It will crash browser since No Error handler is provided.
D
Hello JS
Question 5
It is not necessary to write Semicolon at the end of JS statement !!
A
No
B
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.