JavaScript MCQ : JS Statements (Multiple Choice Questions)


Question 1
/* This is Simple Comment */
This is the example of ____________ Comment.
A
Multiple Line Comment
B
Single Line Comment
Question 2
Select appropriate option(s) : JS Comment can be used for following purposes -
A
to Hide Non-usable line.
B
All of these
C
to Hide Non-usable Multiline Code
D
used for Documentation
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
All Statements
B
<p>Google</p>
C
<h1>Heading</h1>
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
Functional Comment
B
Code Hiding Comment
C
Documentation 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.