JAVASCRIPT FINAL EXAM

JAVASCRIPT FINAL EXAM

20 Qs

quiz-placeholder

Similar activities

Typography Review

Typography Review

9th - 12th Grade

20 Qs

Quiz - 8 on conditional/ternary operator

Quiz - 8 on conditional/ternary operator

KG - University

15 Qs

FlexboxPower

FlexboxPower

KG - University

17 Qs

Quantifiers

Quantifiers

KG - University

19 Qs

Computer Programing Lesson 1: Vocabulary Practice

Computer Programing Lesson 1: Vocabulary Practice

KG - University

15 Qs

Windows Scripting and Automation Quiz

Windows Scripting and Automation Quiz

University

20 Qs

Examen Microcontroladores 1 - Hugo Santana

Examen Microcontroladores 1 - Hugo Santana

KG - University

19 Qs

AP Computer Science Principles CODE UNIT 7 Assessment

AP Computer Science Principles CODE UNIT 7 Assessment

KG - University

15 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?