If a module is supposed to print a line of asterisks of a given length, which is more appropriate to use--a value-returning function or a void function?
Answer: void
You might also like to view...
Which of the following statements about nested if…else statements is true?
a. An if…else statement may not be nested in another nested if…else. b. Each if…else statement must contain only a simple condition. c. In an if body, an inner if…else executes only if the outer if statement's condition is true. d. The statement(s) in an inner if always execute(s) if its condition is true.
A programmer must do the following before using an array:
a. declare then reference the array. b. create then declare the array. c. create then reference the array. d. declare then create the array.
The negation operator in Java is represented by:
a. ! b. && c. | | d. None of the above
In the 1950s Apple sold its first business computer.
Answer the following statement true (T) or false (F)