Answer the following statement(s) true (T) or false (F)
1. One or more if-else statements can be included in either part of an if-else statement.
2. The case keyword identifies the start of the switch statement.
3. A switch statement can contain any number of case labels in any order.
4. The switch statement requires you to list the case values in increasing order.
5. The switch statement requires you to terminate each case with a break statement.
6. Using nested if statements without including braces to indicate the structure constitutes a common programming error.
1. True
2. False
3. True
4. False
5. False
6. True
You might also like to view...
When passing a stream to a function, it must always be pass-by-__________.
Fill in the blank(s) with the appropriate word(s).
What is wrong with the following while loop? while (sum<= 1000) { sum = sum – 30; }
a. The parentheses should be braces. b. There should be a semicolon after while (sum <= 1000). c. sum = sum – 30 should be sum = sum + 30 or else the loop may never end. d. None of the above.
What command can be used to repair a dual boot system?
A. bootsect B. bootrec C. bcdedit D. bootrep
The ____ property determines the order in which each control receives the focus.
A. GetFocus B. PrevControl C. NextControl D. TabIndex