Exam 5: Control Structures II: Repetition
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of Java50 Questions
Exam 3: Introduction to Objects and Input/output50 Questions
Exam 4: Control Structures I: Selection50 Questions
Exam 5: Control Structures II: Repetition50 Questions
Exam 6: Graphical User Interface GUI and Object-Oriented Design OOD50 Questions
Exam 7: User-Defined Methods50 Questions
Exam 8: User-Defined Classes50 Questions
Exam 9: Arrays46 Questions
Exam 10: Inheritance and Polymorphism50 Questions
Exam 11: Handling Exceptions and Events50 Questions
Exam 12: Advanced Guis and Graphics48 Questions
Exam 13: Recursion50 Questions
Exam 14: Applications of Arrays Searching and Sorting and Strings50 Questions
Select questions type
Which of the following loops is guaranteed to execute at least once?
(Multiple Choice)
4.7/5
(37)
The do...while loop has an exit condition but no entry condition.
(True/False)
4.7/5
(40)
If a continue statement is placed in a do...while structure, the loop-continue test is evaluated immediately after the continue statement.
(True/False)
4.8/5
(37)
What is the output of the following code?int count;
Int num = 2;for (count = 1; count " ");
}
System.out.println();
(Multiple Choice)
4.9/5
(35)
A syntax error will result if the control statements of a for loop are omitted.
(True/False)
4.8/5
(34)
static final int EndVal = -1;
Int double;
Int num = console.nextInt();while (num != EndVal)
{
Double = num * 2;
System.out.println(double);
Num = console.nextInt();
}The above code is an example of a(n) ____ while loop.
(Multiple Choice)
4.8/5
(35)
Which of the following is not a function of the break statement?
(Multiple Choice)
4.7/5
(33)
1, 1, 2, 3, 5, 8, 13, 21, ...What is the tenth Fibonacci number in the sequence above?
(Multiple Choice)
4.7/5
(36)
Showing 41 - 50 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)