The generalised syntax for a real number representation is
The generalised syntax for a real number representation is
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)
}
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.
JavaScript Code is written inside file having extension __________.
JavaScript Code is written inside file having extension __________.
Among the following, which one is a ternary operator?
Among the following, which one is a ternary operator?
Local Variables are destroyed after execution of function.
Local Variables are destroyed after execution of function.
The main purpose of a “Live Wire” in NetScape is to
The main purpose of a “Live Wire” in NetScape is to
JavaScript Code can be called by using
JavaScript Code can be called by using
JavaScript Code can be called by using _________.
JavaScript Code can be called by using _________.
Integer Variable is declared using following syntax in JavaScript.
Integer Variable is declared using following syntax in JavaScript.
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?
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
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++;
}
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?
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)
}
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)
The escape sequence ‘f’ stands for
The escape sequence ‘f’ stands for
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?
A JavaScript program developed on a Unix Machine
A JavaScript program developed on a Unix Machine
JavaScript is ideal to
JavaScript is ideal to
The enumeration order becomes implementation dependent and non-interoperable if :
The enumeration order becomes implementation dependent and non-interoperable if :
A function definition expression can be called
A function definition expression can be called
JavaScript is ______ Side Scripting Language.
JavaScript is ______ Side Scripting Language.
Variable declared inside JavaScript Function will be called as ____________.
Variable declared inside JavaScript Function will be called as ____________.
The script tag must be placed in
The script tag must be placed in
A proper scripting language is a
A proper scripting language is a
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
Variable can hold ________ value at a time.
Variable can hold ________ value at a time.
Java Script Variable should be Case ___________.
Java Script Variable should be Case ___________.
JavaScript is a _______________ language
JavaScript is a _______________ language
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?
JavaScript was invented at _______ Lab.
JavaScript was invented at _______ Lab.
Integer Variable is declared using following syntax in JavaScript.
Integer Variable is declared using following syntax in JavaScript.
We can declare ___________ at a time. Select most appropriate option.
We can declare ___________ at a time. Select most appropriate option.
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?
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 basic purpose of the toLocaleString() is to
The basic purpose of the toLocaleString() is to
The property of a primary expression is
The property of a primary expression is
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?
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) ?
When an empty statement is encountered, a JavaScript interpreter
When an empty statement is encountered, a JavaScript interpreter
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?
Javascript is _________ language.
Javascript is _________ language.
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)
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
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.
We can embed JS code inside HTML directly ?
We can embed JS code inside HTML directly ?
A statement block is a
A statement block is a
The object has three object attributes namely
The object has three object attributes namely
The type of a variable that is volatile is
The type of a variable that is volatile is
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);
JavaScript Code can be called by using
JavaScript Code can be called by using
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
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?
Which of the following is not considered as an error in JavaScript?
Which of the following is not considered as an error in 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
Which was the first browser to support JavaScript ?
Which was the first browser to support JavaScript ?
Spaces,Punctuation marks are called as __________ Symbols in JavaScript.
Spaces,Punctuation marks are called as __________ Symbols in JavaScript.
A conditional expression is also called a
A conditional expression is also called a
The development environment offers which standard construct for data validation
The development environment offers which standard construct for data validation
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 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
A hexadecimal literal begins with
A hexadecimal literal begins with
JavaScript is designed for following purpose
JavaScript is designed for following purpose
A linkage of series of prototype objects is called as :
A linkage of series of prototype objects is called as :
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?
Underscore can be used as first letter while declaring variable in JavaScript.
Underscore can be used as first letter while declaring variable in JavaScript.
JavaScript can be written
JavaScript can be written
The “var” and “function” are
The “var” and “function” are
The purpose of extensible attribute is to
The purpose of extensible attribute is to
What kind of an expression is “new Point(2,3)”?
What kind of an expression is “new Point(2,3)”?
JS code included inside head section is loaded before loading page.
JS code included inside head section is loaded before loading page.
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
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
“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
JavaScript is invented by ________.
JavaScript is invented by ________.
Multiple Declarations of variables are separated by ___________ symbol.
Multiple Declarations of variables are separated by ___________ symbol.
Consider the following code snippet
The above prototype represents a
Consider the following code snippet
The above prototype represents a
Local Browser used for validations on the Web Pages uses __________.
Local Browser used for validations on the Web Pages uses __________.
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 statement a===b refers to
The statement a===b refers to
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