JavaScript MCQ : JS Statements (Multiple Choice Questions)


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