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");
}
```

Which of the following values for q will result in kiwi being included in the output?
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.

Computer Science & Information Technology

You might also like to view...

Assign the product of variables b and c to variable a.

What will be an ideal response?

Computer Science & Information Technology

Salma wants to buy a smartphone. She does not have any knowledge about the specifications and types of phones available in the market as this is her first smartphone. The types of operating systems that Salma can choose from are Windows 8, Android, and iOS.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Press CONTROL-SHIFT-SPACE BAR to enter a(n) ____________________, which is a special space character that prevents two words from splitting if the first word falls at the end of a line.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A DFS referral can be directed to multiple targets

a. true b. false

Computer Science & Information Technology