JavaScript MCQ : JS Statements (Multiple Choice Questions)
Question 1 |
/* This is Simple Comment */
This is the example of ____________ Comment.Single Line Comment | |
Multiple Line Comment |
Question 2 |
Select appropriate option(s) : JS Comment can be used for following purposes -
to Hide Non-usable line. | |
All of these | |
to Hide Non-usable Multiline Code | |
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 ?
<p>Yahoo</p> | |
All Statements | |
<h1>Heading</h1> | |
<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 ?
None of These | |
Code Hiding Comment | |
Documentation Comment | |
Functional Comment |
Question 5 |
In multiple line comment , End of the comment is specified by ________ Symbol.
*\ | |
*/ | |
\\ | |
// |
There are 5 questions to complete.