click below
click below
Normal Size Small Size show me how
Java - Ch. 5
Java Chapter 5
Question | Answer |
---|---|
A common logic error with counter-controlled repetition is... | an off-by-one error |
A (blank) is similar to a sentinel vaule but is used for switch statements instead of for loops. | end-of-file indicator |
In a switch statement a the controlling expressions value must evaluate to these four types... | byte, char, short or int |
Break statements traditionally make their home in switch statements, but can be used in (blank) loops too. | For |
According to Bohm and Jacopini: Only three forms of control are needed to implement an algorithm. They are... | Sequence, Selection &Repetition |
The three repetition statements are... | while statement, do…while statement & for statement |
A feature of the logical operators && and || are that they evaluate efficiently. It will not evaluate the second portion of the statement if it is not germane. This is called... | short-circuit evaluation |
The %b format specifier displays the words... | True or false |