JavaScript Statements are executed by ________ .
Server
JVM
Compiler
Browser
Java Statement terminated by ______________ ,
Slash
Semicolon
Full Stop
Comma
JavaScript code contain sequence of ___________.
HTML Tags
All of these
Method Calls
Executable Statements
Which of the following is considered as End of Single line comment ?
End of Line
End of Statement
"*/" Symbol
Comment Statement is _________________ type of statement.
Executive
Non Important
Non Executable
Non Usable
Person XYZ wrote his name and date of code creation at the start , What kind of comment he has written ?
Functional Comment
Code Hiding Comment
Documentation Comment
None of These
In multiple line comment , End of the comment is specified by ________ Symbol.
//
*/
*
\
During addition of two numbers , suppose one of the number is NaN then output of the following code will be ?
NaN
Zero
Infinite
Null
+Infinity in JS gets added with +Infinity then output of the code will be -
+Infinity
-Infinity
-Infinity in JS gets added with -Infinity then output of the code will be.
-Infinity in JS gets added with +Infinity then output of the code will be.
var str = "Str"; var num = 10; var output = str + num;
What will be the value of Variable 'output' ?
Nothing will be printed
Str10
/* This is Simple Comment */
This is the example of ____________ Comment.
Single Line Comment
Multiple Line Comment
<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>Google</p>
<p>Yahoo</p>
<h1>Heading</h1>
All Statements
JavaScript is a _______________ language
Object-Oriented
High-level
Assembly-language
Object-Based
The output for the following code snippet would most appropriately be
var a=5 , b=1 var obj = { a : 10 } with(obj) { alert(b) }
10
Error
1
5
Using _______ statement is how you test for a specific condition.
Select
If
Switch
For
Which of the following is the structure of an if statement?
if (conditional expression is true) thenexecute this codeend if
if (conditional expression is true)execute this codeend if
if (conditional expression is true) {//Code Here}
if (conditional expression is true) then {//Code Here}
<script type="text/javascript"> x=4+"4"; document.write(x); </script>
What is the output.?
44
8
4
Error output
<script type="text/javascript"> var s = "9123456 or 80000?"; var pattern = /\d{4}/; var output = s.match(pattern); document.write(output); </script>
What is the output?
9123
91234
80000
None of the above