JavaScript MCQ : JS Basics (Multiple Choice Questions)


Question 1
In order to Hide JS to be shown as its page content ,which Comment is Used ?
A
<!--
----------------
----------------
-->
B
<!--
----------------
----------------
//-->
C
// -----------------
D
/*
------
------
*/
Question 2
All modern browsers supports JS.
A
False
B
True
Question 3
We use _______ style comment to prevent showing Java Script as Content in the old browsers.
A
C
B
CSS
C
JS
D
HTML
Question 4
<html>
<body>
<script type="text/javascript">
<!--
document.print("Hello");
//-->
</script>
</body>
</html>
What will be the Output of the above Code ?
A
Will not print anything because of Comment.
B
Will Throw Error
C
Hello
D
None of These
Question 4 Explanation: 
Comment is used to prevent showing JS as page content in Old browsers.
Question 5
Which was the first browser to support JavaScript ?
A
Mozilla Firefox
B
Netscape
C
Google Chrome
D
IE
There are 5 questions to complete.