What is displayed by the C++ statements that follow if the value input is 0?

```
cin >> color;
switch (color) {
case 0:
case 1:
cout << "red ";
case 2:
cout << "blue ";
case 3:
cout << "green ";
case 4:
cout << "yellow ";
}
cout << endl;
```

a. no output
b. red
c. yellow
d. red blue green yellow


d. red blue green yellow

Computer Science & Information Technology

You might also like to view...

In a flowchart, ____________ are used as input symbols and output symbols to represent the steps in which the program reads input or displays output.

a. Ovals b. Rectangles c. Parallelograms d. Triangles

Computer Science & Information Technology

What type of loop always performs the loop statements at least once?

What will be an ideal response?

Computer Science & Information Technology

When creating a new report using the wizard, a user can choose any of the following summary options EXCEPT ________

A) Avg B) Max C) Count D) Sum

Computer Science & Information Technology

HDMI ports connect camcorders, cameras, high-definition TVs and monitors

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

Computer Science & Information Technology