Quiz 13 - For Loops

Quiz 13 - For Loops

11th Grade

10 Qs

quiz-placeholder

Similar activities

Loops and trace tables

Loops and trace tables

11th Grade

13 Qs

1.1.5 CSE Iteration and Loops

1.1.5 CSE Iteration and Loops

9th - 12th Grade

14 Qs

Loops

Loops

9th - 12th Grade

10 Qs

Quiz 16 - Arrays and Loops

Quiz 16 - Arrays and Loops

11th Grade

10 Qs

Intro to Scratch 2

Intro to Scratch 2

KG - University

12 Qs

Loops in Java

Loops in Java

9th - 12th Grade

10 Qs

CodeHS 2.10 While Loops

CodeHS 2.10 While Loops

9th - 12th Grade

10 Qs

Gmetrix JavaScript Session 3 Test

Gmetrix JavaScript Session 3 Test

9th - 12th Grade

10 Qs

Quiz 13 - For Loops

Quiz 13 - For Loops

Assessment

Quiz

Computers

11th Grade

Easy

Created by

Casey Devet

Used 93+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

In a for loop, which of the following is NOT included in the parentheses after the "for" keyword?

updating the control variable

loop body

initializing the control variable

test condition

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

In the given for loop, when will the instruction "int x = 1" be executed?

once, at the beginning of the loop

once, at the end of the loop

after every loop iteration

before every loop iteration

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

In the given for loop, when will the test "x <= 10" be executed?

once, at the beginning of the loop

once, at the end of the loop

after every loop iteration

before every loop iteration

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

In the given for loop, when will the instruction "x++" be executed?

once, at the beginning of the loop

once, at the end of the loop

after every loop iteration

before every loop iteration

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

How many iterations will this for loop execute?

9

10

11

infinitely many

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

For loops can be contained in for loops

True

False

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

This for loop is supposed to print the numbers from 1 to 100, but isn't working. What needs to be corrected?

count should start with the value 0

Use count-- instead of count++

Use > instead of >=

Use <= instead of >=

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?