Which of the following values for q will result in kiwi being included in the output?
For the code segment below:
```
switch(q) {
case 1:
System.out.println("apple");
break;
case 2:
System.out.println("orange");
break;
case 3:
System.out.println("banana");
break;
case 4:
System.out.println("pear");
case 5:
System.out.println("grapes");
default:
System.out.println("kiwi");
}
```
a. 2.
b. Any integer less than 1 and greater than or equal to 4.
c. 1.
d. 3.
b. Any integer less than 1 and greater than or equal to 4.
You might also like to view...
Popular antivirus software products are available from all but the following ____.
A. AVAST B. McAfee C. Snag It D. Kaspersky
The determination of database requirements is part of a process known as systems analysis.
Answer the following statement true (T) or false (F)