Question: B Question 5 When an array is passed to a method O All of the above O A reference to the array is passed The

 B Question 5 When an array is passed to a method
O All of the above O A reference to the array is
passed The method has direct access to the original array It is
passed just as an object Question 6 int a = What would

B Question 5 When an array is passed to a method O All of the above O A reference to the array is passed The method has direct access to the original array It is passed just as an object Question 6 int a = What would be the results of a after the following code executed? int[] = {55, 33, 88, 22, 99, 11, 44, 66, 77): 10: if(x[2] > x[51) a = 5; else a = 8: a. 5 8. 8 c. -5 d. -8 OD A B Question 7 The statement: double[] array1 = new double[10] O Creates an instance of an array of 10 double values O Declares array1 to be a reference to an array of double values O All of the above O Will allow valid subscripts in the range of 0-9 Question 8 Which of the statements are true about the following code? final int ARRAY SIZE = 10; longarray1 = new long[ARRAY_SIZE); a. Declares array1 to be a reference to an array of long values b. Creates an instance of an array of 10 long values c. Will allow valid subscripts in the range of 0 - 9 d. All of the above B

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!