In Java, how do we tell the compiler that the body of a loop consists of several statements, rather than one?

a) We enter all the statements on the same line
b) We indent all the statements at the same level of indentation
c) We enclose the statements in curly braces
d) We insert a break statement at the end of the loop


c.

Computer Science & Information Technology

You might also like to view...

A placeholder in a printf() message always begins with the ____ symbol.

A. + B. & C. % D. *

Computer Science & Information Technology

Which situation would require the operator to be overloaded as a global function?

a. The overloaded operator is =. b. The left most operand must be a class object (or a reference to a class object). c. The left operand is an int. d. The operator returns a reference.

Computer Science & Information Technology

You can use shortcuts to combine assignment and ____ operators, such as Amount + 5 instead of Amount = Amount + 5 to increment the value in the variable Amount by 5.

A. arithmetic B. numeric C. string D. script

Computer Science & Information Technology

Fields that appear to hold multiple values are known as:

A) multicapacity fields. B) expressions. C) multivalued fields. D) compound values.

Computer Science & Information Technology