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
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
<p>Yahoo</p>
B
All Statements
C
<h1>Heading</h1>
D
<p>Google</p>
Question 4
Person XYZ wrote his name and date of code creation at the start , What kind of comment he has written ?
A
None of These
B
Code Hiding Comment
C
Documentation Comment
D
Functional Comment
Question 5
In multiple line comment , End of the comment is specified by ________ Symbol.
A
*\
B
*/
C
\\
D
//
There are 5 questions to complete.