Javascript MCQ Quiz

Javascript MCQ Quiz

1st Grade

15 Qs

quiz-placeholder

Similar activities

Inglés-Verb to be

Inglés-Verb to be

1st Grade - University

10 Qs

PERSONAL INFORMATION QUESTIONS

PERSONAL INFORMATION QUESTIONS

1st - 12th Grade

11 Qs

Interchange Intro Review Unit 1

Interchange Intro Review Unit 1

KG - 1st Grade

10 Qs

Skellig

Skellig

1st - 3rd Grade

10 Qs

Greek and Latin Roots Unit 8

Greek and Latin Roots Unit 8

KG - University

10 Qs

Riddle Quiz

Riddle Quiz

1st Grade - University

10 Qs

Tiết 3: CẤU TRÚC CHƯƠG TRÌNH

Tiết 3: CẤU TRÚC CHƯƠG TRÌNH

1st - 12th Grade

14 Qs

Biography

Biography

KG - Professional Development

10 Qs

Javascript MCQ Quiz

Javascript MCQ Quiz

Assessment

Quiz

English

1st Grade

Hard

Created by

Mehul Kothari

Used 4+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for English