Exam 6: Loops
Exam 1: Introduction76 Questions
Exam 2: Using Objects82 Questions
Exam 3: Implementing Classes108 Questions
Exam 4: Fundamental Data Types124 Questions
Exam 5: Decisions119 Questions
Exam 6: Loops107 Questions
Exam 7: Arrays and Array Lists117 Questions
Exam 8: Designing Classes88 Questions
Exam 9: Inheritance99 Questions
Exam 10: Interfaces100 Questions
Exam 11: Input/Output and Exception Handling108 Questions
Exam 12: Object-Oriented Design104 Questions
Exam 13: Recursion99 Questions
Exam 14: Sorting and Searching100 Questions
Exam 15: The Java Collections Framework102 Questions
Exam 16: Basic Data Structures102 Questions
Exam 17: Tree Structures102 Questions
Exam 18: Generic Classes75 Questions
Exam 19: Stream Processing85 Questions
Exam 20: Graphical User Interfaces75 Questions
Exam 21: Advanced Input/Output90 Questions
Exam 22: Multithreading81 Questions
Exam 23: Internet Networking74 Questions
Exam 24: Relational Databases75 Questions
Exam 25: XML74 Questions
Select questions type
How do you fix this code snippet to make it print out the sum when the user enters a letter rather than a double? The user must enter at least one double when the program begins.

(Multiple Choice)
4.7/5
(38)
What are the values of i and j after the following code fragment runs?

(Multiple Choice)
4.9/5
(46)
What is the output of this code snippet if the user enters the numbers
?


(Multiple Choice)
4.8/5
(44)
When hand-tracing a portion of code, which statement about Boolean conditions is true?
(Multiple Choice)
4.9/5
(36)
Which of the following conditions can be added to the code below so it will loop until the value of sum is greater than 100?

(Multiple Choice)
4.7/5
(42)
Suppose that a program asks a user to enter multiple integers, either positive or negative, to do some calculation.The data entry will stop when the user enters a certain value to indicate the end of the data.What value should the program use as the sentinel?
(Multiple Choice)
4.9/5
(37)
How many times is the text "Let's have fun with Java." printed when this code snippet is run?

(Multiple Choice)
4.9/5
(38)
What are the values of i and j after the following code snippet is run?

(Multiple Choice)
4.7/5
(40)
In the __________ loop header, you can include multiple update expressions, separated by commas, but it is not recommended.
(Multiple Choice)
4.8/5
(36)
How many times will the output line be printed in the following code snippet?

(Multiple Choice)
4.8/5
(39)
Showing 21 - 40 of 107
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)