Search Header Logo

Aibles javascript quiz

Authored by Xuân Kiên

Instructional Technology, Computers

1st Grade

Used 13+ times

Aibles javascript quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do I declare a new variable?

var newVariable = 5

var 5 = myVariable

Variable int = new Variable()

int var = 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In JavaScript, what does the following expression evaluate to?

[ ] == [ ]

true

undefined

[]

false

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What's the output?


for (var i = 0; i < 5; i++) {

console.log(i);

}

12345

1234

01234

012345

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In JavaScript, which method converts JSON data to a JavaScript object?

JSON.fromString()

JSON.parse()

JSON.toObject()

JSON.stringify()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In JavaScript, which operator returns true if the two compared values are not equal?

<>

~

==!

!==

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What's the output?

true true true true

false false false false

true true false false

false false true true

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What's the output?


var x = "411" + 1

var y = "411" - 1

console.log(x, y)

412 410

4111 41

4111 410

412 41

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?