HtmlCssMonk

JavaScript QUIZ – HARD (20 Questions)

56
Created by html-css-monk

JavaScript Quiz – Hard 20

Are you Ready ?

Alrighty then.

Good Luck !

Let’s see what you got.

1 / 20

console.log( typeof [1,2] ) will print out:

2 / 20

What will be the output of the following JavaScript code?

var val1=[1,2,3];

var val2=[6,7,8];

var result=val1.concat(val2);

document.writeln(result);

3 / 20

When reserved words are used as keys in object literals they must be ______?

4 / 20

Which of the following Array prototype method actually modifies the array it’s been called on?

5 / 20

What is the observation made in the following JavaScript code?

var count = [1,,3];

6 / 20

Which event fires whenever a control loses focus?

7 / 20

var q = null; q++;

What is q?

8 / 20

The method or operator used to identify the array is __________

9 / 20

The syntax of a blur method in a button object is ______________

10 / 20

Which is the function used to retrieve a value?

11 / 20

Which of the following invokes a user-defined object constructor function?

12 / 20

Which of these will create a copy of an array such that changes to the old array will not be reflected in the new array?

13 / 20

What will be the output of the following JavaScript code?

<p id=“demo”></p>

<script>

var carName = “Volvo”;

var carName;

document.getElementById(“demo”).innerHTML = carName;

</script>

14 / 20

What’s the output?

<script type=”text/javascript”>

var s = “9123456 or 80000?”;

var pattern = /\d{4}/;

var output = s.match(pattern);

document.write(output);

</script>

15 / 20

Which are the different value types in JavaScript?

16 / 20

In the following switch syntax, the expression is compared with the case labels using which of the following operator(s)?

switch(expression) {

statements

}

17 / 20

What will be the output of the following JavaScript code?

<p id=“demo”></p>

<script>

document.getElementById(“demo”).innerHTML = Number(true);

</script>

18 / 20

The expression (typeof NaN === “number”) evaluates to:

19 / 20

Which of the following is not a reserved word in the language?

20 / 20

How can you get the total number of arguments passed to a function?

Your score is

The average score is 32%

0%

Exit

About JavaScript Hard Quiz

  • This JavaScript Quiz is designed specially to check your Advance knowledge of JavaScript.
  • You are given 20 MCQ type JavaScript questions in this Quiz.
  • There is no time Limit, so just keep calm and test your JavaScript knowledge without any rush !
  •  At the end of the Quiz, your total score will be displayed out of 100% maximum score.
  • You need to score atleast 70% (14 correct answers ) to PASS the Quiz.

Answers will not be shown after the quiz. If you really got what it takes , then learn until you can score 100% without seeing answers.


Do you have the courage to go on !!!!


Leave a Comment

Your email address will not be published. Required fields are marked *