JAVASCRIPT FINAL EXAM

JAVASCRIPT FINAL EXAM

20 Qs

quiz-placeholder

Similar activities

2º - Module 3 (A)

2º - Module 3 (A)

KG - University

20 Qs

Phrasals Unit 5 - 2nd bto

Phrasals Unit 5 - 2nd bto

12th Grade

16 Qs

Direction locations

Direction locations

6th Grade

20 Qs

6thPrim. Tr2 . Theme 3 lesson 5,6 / W (3)

6thPrim. Tr2 . Theme 3 lesson 5,6 / W (3)

KG - University

17 Qs

Week 10 - Quiz

Week 10 - Quiz

KG - University

22 Qs

Question Tags

Question Tags

KG - University

20 Qs

Copy of  Unit 2, Lesson 1 The Discovery Fair Test

Copy of Unit 2, Lesson 1 The Discovery Fair Test

KG - University

15 Qs

JAVASCRIPT FINAL EXAM

JAVASCRIPT FINAL EXAM

Assessment

Quiz

others

Hard

Created by

UKIZURU MUSTAPHA

FREE Resource

AI

Enhance your content

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a primitive data type in JavaScript?

a) Number

b) String

c) Boolean

d) Object

2.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

What is the output of the following code: let x = [1, 2, 3]; document.write(x[3]);
a) 3
b) undefined
c) Error
d) NaN

3.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

Which of the following is not a valid way to declare a function in JavaScript?
a) function myFunction() {}
b) let myFunction = function() {}
c) function = {}

4.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

What is the output of the following code: let x = 10; function foo(){ console.log(x); } foo();
a) 10
b) 5
c) Undefined
d) Error

5.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

What is the output of the following code: let x = 2; x+=1; document.write(x);
a) 4
b) 2
c) 3
d) error

6.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

What is the correct way to declare a variable in JavaScript?
a) let x = 5;
b) variable x = 5;
c)LET x = 5;

7.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

What is the output of the following code: let x = [1, 2, 3]; console.log(x.length);
a) 1
b) 2
c) 3
d) 4

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?