A statement block is a
A statement block is a
JavaScript is designed for following purpose
JavaScript is designed for following purpose
The snippet that has to be used to check if “a” is not equal to “null” is
The snippet that has to be used to check if “a” is not equal to “null” is
Consider the following code snippet
while (a != 0)
{
if (spam>a == 1)
continue;
else
a++;
}
What will be the role of the continue keyword in the above code snippet?
Consider the following code snippet
while (a != 0)
{
if (spam>a == 1)
continue;
else
a++;
}
What will be the role of the continue keyword in the above code snippet?
Which attribute is used to specify that the script is executed when the page has finished parsing ( only for external scripts )
Which attribute is used to specify that the script is executed when the page has finished parsing ( only for external scripts )
The JavaScript’s syntax calling ( or executing ) a function or method is called
The JavaScript’s syntax calling ( or executing ) a function or method is called
Consider the following code snippet
function printArray(a)
{
var len = a.length, i = 0;
if (len == 0)
console.log("Empty Array");
else
{
do
{
console.log(a[i]);
} while (++i < len);
}
}
What does the above code result?
Consider the following code snippet
function printArray(a)
{
var len = a.length, i = 0;
if (len == 0)
console.log("Empty Array");
else
{
do
{
console.log(a[i]);
} while (++i < len);
}
}
What does the above code result?
A conditional expression is also called a
A conditional expression is also called a
Assume that we have to convert “false” that is a non-string to string. The command that we use is (without invoking the “new” operator)
Assume that we have to convert “false” that is a non-string to string. The command that we use is (without invoking the “new” operator)
JavaScript can be written
JavaScript can be written
Underscore can be used as first letter while declaring variable in JavaScript.
Underscore can be used as first letter while declaring variable in JavaScript.
A proper scripting language is a
A proper scripting language is a
To determine whether one object is the prototype of (or is part of the prototype chain of) another object, one should use the
To determine whether one object is the prototype of (or is part of the prototype chain of) another object, one should use the
The escape sequence ‘f’ stands for
The escape sequence ‘f’ stands for
Consider the following code snippet
The above prototype represents a
Consider the following code snippet
The above prototype represents a
Consider the following statements
var count = 0;
while (count < 10)
{
console.log(count);
count++;
}
In the above code snippet, what happens?
Consider the following statements
var count = 0;
while (count < 10)
{
console.log(count);
count++;
}
In the above code snippet, what happens?
Variable can hold ________ value at a time.
Variable can hold ________ value at a time.
JavaScript is ideal to
JavaScript is ideal to
JavaScript is invented by ________.
JavaScript is invented by ________.
Among the following, which one is a ternary operator?
Among the following, which one is a ternary operator?
JavaScript Code is written inside file having extension __________.
JavaScript Code is written inside file having extension __________.
Which of the following is not considered as an error in JavaScript?
Which of the following is not considered as an error in JavaScript?
The property of a primary expression is
The property of a primary expression is
The generalised syntax for a real number representation is
The generalised syntax for a real number representation is
Consider the following code snippet
function f(o)
{
if (o === undefined) debugger;
}
What could be the task of the statement debugger?
Consider the following code snippet
function f(o)
{
if (o === undefined) debugger;
}
What could be the task of the statement debugger?
A function definition expression can be called
A function definition expression can be called
Consider the following code snippet :
var book = {
"main title": "JavaScript",
'sub-title': "The Definitive Guide",
"for": "all audiences",
author: {
firstname: "David",
surname: "Flanagan"
}
};
In the above snippet, firstname and surname are
Consider the following code snippet :
var book = {
"main title": "JavaScript",
'sub-title': "The Definitive Guide",
"for": "all audiences",
author: {
firstname: "David",
surname: "Flanagan"
}
};
In the above snippet, firstname and surname are
A JavaScript program developed on a Unix Machine
A JavaScript program developed on a Unix Machine
Among the keywords below, which one is not a statement?
Among the keywords below, which one is not a statement?
Consider the following code snippet
function tail(o)
{
for (; o.next; o = o.next) ;
return o;
}
Will the above code snippet work? If not, what will be the error?
Consider the following code snippet
function tail(o)
{
for (; o.next; o = o.next) ;
return o;
}
Will the above code snippet work? If not, what will be the error?
Local Browser used for validations on the Web Pages uses __________.
Local Browser used for validations on the Web Pages uses __________.
JavaScript was invented at _______ Lab.
JavaScript was invented at _______ Lab.
The object has three object attributes namely
The object has three object attributes namely
Multiple Declarations of variables are separated by ___________ symbol.
Multiple Declarations of variables are separated by ___________ symbol.
Variable declared inside JavaScript Function will be called as ____________.
Variable declared inside JavaScript Function will be called as ____________.
When there is an indefinite or an infinity value during an arithmetic value computation, javascript
When there is an indefinite or an infinity value during an arithmetic value computation, javascript
The “var” and “function” are
The “var” and “function” are
The purpose of extensible attribute is to
The purpose of extensible attribute is to
The output for the following code snippet would most appropriately be
var a=5 , b=1
var obj = { a : 10 }
with(obj)
{
alert(b)
}
The output for the following code snippet would most appropriately be
var a=5 , b=1
var obj = { a : 10 }
with(obj)
{
alert(b)
}
JavaScript is a _______________ language
JavaScript is a _______________ language
When an empty statement is encountered, a JavaScript interpreter
When an empty statement is encountered, a JavaScript interpreter
A linkage of series of prototype objects is called as :
A linkage of series of prototype objects is called as :
Consider the below given syntax
book[datatype]=assignment_value;
In the above syntax, the datatype within the square brackets must be
Consider the below given syntax
book[datatype]=assignment_value;
In the above syntax, the datatype within the square brackets must be
What kind of an expression is “new Point(2,3)”?
What kind of an expression is “new Point(2,3)”?
Which of the operator is used to test if a particular property exists or not?
Which of the operator is used to test if a particular property exists or not?
Consider the following statements
var text = "testing: 1, 2, 3"; // Sample text
var pattern = /d+/g // Matches all instances of one or more digits
In order to check if the pattern matches with the string “text”, the statement is
Consider the following statements
var text = "testing: 1, 2, 3"; // Sample text
var pattern = /d+/g // Matches all instances of one or more digits
In order to check if the pattern matches with the string “text”, the statement is
Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts)
Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts)
Which was the first browser to support JavaScript ?
Which was the first browser to support JavaScript ?
One of the special feature of an interpreter in reference with the for loop is that
One of the special feature of an interpreter in reference with the for loop is that
The main purpose of a “Live Wire” in NetScape is to
The main purpose of a “Live Wire” in NetScape is to
The basic purpose of the toLocaleString() is to
The basic purpose of the toLocaleString() is to
JavaScript is ______ Side Scripting Language.
JavaScript is ______ Side Scripting Language.
JavaScript Code can be called by using
JavaScript Code can be called by using
The statement a===b refers to
The statement a===b refers to
JavaScript Code can be called by using
JavaScript Code can be called by using
Initialization of variable can be done by writing _____ operator in between variable name and operand value.
Initialization of variable can be done by writing _____ operator in between variable name and operand value.
“An expression that can legally appear on the left side of an assignment expression.” is a well known explanation for variables, properties of objects, and elements of arrays. They are called
“An expression that can legally appear on the left side of an assignment expression.” is a well known explanation for variables, properties of objects, and elements of arrays. They are called
A hexadecimal literal begins with
A hexadecimal literal begins with
Javascript is _________ language.
Javascript is _________ language.
Consider the following statements
switch(expression)
{
statements
}
In the above switch syntax, the expression is compared with the case labels using which of the following operator(s) ?
Consider the following statements
switch(expression)
{
statements
}
In the above switch syntax, the expression is compared with the case labels using which of the following operator(s) ?
Which of the following Attribute is used to include External JS code inside your HTML Document
Which of the following Attribute is used to include External JS code inside your HTML Document
The type of a variable that is volatile is
The type of a variable that is volatile is
Spaces,Punctuation marks are called as __________ Symbols in JavaScript.
Spaces,Punctuation marks are called as __________ Symbols in JavaScript.
JavaScript Code can be called by using _________.
JavaScript Code can be called by using _________.
Local Variables are destroyed after execution of function.
Local Variables are destroyed after execution of function.
What are the three important manipulations done in a for loop on a loop variable?
What are the three important manipulations done in a for loop on a loop variable?
Consider the following snippet code
var string1 = ”123”;
var intvalue = 123;
alert( string1 + intvalue );
The result would be
Consider the following snippet code
var string1 = ”123”;
var intvalue = 123;
alert( string1 + intvalue );
The result would be
The development environment offers which standard construct for data validation
The development environment offers which standard construct for data validation
It is good to include JS code inside footer section in order to speed up the Page loading time of Webpage.
It is good to include JS code inside footer section in order to speed up the Page loading time of Webpage.
JS code included inside head section is loaded before loading page.
JS code included inside head section is loaded before loading page.
Identify the process done in the below code snippet
o = {x:1, y:{z:[false,null,""]}};
s = JSON.stringify(o);
p = JSON.parse(s);
Identify the process done in the below code snippet
o = {x:1, y:{z:[false,null,""]}};
s = JSON.stringify(o);
p = JSON.parse(s);
The script tag must be placed in
The script tag must be placed in
Which is a more efficient code snippet ?
Code 1 :
for(var num=10;num>=1;num--)
{
document.writeln(num);
}
Code 2 :
var num=10;
while(num>=1)
{
document.writeln(num);
num++;
}
Which is a more efficient code snippet ?
Code 1 :
for(var num=10;num>=1;num--)
{
document.writeln(num);
}
Code 2 :
var num=10;
while(num>=1)
{
document.writeln(num);
num++;
}
The unordered collection of properties, each of which has a name and a value is called
The unordered collection of properties, each of which has a name and a value is called
We can declare ___________ at a time. Select most appropriate option.
We can declare ___________ at a time. Select most appropriate option.
The output for the following code snippet would most appropriately be
var a=5 , b=1
var obj = { a : 10 }
with(obj)
{
alert(b)
}
The output for the following code snippet would most appropriately be
var a=5 , b=1
var obj = { a : 10 }
with(obj)
{
alert(b)
}
Integer Variable is declared using following syntax in JavaScript.
Integer Variable is declared using following syntax in JavaScript.
Integer Variable is declared using following syntax in JavaScript.
Integer Variable is declared using following syntax in JavaScript.
The enumeration order becomes implementation dependent and non-interoperable if :
The enumeration order becomes implementation dependent and non-interoperable if :
What will happen if the body of a for/in loop deletes a property that has not yet been enumerated?
What will happen if the body of a for/in loop deletes a property that has not yet been enumerated?
We can embed JS code inside HTML directly ?
We can embed JS code inside HTML directly ?
Java Script Variable should be Case ___________.
Java Script Variable should be Case ___________.
What will be the step of the interpreter in a jump statement when an exception is thrown?
What will be the step of the interpreter in a jump statement when an exception is thrown?