Javascript Quiz

Javascript Quiz

4th Grade

10 Qs

quiz-placeholder

Similar activities

Arrays

Arrays

KG - University

10 Qs

Questions on computer programming (for JavaScript)

Questions on computer programming (for JavaScript)

3rd Grade - University

7 Qs

Программирование Minecraft. JavaScript. 3

Программирование Minecraft. JavaScript. 3

2nd - 5th Grade

14 Qs

COM 211

COM 211

1st - 10th Grade

10 Qs

JS Talks, Quiz #5

JS Talks, Quiz #5

1st - 12th Grade

15 Qs

Calculator

Calculator

2nd - 8th Grade

15 Qs

Orange Belt Quiz

Orange Belt Quiz

KG - 12th Grade

10 Qs

JS Review

JS Review

2nd - 5th Grade

13 Qs

Javascript Quiz

Javascript Quiz

Assessment

Quiz

Computers

4th Grade

Hard

Created by

itelasoft office

Used 12+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the output of the following code snippet?

1

2

undefined 

ReferenceError

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

Which of the following comparisons return true in JavaScript?

1 and 3

1 and 4 

2 and 3 

2 and 4

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image

What is the value of arr3 after executing the following code snippet?

[1, 2, 3, 4, 5, 6] 

[1, 4, 2, 5, 3, 6] 

[4, 5, 6, 1, 2, 3] 

[1, 2, 3]

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following statements is true about JavaScript variables?

Variables must be declared using the 'var' keyword. 

Variables can be assigned values of any data type. 

Variables can be redeclared within the same scope using the 'let' keyword. 

Variables declared using the 'const' keyword can be reassigned a new value.

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a valid way to create an empty object in JavaScript?

var obj = {}; 

var obj = (); 

var obj = []; 

var obj = "";

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the index of the first element in a JavaScript array?

0

1

-1

NaN

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a valid way to access an element in a JavaScript array?

array(element) 

array[element] 

array{element} 

array.element

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?