Exam 4: Looping
Exam 1: An Overview of Computer Programming50 Questions
Exam 2: Applications and Data50 Questions
Exam 3: Making Decisions50 Questions
Exam 4: Looping50 Questions
Exam 5: Arrays50 Questions
Exam 6: Using Methods50 Questions
Exam 7: Object-Oriented Concepts50 Questions
Exam 8: More Object Concepts50 Questions
Exam 9: Event-Driven Programming With Graphical User Interfaces50 Questions
Exam 10: Exception Handling50 Questions
Exam 11: System Modeling With the Uml50 Questions
Exam 12: Manipulating Larger Quantities of Data50 Questions
Select questions type
It is always a mistake to fail to initialize a loop's ____ variable.
Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
C
If a data item is valid, this also means that it is correct.
Free
(True/False)
4.7/5
(33)
Correct Answer:
False
The difference between an accumulator and a counter lies in the ____ that you add to the variable.
Free
(Multiple Choice)
4.9/5
(43)
Correct Answer:
C
At the beginning of any method, it is the programmer's responsibility to ____ all variables that must start with a specific value.
(Multiple Choice)
4.9/5
(41)
The amount by which a for loop control variable changes after the body executes is often called a(n) ____________________value.
(Short Answer)
4.8/5
(37)
When the value of a loop control variable is not altered by arithmetic, but is instead altered by user input, this is known as a(n) ____ loop.
(Multiple Choice)
4.8/5
(37)
A(n) ____________________ loop has one entry point and one exit point.
(Short Answer)
4.8/5
(40)
A(n) ____ is any numeric variable you use to count the number of times an event has occurred.
(Multiple Choice)
4.9/5
(32)
A(n) ____________________ is a variable used to gather or accumulate values.
(Short Answer)
4.8/5
(32)
A loop for which the number of iterations is ____________________ is called a definite loop, or counted loop.
(Short Answer)
4.8/5
(31)
A(n) ____ is a number you use to increase a loop control variable on each pass through a loop.
(Multiple Choice)
4.8/5
(29)
Most languages provide a built-in way to check whether entered data is ____.
(Multiple Choice)
4.9/5
(38)
One appropriate action when invalid input data has been detected is to assign a(n) ____value and proceed.
(Multiple Choice)
4.8/5
(36)
A while loop can be used to code both definite and indefinite loops.
(True/False)
4.8/5
(36)
Statements inside a loop that could be placed outside the loop make the loop ____.
(Multiple Choice)
4.9/5
(34)
A loop control variable's value is tested to control the loop's execution.
(True/False)
4.8/5
(32)
If a loop control variable is incremented by user input, it is a(n) ____________________ loop.
(Short Answer)
4.8/5
(37)
A(n) ____________________ loop can be used to code for definite and indefinite loops.
(Short Answer)
5.0/5
(45)
The safest and clearest course of action is to assign the value ____ to accumulators before using them.
(Multiple Choice)
5.0/5
(30)
____________________ reports show no individual item details.They show only totals.
(Short Answer)
4.8/5
(41)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)