What is printed by the following program segment if the value input into num is 2?

```
cin >> num;
switch (num)
{
case 0:
case 1:
cout << " Red";
case 2:
cout << " Blue";
case 3:
cout << " Green";
case 4:
cout << " Yellow";
default:
cout << " Invalid Input";
} // end switch
```
a. Red
b. Blue
c. Green
d. Yellow
e. Blue Green Yellow Invalid Input

e. Blue Green Yellow Invalid Input

Computer Science & Information Technology

You might also like to view...

The ____ Index Scans feature allows simultaneous full-index scans and reads of data blocks, increasing the response times for data manipulation and retrieval.

A. Full B. Complete C. Concurrent D. Parallel

Computer Science & Information Technology

What should you do if you see pound signs (###) instead of values or results of formulas?

What will be an ideal response?

Computer Science & Information Technology