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 operator evaluates its operands, then discards the value and returns undefined?

In
Comparison
Eval
Void

2. JavaScript counts positions from?

0
1
-1
Can not say

3. What is true about Arrays?

JavaScript does not support associative arrays
You should use objects when you want the element names to be strings
You should use arrays when you want the element names to be numbers
All of the above

4. JavaScript strings are for ________ text.

storing
manipulating
both a and b
none of the above

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

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

6. A ___________ has global scope which means it can be defined anywhere in your JavaScript code.

local variable
global variable
simple variable
complex variable

7. What will be printed in the console on execution of the below code?

var materials = [
'Hydrogen',
'Helium',
'Lithium',
'Beryllium'
];

console.log(materials.map (material => material.length));

[8, 6, 7, 9]
4
[4]
8, 6, 7, 9

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

1
2
3
4

9. _______ extracts a part of a string and returns the extracted part in a new string.

substring()
substr()
strlen()
slice()

10. What is the output for code A and B?

Code A: 
var x = 10;
y = --x + 1;
alert(y);

Code B:
var x = 10;
y = x-- + 1;
alert(y);

10,10
10,11
11,10
11,11

Results