Time Left : 00 : 30 : 00

A function with no return value is called

Correct Answer : A

The pop() method of the array does which of the following task ?

Correct Answer : A

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++;
}

 

Correct Answer : A

What error does JSON.parse() throw when the string to parse is not valid JSON?

Correct Answer : C

Which of the following function of Array object returns a string representing the array and its elements?

Correct Answer : D

What function will convert a JavaScript object to a JSON string?

Correct Answer : A

Does JavaScript allow exception handling?

Correct Answer : A

Predict the output of the following JavaScript code.

var a = "javascript"; 
var result = a.substring(2, 3); 
document.write(result);

 

Correct Answer : C

What will be the output of the following Javascript code?

var string1 = "Pass marks are ";
var intvalue = 35;
alert( string1 + intvalue );

 

Correct Answer : C

Which of the following code will return a valid JSON object?

Correct Answer : D

What is used by the JSONObject and JSONArray constructors to parse JSON source strings?

Correct Answer : A

What is the output of following Javascript?

var a = 'java';
var b = 'script';
var c = a/b;
document.write(c);

 

Correct Answer : C

What is divide by 0 in Javascript?

var a = 10;
var b = 0;
document.write(a/b);

 

Correct Answer : C

JavaScript can be written __________

Correct Answer : A

Which of these is proper a JSON array?

Correct Answer : D

What is the purpose of the dynamic scoping?

Correct Answer : A

The unordered collection of properties, each of which has a name and a value is called

Correct Answer : B

The object has three object attributes namely

Correct Answer : C

How to get a particular value using the tagged name?

Correct Answer : C

Javascript is ideal to?

Correct Answer : B

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

Correct Answer : C

The meaning for Augmenting classes is that:

Correct Answer : A

Which of the following function of String object returns the characters in a string between two indexes into the string?

Correct Answer : D

Does JSON support Unicode characters?

Correct Answer : C

The snippet that has to be used to check if “a” is not equal to “null” is

Correct Answer : D

In the below notation, Employee is of type { "Employee": { "Name": "Amy", "Age": 25 } }

Correct Answer : A

Which of the following is not JavaScript Data Types?

Correct Answer : D

In modern websites what is the common usage for JSON?

Correct Answer : B

The unordered collection of properties, each of which has a name and a value is called

Correct Answer : B

What is the MIME type of JSON?

Correct Answer : C