Answer the following statements true (T) or false (F)
1. The Scanner class has a method next that allows an entire line of string text to be read.
2. Echoing input is good programming practice because it can reveal problems in the input.
3. An if-else statement chooses between two alternative statements based on the value of a Boolean expression.
4. You may omit the else part of an if-else statement if no alternative action is required.
5. In a switch statement, the choice of which branch to execute is determined by an expression given in
parentheses after the keyword switch.
1. False
2. True
3. True
4. True
5. True
You might also like to view...
A(n) ________ controls the way data is entered
Fill in the blank(s) with correct word
To place an object such as a rectangle or circle into a chart, you click ________ in the Illustrations group on the INSERT tab
A) Figures B) Objects C) Shapes D) Forms