JavaScript Multiple-Choice Quiz

JavaScript Multiple-Choice Quiz

12th Grade

60 Qs

quiz-placeholder

Similar activities

Game & Sim Programming Semester 1 Exam 21-22 Study Guide

Game & Sim Programming Semester 1 Exam 21-22 Study Guide

9th - 12th Grade

60 Qs

Advanced HTML5 & CSS3 Part IV

Advanced HTML5 & CSS3 Part IV

9th - 12th Grade

55 Qs

Week 11: Lists, Loops & "Failure"!

Week 11: Lists, Loops & "Failure"!

9th - 12th Grade

58 Qs

Logic && Boolean Expressions (A-Level Computer Science)

Logic && Boolean Expressions (A-Level Computer Science)

11th - 12th Grade

58 Qs

UH 1 bahasa pemograman

UH 1 bahasa pemograman

10th Grade - University

60 Qs

Apple Motion and Final Cut Pro X

Apple Motion and Final Cut Pro X

10th - 12th Grade

60 Qs

[TOPIC 1] Introduction to Programming

[TOPIC 1] Introduction to Programming

12th Grade

61 Qs

W3Schools - CSS-A

W3Schools - CSS-A

10th - 12th Grade

63 Qs

JavaScript Multiple-Choice Quiz

JavaScript Multiple-Choice Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Neil Christian Capanzana

FREE Resource

AI

Enhance your content in a minute

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

60 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

What is the correct way to declare a variable in JavaScript?

let x = 10;

var x = 10;

const x = 10;

All of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used for single-line comments in JavaScript?

/* comment */

// comment

# comment

-- comment

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will typeof null return?

"null"

"undefined"

"object"

"string"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to print something in the console?

print()

log()

console.log()

write()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of "5" + 3 in JavaScript?

8

53

35

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used to define a constant variable?

var

let

const

define

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write an IF statement in JavaScript?

if x = 5 then {}

if (x == 5) {}

if x == 5 {}

if x === 5 then {}

Access all questions and much more by creating a free account

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

Already have an account?