What is the printout of the following switch statement?

```
char ch = 'a';

switch (ch)
{
case 'a':
case 'A':
cout << ch << endl; break;
case 'b':
case 'B':
cout << ch << endl; break;
case 'c':
case 'C':
cout << ch << endl; break;
case 'd':
case 'D':
cout << ch << endl;
}
```

A. aa
B. a
C. abcd
D. ab

B. a

Computer Science & Information Technology

You might also like to view...

Characteristics common to several classes can be collected in a common abstract subclass.

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

Computer Science & Information Technology

Which technology is based on flash memory and is intended to eventually replace conventional hard disk drives that have moving discs and other mechanisms?

A) Memory cards B) Solid-state drives C) Optical drives D) USB flash drives

Computer Science & Information Technology