Time Left : 00 : 30 : 00

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

Correct Answer : B

Which of the following is not an example of closures?

Correct Answer : D

Which of the following function of String object causes a string to be displayed in the specified size as if it were in a <font size = 'size'> tag?

Correct Answer : C

Which character is used to break up a code line within a text string in JavaScript?

Correct Answer : B

What will be the output of the following code snippet?

const example = ({ a, b, c }) => {
 console.log(a, b, c);
};
example(0, 1, 2);

 

Correct Answer : C

Syntax for creating a RegExp object:
1. var txt=new RegExp(pattern,attributes);
2. var txt=/pattern/attributes;
Which of the above mentioned syntax will correct?

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 will be the output of the following JavaScript code?

let x = "10";
let y = + x;
    
document.write(typeof y);

 

Correct Answer : D

What will be the function of the following JavaScript code?

var scope = "global scope";
function checkscope() 
{
    var scope = "local scope"; 
    function f() 
    { 
         return scope; 
    }
    return f;
}

 

Correct Answer : C

Which JavaScript method is used to create a new array with array elements that passes a test?

Correct Answer : D

Which is the correct syntax to declare a constant in JavaScript?

Correct Answer : D

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

Correct Answer : A

Which of the following function of String object returns a string representing the specified object?

Correct Answer : C

How are objects compared when they are checked with the strict equality operator?

Correct Answer : B

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

function display1(option)  
{  
    return(option ?  "true" :  "false");  
}  
    bool ans=true;  
console.log(display1(ans));  

 

Correct Answer : B

What is the output of the following JavaScript code?

var a = 10 + 20 + "5";
console.log(a);

 

Correct Answer : B

typeof `${{Object}}`.prototype

 

Correct Answer : B

For which purpose the array "map()" method is used?

Correct Answer : D

Which of these data interchange formats has seen a decline in usage in favor of JSON?

Correct Answer : D

Which method returns the character at the specified index?

Correct Answer : C

Which object in Javascript doesn’t have a prototype?

Correct Answer : A

To know the identifier of the user’s OS, we use ______?

Correct Answer : C

How to detect the name of the client’s browser?

Correct Answer : A

Which event is specific to the keyboard?

Correct Answer : A

Can be redeclare a variable that is declared with let keyword?

Correct Answer : B

Which one of the following operator is used to check weather a specific property exists or not:

Correct Answer : D

Which of the following function of Number object returns a string value version of the current number?

Correct Answer : A

Which is the exponentiation operator in JavaScript?

Correct Answer : C

What types of values can you have in JSON key:value pairs?

Correct Answer : C

Which of the following statements is not true about this example?

const obj = {
  outer: function() {
    const self1 = this

    const inner1 = () => {
      const self2 = this

      const inner2 = () => {
        const self3 = this
      }
    }
  }
}

 

Correct Answer : D