Answer the following statements true (T) or false (F)
1) The default case is required in the switch selection statement.
2) The break statement is required in the default case of a switch selection statement to
exit the switch properly.
3) The expression (x> y && a< b) is true if either the expression x>y is true or the ex- pression a< b is true.
4) An expression containing the || operator is true if either or both of its operands are true.
5) A given array can store many different types of values.
1. False. The default case is optional. Nevertheless, it’s considered good software engineering to always provide a default case.
2. False. The break statement is used to exit the switch statement. The break statement is not required when the default case is the last case. Nor will the break statement be required if having control proceed with the next case makes sense.
3.False. When using the && operator, both of the relational expressions must be true
for the entire expression to be true.
4. True.
5. False. An array can store only values of the same type.
You might also like to view...
Programming in Alice is similar to the filmmaking process.
Answer the following statement true (T) or false (F)
The Access comparison operator for is not equal to is ?
Indicate whether the statement is true or false
If you accidentally place two copies of the same table list in the Relationships window, which is the correct method for removing the extra table?
A) Right-click the table, and select Hide Table. B) Right-click the table, and select Remove Table. C) Right-click the table, and select Delete Table. D) Click the table, and then on the Design Tab in the Relationships group, click Remove Table.
____ effects convert colors in a picture to a wide variety of hues.
A. Recolor B. Redesign C. Reorganize D. Repair