Chapter 8

Chapter 8

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

Pseudocode Conditionals

Pseudocode Conditionals

10th - 12th Grade

10 Qs

Python Iteration

Python Iteration

10th Grade

13 Qs

Python Basics

Python Basics

KG - University

16 Qs

Loops

Loops

1st - 12th Grade

20 Qs

Coding Pre-quiz

Coding Pre-quiz

6th - 9th Grade

15 Qs

FOR Loops Python

FOR Loops Python

9th - 12th Grade

12 Qs

For Loops (Java)

For Loops (Java)

9th - 12th Grade

14 Qs

Python - Quiz

Python - Quiz

9th - 11th Grade

17 Qs

Chapter 8

Chapter 8

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Bill Butterfield

Used 9+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Any for loop can be replaced by an equivalent while loop.
True
False

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is NOT commonly used as a loop control variable name?
i, j, k
row, col
count, pos
inputLbl, outputLbl

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image
Sometimes, a for loop’s “initialization” part may be empty, as in:
True
False

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image
The condition of a while loop can always true as long as a break statement is included in the body of the loop as in this example:
True
False

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
What is the value of sum after the following code fragment is executed?
0
12
20
30

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image
Sometimes, a for loop’s “change” part may be empty, as in:
True
False

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image
What is the value of z after the following code fragment is executed?
0.0
-0.2
-0.4
-2.0

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?