Search Header Logo
Loops in JavaScript

Loops in JavaScript

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

13 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Goal = Create a loop that turns as long as i is less than 10. What should replace ⭐? Options: >, <, >=, <=

Media Image

Back

<

Answer explanation

Inequalities in JS

== is equal to

> is greater than

>= is greater than or equal to

< is less than

<= is less than or equal to

!= is not equal to

! not

2.

FLASHCARD QUESTION

Front

What is a value for ⭐ that would prevent the loop from ever running?

Media Image

Back

10

Answer explanation

Media Image

Loop ONLY while i is less than 10

3.

FLASHCARD QUESTION

Front

What JavaScript code matches this statement: Their name is Jacob and they are less than 15 years old.? Options: if(name = "Jacob" && age < 15), if(name == "Jacob" && age < 15), if(name == "Jacob" || age < 15), if("name" == "Jacob" && age < 15)

Back

if(name == "Jacob" && age < 15)

Answer explanation

~~~Logical Operators~~~

&& and

|| or

! not

~~~Inequalities in JS~~~

== is equal to

> is greater than

>= is greater than or equal to

< is less than

<= is less than or equal to

!= is not equal to

4.

FLASHCARD QUESTION

Front

What is a value for ⭐ that would prevent the loop from ever running?

Media Image

Back

10

Answer explanation

Media Image

Loops ONLY while i is greater than 10

5.

FLASHCARD QUESTION

Front

Goal = Create a loop that turns as long as i is greater than 10. What should replace ⭐? Options: >, <, >=, <=

Media Image

Back

>

Answer explanation

~~~Inequalities in JS~~~

== is equal to

> is greater than

>= is greater than or equal to

< is less than

<= is less than or equal to

!= is not equal to

6.

FLASHCARD QUESTION

Front

Greater than or equal to

Back

>=

Answer explanation

~~~Inequalities in JS~~~

== is equal to

> is greater than

>= is greater than or equal to

< is less than

<= is less than or equal to

!= is not equal to

7.

FLASHCARD QUESTION

Front

Logical Operators - What is the symbol below?
&&

Back

And

Answer explanation

~~~Logical Operators~~~

&& and

|| or

! not

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?