Title: Competency 5 Practice Quiz
Course: Programming Fundamentals I > Section: Practice Quizzes

Q: What is a repetition structure?
- A structure that causes a section of code to repeat
- A function that copies code
- A structure that repeats infinitely
- A section of code that creates structure
A: A structure that causes a section of code to repeat

Q: A ________ ________ loop uses true/false conditions to control the number of times that it repeats
A: condition controlled

Q: A ________ _________ loop repeats a specific number of times
A: count controlled

Q: How many times will ' Hello World' be printed in the following program?

count = 10

while count < 1:

print( ' Hello World' )
A: None. The condition <0 is false

Q: What will the following code display?

for number in range (2 , 6) :

print (number)
Feedback: 2 3 4 5

Q: A/An ________ is a variable that is used to accumulate the total of a series of numbers
A: accumulator

Q: What will the following code display?

total = 0

for count in range( 1, 6) :

total = total + count

print( total)
A: 15

Q: A _________ is aspecial value that marks the end of a list of items
A: sentinal

Q: A _________ ________ is the input operation that takes place just before an input validation loop.
A: priming read

Q: A ________ ________ is a loop that is contained inside another loop
A: nested loop