Multiple Choice
In the following code, what values could be read into number to terminate the while loop? Scanner keyboard = new Scanner(System.in) ;
System.out.print("Enter a number: ") ;
Int number = keyboard.nextInt() ;
While (number < 100 && number > 500)
{
System.out.print("Enter another number: ") ;
Number = keyboard.nextInt() ;
}
A) Numbers less than 100 or greater than 500
B) Numbers in the range 100 - 499
C) Numbers in the range 100 - 500
D) The boolean condition can never be true
Correct Answer:

Verified
Correct Answer:
Verified
Q14: In the for loop, the control variable
Q15: If a loop does not contain within
Q16: What will be the values of x
Q17: Each repetition of a loop is known
Q18: How many times will the following for
Q21: Assuming that inputFile references a Scanner object
Q22: If you are using a block of
Q23: This is a value that signals when
Q24: The do-while loop must be terminated with
Q24: A for loop normally performs which of