Quiz 13 - For Loops

Quiz 13 - For Loops

11th Grade

10 Qs

quiz-placeholder

Similar activities

Shared Data & Disaster Recovery

Shared Data & Disaster Recovery

11th Grade

15 Qs

Microcontroller

Microcontroller

11th Grade - University

10 Qs

Input, output and storage de

Input, output and storage de

8th Grade - Professional Development

14 Qs

Network

Network

10th - 11th Grade

10 Qs

ZOOM QUIZ

ZOOM QUIZ

1st - 12th Grade

10 Qs

1ª Recuperação - 3° Trim. - Pensamento Computacional - 9º ano

1ª Recuperação - 3° Trim. - Pensamento Computacional - 9º ano

9th Grade - University

10 Qs

Roblox! (Royale High

Roblox! (Royale High

2nd - 12th Grade

10 Qs

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?