Loops in JavaScript

Loops in JavaScript

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz 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: >, <, >=, <=

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?

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?

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: >, <, >=, <=

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?