Search Header Logo

Chapter 8

Authored by Bill Butterfield

Computers

9th - 12th Grade

Used 9+ times

Chapter 8
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

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

Already have an account?