For Loops

For Loops

Assessment

Flashcard

Computers

9th Grade

Easy

Created by

PATRICIA LAMMERT

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

11 questions

Show all answers

1.

FLASHCARD QUESTION

Front

In a for loop, 'i' typically represents:

Back

The current iteration count.

2.

FLASHCARD QUESTION

Front

Correct syntax to start a for loop in JavaScript:

Back

for(var i = 0; i < count; i++) { }

3.

FLASHCARD QUESTION

Front

Equivalent of 'move();' five times using a for loop?

Back

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

4.

FLASHCARD QUESTION

Front

Main advantage of a for loop?

Back

It makes the code shorter and easier to read.

5.

FLASHCARD QUESTION

Front

'count' variable in a for loop represents:

Back

The number of times the loop should execute.

6.

FLASHCARD QUESTION

Front

Result of incorrect for loop usage?

Back

Infinite loop

7.

FLASHCARD QUESTION

Front

Purpose of curly braces in a for loop?

Back

Enclose the code block that will be repeated.

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?