Conditional Statements Answers

17 verified answers2 views
1
Free Preview

What is one pass of a coding sequence called?

A
a return
B
a loop
C
an iteration
D
an infinite loop
6

What does a loop statement do?

A
It causes a section of code to be repeated a certain number of times.
B
It causes a section of code to be executed one time only.
C
It causes a section of code to end.
D
It causes a section of code to be repeated infinitely.
7

A for-loop statement can iterate over many items in

A
a function.
B
a variable.
C
a list.
D
a pass statement.
8

What stops the current loop and resumes execution at the next statement?

A
the break statement
B
the final statement
C
the pass statement
D
the infinite-loop statement
10

Question text not available

Answer not available
11

What is a smaller loop statement that can appear on the same line of code?

A
an infinite statement
B
a finite statement
C
a repeat statement
D
a single statement
13

What is a loop statement that never resolves to a false value?

A
an infinite loop
B
a continuous loop
C
a single loop
D
a statement loop
14

What does a for loop look for in the sequence of data? Check all that apply.

A
the first variable
B
the second variable
C
the third variable
D
the last variable
15

What would a programmer use to stop a while-looping sequence and return to the beginning of the statement?

A
a break statement
B
a final statement
C
a continue statement
D
an exit statement
16

Which of the following returns to the beginning of the while loop?

A
the continue statement
B
the break statement
C
the return statement
D
the end statement
17

Question text not available

Answer not available

Did you find these answers helpful?