Search Header Logo

JavaScript Multiple-Choice Quiz

Authored by Neil Christian Capanzana

Computers

12th Grade

JavaScript Multiple-Choice Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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?