Javascript MCQ Quiz

Javascript MCQ Quiz

1st Grade

15 Qs

quiz-placeholder

Similar activities

Features of a Non Fiction Text 25-2-2021

Features of a Non Fiction Text 25-2-2021

1st Grade

20 Qs

Capital letters and full stops

Capital letters and full stops

1st Grade

10 Qs

Who's Who ?

Who's Who ?

KG - 1st Grade

10 Qs

Choose the best answer by crossing A,B or C

Choose the best answer by crossing A,B or C

1st Grade

10 Qs

a-z

a-z

1st - 2nd Grade

10 Qs

READING Q - 1ST / FAMILY

READING Q - 1ST / FAMILY

1st Grade

10 Qs

English year 1 Quiz

English year 1 Quiz

1st Grade

15 Qs

English_SEC

English_SEC

1st Grade

10 Qs

Javascript MCQ Quiz

Javascript MCQ Quiz

Assessment

Quiz

English

1st Grade

Practice Problem

Hard

Created by

Mehul Kothari

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Javascript is an _______ language?

statically typed and

scripting

statically typed and programming

dynamically typed and

programming

dynamically typed and scripting

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How can we make the complete object readonly which will not allow to add/delete/update any properties in the object,

Object.freeze(ObjectName)

Object.seal(ObjectName)

All of the above

Object.defineProperty(obj, 'readOnlyProperty',
{

value: 'somevalue',

writable: false,

configurable: true,

enumerable: false


});

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When the switch statement matches the expression with the given labels, how is the comparison done?

None of the above

Only the value of the expression is compared.

Only the datatype of the expression is compared.

Both the datatype and the result of the expression are compared.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

<script type="text/javascript">

a = 5 + "9";

document.write(a);

</script>

Compilation Error

14

59

Run time error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When an operator’s value is NULL, the typeof returned by the unary operator is:

const a = null

console.log(typeof(a))

Boolean

Undefined

Object

Integer

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

var a = true + true + true * 5;

print(a)

7

6

5

15

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code snippet?

print(NaN === NaN);

True

False

undefined

error

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?