Title: Module 4 Quiz (Ungraded)
Course: COP 1510 Programming Concepts > Section: Module 4 - Repetition Structures

Q: In a count-controlled loop, the counter performs ________ action(s).
- One
- Two
- Three
- Four
- Five
A: Three

Q: Which of these are posttest loops?
- While and Do-While
- While and Do-Until
- Do-While and Do-Until
- Do-Until and For
- Do-While and For
A: Do-While and Do-Until

- Count-controlled
- Condition-controlled
- While
- Do-while
- Do-until
A: Count-controlled

Q: Which loop statement does not contain an increment statement but automatically increments the counter at the end of each iteration?
- Do-While
- Do-Until
- For
- While
- None of these
A: For

Q: Which pair of loops causes a statement or set of statements to repeat as long as a condition is true?
- While and Do-While
- While and Do-Until
- Do-While and Do-Until
- Do-Until and For
- Do-While and For
A: While and Do-While

Q: What type of loop uses a Boolean expression to control the number of times that it repeats a statement or set of statements?
- Count-controlled
- Condition-controlled
- While
- Do-while
- Do-until
A: Condition-controlled

Q: The statements that appear between the While and the End While clauses are called the ________.
- Statements
- Loop
- Body of the loop
- Loop statements
- While statements
A: Body of the loop

Q: Which loop repeats a statement or set of statements as long as the Boolean expression is false?
- Do-While
- Do-Until
- For
- While
- None of these
A: Do-Until

Q: Which structure causes a statement or set of statements to execute repeatedly?
- Start Over
- Sequence
- Decision
- Repetition
- None of these
A: Repetition

Q: A loop that accumulates a total as it reads each number from a series is often said to keep a what?
- Average
- Maximum value
- Running total
- Accumulation
- None of these
A: Running total

- One
- Two
- Five
- No iterations
- Infinite
A: No iterations

- One
- Two
- Three
- No iterations
- Infinite
A: One

Q: The amount by which the counter variable is incremented in a For loop is known as what?
- Incremental value
- Step amount
- Counter differential
- Additive Index
- None of these
A: Step amount

Q: To ________ a variable means to decrease its value.
- Negate
- Increment
- Initialize
- Decrement
- Reference
A: Decrement

Q: The ________ represents a special value that marks the end of a list of values.
- Sentinel
- Stop
- End
- Any of these
- None of these
A: Sentinel

Q: True/False: The While loop gets its name from the way it works: While a condition is false, do some task.
- True
- False
A: False

Q: True/False: A While loop repeats infinitely when there is no statement inside the loop body that makes the test condition false.
- True
- False
A: True

Q: True/False: The While and For loops are considered pretest loops because they test the condition before processing the statement(s) in the loop body.
- True
- False
A: True

Q: True/False: A posttest loop does not perform any iteration if the Boolean expression is false to begin with.
- True
- False
A: False

Q: True/False: The conditions that control a loop repetition are Boolean expressions.
- True
- False
A: True