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

2. what will be the output of below code?

const event = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));
console.log (event.toLocaleString('en-IN', { timeZone: 'UTC' }));

20/12/2012, 3:00:00
12/20/2012, 3:00:00
20/12/2012, 3:00:00 am
2012/12/20, 3:00:00 am

3. A programming language can be called object-oriented if it provides ________ basic capabilities to developers

1
2
3
4

4. what will be the output of below code?
NOTE: The code is executed on 2019-5-9

var todaysDate = new Date()
console.log( todaysDate.toLocaleString() );

2019-05-09T09:29:53.181Z
2019-5-9
15:00:34
2019-5-9 15:02:35

5. What will be printed in the console on execution of the following JS code:

var array = [2, 4, 6, 7, 8, 10];
var myArr= array.filter(v => v / 2 === 0);

console.log(myArr);

myArr
[2, 4, 6, 7, 8, 10]
[2, 4, 6, 8, 10]
[7]

6. what will be the output of below code?

var val = "JavaScript String"
splittedVal = val.split('a',2)
console.log(splittedVal);

[ 'J', 'v' ]
[ 'J' ,'v','Script']
[ 'J', 'v', 'Script String' ]
[ 'JavaScript String' ]

7. The regular expression to match any one character not between the brackets is __________

[....]
[^]
[^...]
[\D]

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

< p id="demo">< /p>
< script>
var a = 20;
var b = "30";
var c = a + b;
document.getElementById ("demo").innerHTML = c;
< /script>

50
20+30
2030
error

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

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

10. The _________ keyword complicates the code and slows down execution speed

this
let
new
none of the above

Results