Self-Review Exercises (Sections C.1C.13)

C.1 Fill in the blanks in each of the following statements:

a) All programs can be written in terms of three types of control structures: _____________, and _____________.

b) The _____________statement is used to execute one action when a condition is true and another when that condition is false.

c) When it’s not known in advance how many times a set of statements will be repeated, a(n) _____________value can be used to terminate the repetition.

d) Java is a(n) _____________language; it requires all variables to have a type.

e) If the increment operator is _____________to a variable, first the variable is incremented by 1, then its new value is used in the expression.

C.2 State whether each of the following ...

Get Android™ How to Program, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.