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. Impossible - the boolean condition can never be true

d. Impossible - the boolean condition can never be true

Computer Science & Information Technology

You might also like to view...

A(n) ____ is an occurrence of an undesirable situation that can be detected during program execution.

A. crash B. exception C. misfire D. bug

Computer Science & Information Technology

When setting up a mail merge document to prepare a listing of member names, phone numbers, and other contact information, select ____ as the type of document.

A. Directory B. Envelopes C. Labels D. Letters

Computer Science & Information Technology