Solved

In the Following Code, What Values Could Be Read into Number

Question 52

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
B) Numbers greater than 500
C) Numbers in the range 100 - 499
D) Numbers in the range 100 - 500

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents