Javascript Quiz 2

Javascript Quiz 2

11th Grade

15 Qs

quiz-placeholder

Similar activities

BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

1st - 12th Grade

10 Qs

TIN 11 BÀI 6.1

TIN 11 BÀI 6.1

11th Grade

18 Qs

Trắc nghiệm Tin 10-Chủ đề A

Trắc nghiệm Tin 10-Chủ đề A

10th - 11th Grade

20 Qs

8525 AQA GCSE  3.1.1 Pseudo-code

8525 AQA GCSE 3.1.1 Pseudo-code

10th - 11th Grade

14 Qs

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

6th Grade - University

14 Qs

Functions in C++

Functions in C++

11th Grade

20 Qs

Examen final algoritmo

Examen final algoritmo

11th Grade

12 Qs

Les variables sous Python

Les variables sous Python

10th - 12th Grade

10 Qs

Javascript Quiz 2

Javascript Quiz 2

Assessment

Quiz

Computers

11th Grade

Hard

Created by

ARTURO PARIÑAS

Used 22+ times

FREE Resource

AI

Enhance your content in a minute

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

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many choices are possible when using a single if-else statement?

1

2

3

4

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Javascript code matches this statement:

Their name is Kim and they are less than 16 years old

if (name = "Kim" && age < 16 )

if (name = "Kim" || age < 16 )

if (name === "Kim" && age < 16 )

if (name === "Kim" || age < 16 )

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Javascript code matches this statement:

The player's health is 0 and they still have a life remaining.

if (health == "0" && lives > "0")

if (health === 0 && lives >= 0)

if (health <1 && lives > 0)

if (health === 0 && lives > 0)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What Javascript code matches this statement:

The player has gathered at least 300 coins or reached the end of the level.

if ("coins" >= 300 && "end" == true)

if (coins >= 300 || end == true)

if ("coins" >= 300 OR "end" == true)

if ("coins" >= 300 || "end" == true)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of statement is an If statement?

comparison statement

anecdotal statement

conditional statement

looping statement

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What kind of operators do If statements use to test conditions?

comparison operators

arithmetic operators

array operators

bitwise operators

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when an If statements conditional is not true?

the if statement executes

Nothing happens

the if statement start over

all options are correct

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?