What is wrong with the following switch statement?

```
switch (gender)
{
case 'f':
cout << "Hello, Ms. " << name << endl;
case 'm':
cout << "Hello, Mr. " << name << endl;
default:
cout << "Invalid value for gender." << endl;
}
```
a. It is too short. b. It is too long.
c. The break statements are missing.
d. There is no if statement surrounding it. e. Several brackets are missing.


c. The break statements are missing.

Computer Science & Information Technology

You might also like to view...

When you use the ____ of the Freeform Pen Tool, the marquee is attracted to the edge of the object around which you drag.

a. Magnetic Lasso b. edge feature c. magnetic option d. outline option

Computer Science & Information Technology

A nanosecond (abbreviated ns) is one ____________________ of a second.

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

Computer Science & Information Technology

The test to see if a person has a color insufficiency is called the __________.

a. Insurawa Color Test b. Insufficient Color Test c. Incandescent Color Test d. Ishihara Color Test

Computer Science & Information Technology

A modern programming EXE provides a text editor, a file manager, a compiler, a linker and loader, and tools for debugging, all within this one piece of software. _________________________

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

Computer Science & Information Technology