Quiz 13 - For Loops

Quiz 13 - For Loops

11th Grade

10 Qs

quiz-placeholder

Similar activities

GCSE Computer Science - Programming Keywords

GCSE Computer Science - Programming Keywords

9th - 12th Grade

15 Qs

Introduction to Loops

Introduction to Loops

9th - 12th Grade

10 Qs

Code Tracing Quiz

Code Tracing Quiz

9th - 12th Grade

12 Qs

Pseudocode - OCR ERL

Pseudocode - OCR ERL

9th - 12th Grade

10 Qs

While Loops and Boolean Statements

While Loops and Boolean Statements

10th - 12th Grade

10 Qs

CodeHS 1.13 Control Structures Example

CodeHS 1.13 Control Structures Example

9th - 12th Grade

8 Qs

GCSE - Flowcharts

GCSE - Flowcharts

11th Grade

10 Qs

Computer Science

Computer Science

11th - 12th Grade

11 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?