11. In a flowchart, what does a diamond that has more than two flow lines represent?
extended selection structure
optional selection structure
single-alternative selection structure
dual-alternative selection structure
12. A secondary decision is always made by which selection structure?
13. If the default clause is the last clause in a switch statement, what statement is required after the default clause?
14. Which statement is used within a switch statement to tell the computer to exit the switch statement at that point?
15. If there is no default clause in a switch statement and no match is found, what happens?
the computer loops to the beginning of the switch
statement
an error code is generated
the program execution is terminated
the instruction after the closing brace is
executed
16. What type of clause may you include within a switch statement in addition to case clauses?
17. Each case clause within a switch statement contains a value followed by which punctuation mark?
18. Examine the following switch statement. What is needed to make a valid switch statement?
switch
{
case 10:
cout << “The answer is 10.”;
break;
case 20:
case 30:
cout << “The answer is 20 or 30.”;
break;
default:
cout << “The answer is none of them.”;
break;
case 40:
cout << “The answer is 40.”;
}