Multiple Choice
When will the loop in the following code snippet stop? java.util.Scanner in = new java.util.Scanner(System.in) ;
Double sum = 0;
Int count = 0;
System.out.print("Enter values, Q to quit: ") ;
Do
{
Double value = in.nextDouble() ;
Sum = sum + value;
Count++;
System.out.print("Enter values, Q to quit: ") ;
}
While (in.hasNextDouble() && count < 100) ;
I. When the user enters an integer
II. When the user enters an alphabetic character
III. After the user enters 100 numbers
A) I or II
B) II only
C) III only
D) II or III
Correct Answer:

Verified
Correct Answer:
Verified
Q96: Which of the following code snippets will
Q97: Which of the following is the correct
Q98: Which of the following code snippets displays
Q99: What is the output of the code
Q100: How many times does the loop execute
Q102: What is the output of the code
Q103: What does the following code snippet display?
Q104: What is the output of this loop?<br>Int
Q105: Which of the following loops will print
Q106: How many times does the following loop