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

Loops and trace tables

Loops and trace tables

11th Grade

13 Qs

Intro to Java Loops

Intro to Java Loops

9th - 12th Grade

15 Qs

Quiz 120.3A - Algorithm flowcharts

Quiz 120.3A - Algorithm flowcharts

11th Grade

15 Qs

AP CSP Loops Practice

AP CSP Loops Practice

9th - 12th Grade

12 Qs

8525 AQA GCSE  3.1.1 Pseudo-code

8525 AQA GCSE 3.1.1 Pseudo-code

10th - 11th Grade

14 Qs

Programming Constructs - Bitesize

Programming Constructs - Bitesize

KG - 11th Grade

10 Qs

Introduction to Loops

Introduction to Loops

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?