JavaScript MCQ : JS Statements (Multiple Choice Questions)


Question 1
/* This is Simple Comment */
This is the example of ____________ Comment.
A
Single Line Comment
B
Multiple Line Comment
Question 2
Select appropriate option(s) : JS Comment can be used for following purposes -
A
All of these
B
to Hide Non-usable Multiline Code
C
used for Documentation
D
to Hide Non-usable line.
Question 3
<script type="text/javascript">
// document.write("<h1>Heading</h1>");

document.write("<p>Google</p>");
document.write("<p>Yahoo</p>");
</script>
Which of the statement will be neglected by Browser ?
A
<h1>Heading</h1>
B
<p>Google</p>
C
All Statements
D
<p>Yahoo</p>
Question 4
Person XYZ wrote his name and date of code creation at the start , What kind of comment he has written ?
A
Documentation Comment
B
Code Hiding Comment
C
Functional Comment
D
None of These
Question 5
In multiple line comment , End of the comment is specified by ________ Symbol.
A
//
B
\\
C
*/
D
*\
There are 5 questions to complete.