The reverse method is defined in the textbook. What is list1 after executing the following statements?
```
int[] list1 = {1, 2, 3, 4, 5, 6};
list1 = reverse(list1);
```
a. list1 is 1 2 3 4 5 6
b. list1 is 6 5 4 3 2 1
c. list1 is 0 0 0 0 0 0
d. list1 is 6 6 6 6 6 6
b
You might also like to view...
Which of the following is true about RF transmissions?
A. EM radiation is measured in volts B. frequency has an inverse relationship with wavelength C. frequency is the distance between waves D. cooler objects produce higher-frequency radiation than hotter objects
What error will you get if you type a function name incorrectly?
A) #ERROR? B) #NAME? C) #VALUE? D) #FUNCTION?
Which of the following is NOT typically a symptom of a power supply problem?
A) The computer light is off. B) The power supply fan is inoperable when the computer is on. C) The CD drive is inoperable. D) When the computer powers up, it does not beep.
Dan is working on a newsletter for his neighborhood. He noticed it is fatiguing to read the document because the text spans across the entire length of the page. To make the document more readable, he should do which of the following?
A) Insert a first line indent. B) Insert a page break. C) Insert a section break. D) Format the text in columns