Javascript Programming Quiz


Play this Javascript quiz that will help you to excel in Javascript certification exams, placements etc. This Javascript programming quiz consist of 10 questions that you need to solve in 10 minutes. We’ve specially designed this quiz so that you can quickly acquaint to the pattern of questions you can be asked in placement drives, certification exams etc. This Javascript programming test enables you to assess your knowledge of Javascript programming.

Take the Free Practice Test



Javascript MCQs

Practice Javascript MCQ Questions, which will help you to clear your JS related concepts and also helps you to prepare for placements, technical rounds, interviews, competitive exams etc.

Javascript Quiz

Try Free Javascript Quiz, to start a quiz you need to login first, after login you will get start quiz button and then by clicking on that you can start quiz. You will get 10 Minutes to answer all questions.

Javascript Quiz

1. Variables are declared with the _______ keyword.

this
int
var
new

2. What will be the output of the following JavaScript code?

function fun_range(int l)
{
int p=2;
for(int x=0;x {
console.log(p);
}
}
range(4);

2
2222
4
error

3. What will be the output of the following JavaScript code?

function myfun() 
{
document.getElementById ("demo").innerHTML = Boolean(15.00 === 15);
}

true
false
error
0

4. What among the following is an appropriate event handler for input text among the below options ?

onclick
onchange
onkeyup
onblur

5. ........ serializes only the enumerable own properties of an object.

JSON.Parse()
JSON.Stringify()
JSON.Null()
JSON.Objectify()

6. Each tab in the single web browser window is called as ____________

Browsing context
Browser Information
Both Browser Information & Browsing context
Browser Log

7. What will be the output of the following JavaScript code?

const ob1 = 
{  
  	a: 5,  
  	b: 10,  
  	c: 15  
};  
const ob2 = Object.assign({c: 8, d: 3}, ob1);  
console.log(ob2.c, ob2.d);

8,3
15,3
undefined
error

8. How are windows, tabs, iframes, and frames treated according to client-side javascript?

They are all browsing contexts
They are all browsing information
They are all Window contexts
They are all Window objects

9. When will the browser invoke the handler?

Program begins
Any event occurs
Specified event occurs
None of the above

10. What will be the output of the following JavaScript code?

const pt1 = {}; 
const ob1 = Object.create(pt1);
console.log( Object.getPrototypeOf(ob1) === pt1 );

true
false
errot
0

Results