HtmlCssMonk

JavaScript QUIZ – HARD (10 Questions)

1248
Created by html-css-monk

JavaScript Quiz – Hard

Are you Ready ?

Alrighty then.

Good Luck !

Let’s see what you got.

1 / 10

The script tag must be placed in

2 / 10

What is the value of x?

var a = false;

var x = a ? “A” : “B”;

3 / 10

Which is the function used to retrieve a value?

4 / 10

Which event fires whenever a control loses focus?

5 / 10

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>

6 / 10

What will be the output of the following JavaScript code?

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

<script>

Var arr = [“one”, “two”, “three”,];

arr.shift(); document.getElementById(“demo2”).innerHTML = arr;

</script>

7 / 10

Which is the function used to store a value?

8 / 10

How do you write a conditional statement that will *only* execute the contained code if variable x has a value 5 of type *number*?

9 / 10

What will be the output of the following JavaScript code?

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

<script>

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

</script>

10 / 10

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

Your score is

The average score is 55%

0%

Exit

About JavaScript Hard Quiz

  • This JavaScript Quiz is designed specially to check your Advance knowledge of JavaScript.
  • You are given 10 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% (7 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 *