Time Left : 00 : 30 : 00

One of the special features of an interpreter in reference with the for loop is that ___________

Correct Answer : A

What will be the output of the following JavaScript code?

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);
     }
}
printArray([
    1, 2, 3, 4, 5
]);

 

Correct Answer : A

Which of the following code will throw an error?

Correct Answer : C

Which is true about JSON namespacing?

Correct Answer : C

A function with no return value is called

Correct Answer : A

What is the default value of the asyc attribute?

Correct Answer : D

JavaScript is designed for following purpose -

Correct Answer : D

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 the output of below Javascript code?

alert (typeof new Date() );

 

Correct Answer : B

Which of these is correct about the JSON standard?

Correct Answer : A

The object has three object attributes namely

Correct Answer : C

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

Which method receives the return value of setInterval() to cancel future invocations?

Correct Answer : C

How do we define the term Thread?

Correct Answer : C

Which of the following is not JavaScript Data Types?

Correct Answer : D

Which of the following type of variable is visible only within a function where it is defined?

Correct Answer : B

Which of the following is not an example of closures?

Correct Answer : D

Consider the following code snippet

const pi=3.14;
var pi=4;
console.log(pi);

What will be the output for the above code snippet?

Correct Answer : A

Which company developed JavaScript?

Correct Answer : A

Which of the following is not a JSON type?

Correct Answer : B

What is divide by 0 in Javascript?

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

 

Correct Answer : C

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

Correct Answer : D

How does JSON being "lightweight" translate into a benefit for the site visitors?

Correct Answer : A

What are the three important manipulations done in a for loop on a loop variable?

Correct Answer : B

Which of the following function of String object creates a string to be displayed in a big font as if it were in a <big> tag?

Correct Answer : B

Which of the following method checks if its argument is not a number?

Correct Answer : A

Which of the following uses a lot of CPU cycles?

Correct Answer : C

In this example, what would the VALUE of employee.functions[1] be?

{ "employee" : { "type" : "Director", "functions" : ['sales', 'marketing'] } }

 

Correct Answer : C

Which of the following is not the properties of screen objects in JavaScript?

Correct Answer : B

The order of elements in JSON arrays is always preserved.

Correct Answer : B