Exam 5: Repetition Structures
Exam 1: Introduction to Computers and Programming48 Questions
Exam 2: Input, processing, and Output48 Questions
Exam 3: Modules48 Questions
Exam 4: Decision Structures and Boolean Logic44 Questions
Exam 5: Repetition Structures44 Questions
Exam 6: Functions44 Questions
Exam 7: Input Validation44 Questions
Exam 8: Arrays46 Questions
Exam 9: Sorting and Searching Arrays43 Questions
Exam 10: Files43 Questions
Exam 11: Menu-Driven Programs43 Questions
Exam 12: Text Processing31 Questions
Exam 13: Recursion43 Questions
Exam 14: Object-Oriented Programming43 Questions
Exam 15: Gui Applications and Event-Driven Programming43 Questions
Select questions type
The statements that appear between the While and the End While clauses are called the ________________.
Free
(Multiple Choice)
4.7/5
(37)
Correct Answer:
C
Which structure causes a statement or set of statements to execute repeatedly?
Free
(Multiple Choice)
4.8/5
(34)
Correct Answer:
D
The loop that iterates as long as a condition is false and then stops when the condition becomes true is called a __________ loop.
Free
(Short Answer)
4.9/5
(39)
Correct Answer:
Do-Until
Which loop is specifically designed to initialize,test,and increment a counter variable?
(Multiple Choice)
4.7/5
(35)
A While loop repeats infinitely when there is no statement inside the loop body that makes the test condition false.
(True/False)
4.7/5
(38)
The amount by which the counter variable is incremented in a For loop is known as what?
(Multiple Choice)
4.8/5
(37)
A count-controlled loop uses a variable known as ________ to store the number of iterations that it has performed.
(Short Answer)
4.8/5
(39)
How many times will the following loop iterate?
For j = 1 To 5 Step 2
Display j
End For
(Multiple Choice)
4.7/5
(33)
In a For loop,the programmer should know the exact number of iterations the loop must perform before writing the code.
(True/False)
4.9/5
(41)
A condition-controlled loop can be used to iterate the body of the loop a specific number of times.
(True/False)
4.7/5
(48)
When the ________ loop executes,the condition is tested; if it is true,the loop body is executed,and then the loop starts over; if the condition is false,the loop terminates.
(Short Answer)
4.9/5
(37)
How many times will the following loop iterate?
Set k = 1
While k < = 5
Display k
End While
(Multiple Choice)
4.9/5
(39)
In a count-controlled loop the test action compares the counter variable to the _________ value to determine if the loop iterates or terminates.
(Short Answer)
4.8/5
(32)
The term __________ is used in the For loop if the counter needs to be incremented by a value other than one.
(Short Answer)
5.0/5
(45)
Which loop statement does not contain an increment statement but automatically increments the counter at the end of each iteration?
(Multiple Choice)
5.0/5
(44)
A structure that has a loop that is inside another loop is called a __________ loop
(Short Answer)
4.8/5
(38)
The conditions that control a loop repetition are Boolean expressions.
(True/False)
4.8/5
(40)
What type of loop uses a Boolean expression to control the number of times that it repeats a statement or set of statements?
(Multiple Choice)
4.9/5
(36)
Showing 1 - 20 of 44
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)