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
When processing a long list of values with a loop,the program knows it has reached the end of the list when the _________ value is read.
(Short Answer)
4.8/5
(30)
The While loop gets its name from the way it works: While a condition is false,do some task.
(True/False)
4.8/5
(36)
An inner loop goes through all of its iterations for every single iteration of the ______ loop.
(Short Answer)
4.9/5
(37)
The ___________ represents a special value that marks the end of a list of values.
(Multiple Choice)
4.9/5
(34)
A posttest loop does not perform any iteration if the Boolean expression is false to begin with.
(True/False)
4.7/5
(46)
A loop that accumulates a total as it reads each number from a series is often said to keep a what?
(Multiple Choice)
4.8/5
(36)
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)
5.0/5
(28)
The following is an example of what type of loop?
For k = 7 To maxValue
(Multiple Choice)
4.9/5
(23)
The While loop will never execute if its condition is true to start with.
(True/False)
4.9/5
(44)
The following loop will perform ______ iterations.
For start = 6 To 2 Step -3
(Short Answer)
4.9/5
(44)
How many times will the following loop iterate?
Set k = 1
Do
Display k
Set k = k + 1
Until k > 1
(Multiple Choice)
4.9/5
(43)
The While loop is known as a pretest loop,which means it tests its condition before performing an iteration.
(True/False)
4.9/5
(30)
A ____________ -controlled loop repeats a statement or set of statements a specific number of times.
(Short Answer)
4.8/5
(37)
In a count-controlled loop,the counter performs _______ action(s).
(Multiple Choice)
4.8/5
(33)
How many times will the following loop iterate?
Set k = 1
While k > 5
Display k
End While
(Multiple Choice)
4.9/5
(35)
In a For loop a negative step value is used to __________ the counter variable.
(Short Answer)
4.7/5
(31)
In the For statement,you can only use positive integers as step values.
(True/False)
4.8/5
(36)
The variable that is used to keep the running total in a loop is called a(n)_________________ in programming.
(Short Answer)
4.8/5
(36)
Showing 21 - 40 of 44
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)