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