Time Left : 00 : 30 : 00

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

Correct Answer : D

Which of the following is the correct output for the following JavaScript code?

var grade='Z';  
var result;  
switch(grade)  
{  
case'A':  
        result+="10";  
case'B':  
        result+=" 9";  
case'C':  
        result+=" 8";  
default:  
        result+=" 0";  
}  
console.log(result);

 

Correct Answer : D

In this example, what is the VALUE of employee.type?

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

 

Correct Answer : C

What will happen, if the following JavaScript code is executed?

var count =0;  
while (count <10)  
{  
     console.log(count);  
     count++;  
}

 

Correct Answer : C

What is the basic purpose of the "toLocateString()" method?

Correct Answer : B

((...x, xs)=>x)(1,2,3)

 

Correct Answer : D

JavaScript types are _____.

Correct Answer : B

How to round the number 3.12 to a closer integer number?

Correct Answer : A

What is the use of the <noscript> tag in Javascript?

Correct Answer : A

typeof (new class f() { [f]() { }, f: { } })[`${f}`]

 

Correct Answer : D

What will be the output of the following JavaScript code?

const values = [10, 20, 30];
const result = values.map(myFunction);

document.write("Result: ", result);

function myFunction(value, index, array) {
  return value * value;
}

 

Correct Answer : C

Which of the following is a server-side JavaScript object?

Correct Answer : C

What two structures is JSON built on?

Correct Answer : A

What will be the output of the following JavaScript code?

var str = "40";  
var num =50; 

console.log(str + num);

 

Correct Answer : A

Which of these contains an executable statement?

Correct Answer : C

Which of the following is the correct statement of WHILE loop start?

Correct Answer : A

What will be the output of the below code ?

console.log( typeof( '5' + 5))

 

Correct Answer : B

What is divide by 0 in Javascript?

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

 

Correct Answer : C

Which company developed JavaScript?

Correct Answer : A

When interpreter encounters an empty statements, what it will do:

Correct Answer : D

Which of the following one is the property of the primary expression:

Correct Answer : D

Which one of the following is used for calling a function or a method in JavaScript:

Correct Answer : C

What event do you use to perform something after the page has finished loading?

Correct Answer : B

What is the default value of an uninitialized variable?

Correct Answer : B

When the switch statement matches the expression with the given labels, how is the comparison done?

Correct Answer : A

Both the "rduucedRight()" and "reduce()" methods follow which one of the following common operation?

Correct Answer : A

Which one of the following symbol is used for creating single-line comments in the javascript?

Correct Answer : B

Which method is used to get the year of a date as a four-digit number?

Correct Answer : C

What will be the output of the following JavaScript code?

let x = 10; 
document.write(typeof x, " , ", typeof String(x));

 

Correct Answer : A

What are the benefits of using JavaScript for form validation?

Correct Answer : D