JAVASCRIPT FINAL EXAM

JAVASCRIPT FINAL EXAM

20 Qs

quiz-placeholder

Similar activities

COMPUTER 9

COMPUTER 9

KG - University

20 Qs

English I - Vocabulary - Lesson  14

English I - Vocabulary - Lesson 14

KG - University

25 Qs

Revisão AV2 - WEB

Revisão AV2 - WEB

KG - University

15 Qs

web 2 JS

web 2 JS

KG - University

20 Qs

Part 1 - JavaScript Knowledge & Skills Quiz Mock Quiz

Part 1 - JavaScript Knowledge & Skills Quiz Mock Quiz

KG - University

21 Qs

Quiz - 5 on Increment and Decrement Operators

Quiz - 5 on Increment and Decrement Operators

KG - University

15 Qs

HHB 2.6 Cardiac Cycle QUIZS

HHB 2.6 Cardiac Cycle QUIZS

11th Grade

20 Qs

JAVASCRIPT FINAL EXAM

JAVASCRIPT FINAL EXAM

Assessment

Quiz

others

Hard

Created by

UKIZURU MUSTAPHA

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?