Exam 6: Looping
Exam 1: Creating Your First Java Classes76 Questions
Exam 2: Using Data81 Questions
Exam 3: Using Methods, Classes and Objects79 Questions
Exam 4: More Object Concepts84 Questions
Exam 5: Making Decisions80 Questions
Exam 6: Looping77 Questions
Exam 7: Characters, Strings and the Stringbuilder82 Questions
Exam 8: Arrays77 Questions
Exam 9: Advanced Array Concepts80 Questions
Exam 10: Introduction to Inheritance78 Questions
Exam 11: Advanced Inheritance Concepts78 Questions
Exam 12: Exception Handling79 Questions
Exam 13: File Input and Output78 Questions
Exam 14: Introduction to Swing Components79 Questions
Exam 15: Using Javafx and Scene Builder65 Questions
Select questions type
Match each term with the correct statement below.
Premises:
Operate on two values
Responses:
% =
data validation
for loop
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(38)
What is wrong with the following code? x=1;
While (x<5);
{ System.out.println (x);
x++;
}
(Multiple Choice)
4.8/5
(29)
Assume d and x are integers: d = 5;
X = 2 * ++d;
What is the value of x ?
(Multiple Choice)
4.8/5
(33)
Match each term with the correct statement below.
Premises:
Repeatedly increasing a value by an amount
Responses:
data validation
binary operators
% =
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(34)
You can initialize more than one variable in a for loop by placing a(n) ____ between the separate statements.
(Multiple Choice)
4.9/5
(42)
while(10 > 1)
{
System.out.println("This prints forever.");
}
Identify the problem that exists in the above while loop.
(Essay)
4.8/5
(41)
In order to improve loop performance, it's important to make sure the loop does not include unnecessary operations or statements.
(True/False)
4.7/5
(24)
Match each term with the correct statement below.
Premises:
A counted loop
Responses:
decrementing
block
sleep() method
Correct Answer:
Premises:
Responses:
(Matching)
5.0/5
(37)
What is the output of the following code: loopCount = 1;
While(loopCount < 3)
System.out.println("Hello");
loopCount = loopCount + 1;
(Multiple Choice)
4.7/5
(37)
Match each term with the correct statement below.
Premises:
The value that determines whether loop execution continues
Responses:
empty body
loop fusion
loop control variable
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(38)
What is the output of the following code: for (loop = 1; loop <3; ++loop)
System.out.print(1);
for (loop2 = 1; loop2< 3; ++loop2)
System.out.print(2);
(Multiple Choice)
4.9/5
(42)
Match each term with the correct statement below.
Premises:
Ensuring that a value is in a range
Responses:
loop control variable
empty body
accumulating
Correct Answer:
Premises:
Responses:
(Matching)
4.7/5
(34)
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
(39)
Which of the following is NOT a valid method to increase a variable named score by 1?
(Multiple Choice)
4.8/5
(37)
____ is the process of ensuring that a value falls within a specified range.
(Multiple Choice)
4.8/5
(44)
When you want to increase a variable's value by exactly 1, use the ____.
(Multiple Choice)
4.8/5
(43)
Showing 41 - 60 of 77
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)