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. Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?

o(x,y);
o.m(x) && o.m(y);
m(x,y);
o.m(x,y);

2. The capability to store one object inside another object known as?

Encapsulation
Aggregation
Inheritance
Polymorphism

3. If the operator value is null, then the unary operator returns the typeof _________.

undefined
object
boolean
string

4. Variable declared is example of ___________ Variable.

function message() {
var name = "Bench";
alert(name);
}

Local
Global
Semi-Global
None of the above

5. What is the code snippet to go back to a history thrice?

history(3);
history(-3);
history.go(-3);
history.go(3);

6. What will be the output of the below code ?

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

number
string
object
null

7. 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

8. In Javascript, DOM stands for?

Document Oriented Model
Document Object Method
Document Object Model
Document Optimized Model

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

System.out.println( Pattern.matches("\d", "9") );

true
false
undefined
9

10. The W3C DOM standard is separated into _____ different parts

1
2
3
4

Results