Exam 4: Repetition Structures
Exam 1: Introduction to Computers and Programming39 Questions
Exam 2: Input, Processing, and Output40 Questions
Exam 3: Decision Structures and Boolean Logic40 Questions
Exam 4: Repetition Structures41 Questions
Exam 5: Functions66 Questions
Exam 6: Files and Exceptions40 Questions
Exam 7: Lists and Tuples40 Questions
Exam 8: More About Strings37 Questions
Exam 9: Dictionaries and Sets39 Questions
Exam 10: Classes and Object-Oriented Programming38 Questions
Exam 11: Inheritance36 Questions
Exam 12: Recursion35 Questions
Exam 13: Gui Programming42 Questions
Select questions type
The acronym __________ refers to the fact that the computer cannot tell the difference between good data and bad data.
(Short Answer)
4.7/5
(30)
The while loop is known as a(n)__________ loop because it tests the condition before performing an iteration.
(Short Answer)
4.9/5
(31)
A(n)__________ is a special value that marks the end of a sequence of items.
(Short Answer)
4.8/5
(40)
Reducing duplication of code is one of the advantages of using a loop structure.
(True/False)
4.9/5
(32)
What will be displayed after the following code is executed?
total
for count in range
total count
print (total)
(Multiple Choice)
4.9/5
(34)
The first operation is called the __________ and its purpose is to get the first input value that will be tested by the validation loop.
(Multiple Choice)
4.9/5
(40)
A(n)___________ structure causes a set of statements to execute repeatedly.
(Short Answer)
4.9/5
(41)
In order to draw an octagon with turtle graphics,you would need a loop that iterates eight times.
(True/False)
4.8/5
(38)
Which of the following is not an augmented assignment operator?
(Multiple Choice)
4.9/5
(36)
What are the values that the variable num contains through the iterations of the following for loop?
For num in range(4):
(Multiple Choice)
4.8/5
(33)
What will be displayed after the following code is executed?


(Multiple Choice)
4.8/5
(35)
A(n)___________ loop usually occurs when the programmer does not include code inside the loop that makes the test condition false.
(Short Answer)
4.9/5
(39)
A good way to repeatedly perform an operation is to write the statements for the task once and then place the statements in a loop that will repeat as many times as necessary.
(True/False)
4.9/5
(39)
A(n)__________ structure is a structure that causes a statement or a set of statements to execute repeatedly.
(Multiple Choice)
4.9/5
(42)
The ___________ function is a built-in function that generates a list of integer values.
(Short Answer)
4.8/5
(29)
In Python,you would use the __________ statement to write a count-controlled loop.
(Short Answer)
4.8/5
(36)
What type of loop structure repeats the code a specific number of times?
(Multiple Choice)
4.7/5
(42)
A(n)__________-controlled loop causes a statement or set of statements to repeat as long as the condition is true.
(Short Answer)
4.8/5
(29)
__________ is the process of inspecting data that has been input into a program in order to ensure that the data is valid before it is used in a computation.
(Multiple Choice)
4.9/5
(41)
The first line in a while loop is referred to as the condition clause.
(True/False)
4.8/5
(29)
Showing 21 - 40 of 41
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)