Exam 6: Looping
Exam 1: Creating Java Programs61 Questions
Exam 2: Using Data67 Questions
Exam 3: Using Methods Classes and Objects66 Questions
Exam 4: More Object Concepts66 Questions
Exam 5: Making Decisions66 Questions
Exam 6: Looping66 Questions
Exam 7: Characters Strings and the Stringbuilder68 Questions
Exam 8: Arrays66 Questions
Exam 9: Advanced Array Concepts66 Questions
Exam 10: Introduction to Inheritance66 Questions
Exam 11: Advanced Inheritance Concepts66 Questions
Exam 12: Exception Handling66 Questions
Exam 13: File Input and Output66 Questions
Exam 14: Introduction to Swing Components66 Questions
Exam 15: Advanced Gui Topics66 Questions
Exam 16: Graphics66 Questions
Select questions type
When you want to increase a variable's value by exactly 1, use the ____.
Free
(Multiple Choice)
4.9/5
(43)
Correct Answer:
D
It is important that the loop control ____ be altered within the body of the loop.
Free
(Multiple Choice)
4.9/5
(42)
Correct Answer:
B
Match each term with the correct statement below.
Correct Answer:
Premises:
Responses:
Free
(Matching)
4.8/5
(34)
Correct Answer:
A(n) ____ loop is a special loop that is used when a definite number of loop iterations is required.
(Multiple Choice)
4.8/5
(46)
In order to improve loop performance, it's important to make sure the loop does not include unnecessary operations or statements.
(True/False)
4.8/5
(36)
____ is the process of ensuring that a value falls within a specified range.
(Multiple Choice)
4.9/5
(33)
Before entering a loop, the first input statement, or ____, is retrieved.
(Multiple Choice)
4.8/5
(39)
As long as methods do not depend on one another, ____ is a technique that can improve loop performance by combining two loops into one.
(Multiple Choice)
4.9/5
(31)
The ____ loop checks the value of the loop control variable at the bottom of the loop after one repetition has occurred.
(Multiple Choice)
4.7/5
(37)
Why would a loop with altered user input be considered a type of indefinite loop? Give an example.
(Essay)
4.8/5
(40)
A ____ is a structure that allows repeated execution of a block of statements.
(Multiple Choice)
4.8/5
(37)
The statements that make up a loop body will continue to execute as long as the expression value remains false.
(True/False)
4.8/5
(37)
Altering a variable within both a for statement and within the block it controls can produce errors that are difficult to find.
(True/False)
4.9/5
(45)
A statement that will alter the value of the loop control variable is included in the body of a loop.
(True/False)
4.9/5
(31)
A for loop provides a convenient way to create a(n) ____ loop.
(Multiple Choice)
4.8/5
(34)
while(count
Examine the statement above. Write the code that will result in more efficient program execution assuming the result of getNumberOfEmployees() stays the same.
(Essay)
4.7/5
(41)
What would happen if a semicolon is mistakenly placed at the end of a partial statement of a while loop with a Boolean expression and with an empty body?
(Essay)
4.8/5
(41)
Showing 1 - 20 of 66
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)