Multiple Choice
Which one of the following statements is true about using arrays with methods?
A) Arrays can be method arguments, and return values, just like any other values.
B) A method can only accept arguments that are elements of an array, but not the whole array.
C) A method may accept an argument that is an array, but it cannot return a result that is an array.
D) If a method is defined to have an array as a method argument, it must also define the size of the array as another method argument.
Correct Answer:

Verified
Correct Answer:
Verified
Q21: Consider the following code snippet:<br>String[] data =
Q22: Assume the following variable has been declared
Q23: Which statement is true about the code
Q24: What will be printed by the statements
Q25: What is the output of the following
Q27: Suppose you wish to use an array
Q28: Consider the following line of code:<br>int[] somearray
Q29: What is the output of the following
Q30: Which statement correctly describes the enhanced for
Q31: What should you check for when calculating