Question: QUESTION 1 To specify a particular element in an array, use a(n): O element range boolean value subscript QUESTION 2 An array of string objects




QUESTION 1 To specify a particular element in an array, use a(n): O element range boolean value subscript QUESTION 2 An array of string objects is arranged the same as an array of primitive objects. is compressed to 4 bytes for each element. must be initialized when the array is declared. consists of an array of references to String objects. QUESTION 3 If items are added to an ArrayList object, the size will automatically increase to accommodate the added items. True False QUESTION 4 Given the folloiwng: Stringt str - ("abe", "det", "hi", "ki"); What is the value of str (2) ? O a reference to the string object containing "ghi" "ghi" a reference to the string object containing "def" "det" QUESTIONS Given the following: int[] [] numbers - new int [6] 19); Which of the following is true? The numbers array has 54 rows. The numbers array has 15 rows. The numbers array has 6 rows and 9 columns The numbers array has 6 columns and 9 rows. QUESTION 6 To specify a particular object reference in an array of objects, use a subscript, just as you would with an array of int, float, or double elements. True False QUESTION 7 Given the following: int00) scores - (88, 80, 99, 92), (75, 84, 93, 80), (98, 95, 92, 94), (91, 84, 88, 96)); score[2][3] has the value oft O 95 84 94 93 QUESTION 8 What happens when an array is passed to a method? O it is passed just as any other object would be. O the method has direct access to the original array. O a reference to the array is passed. O All of these QUESTION 9 A method that will receive a two-dimensional array would have a method header such as: O public static void passiere (int[] myArzay, int[] myArray) O public static void passiere (int[] [] myArray) O public static void passiere (int myarray) O public static void passiere (array myArray) QUESTION 10 Given the following: final int ARRAY_SIZE - 10; longti array = new long [ARRAY_SIZE]: Which of the following statements is accurate? this declares array1 to be a reference to an array of long values this creates an instance of an array of 10 long values this will allow valid subscripts in the range of O through 9 O All of these QUESTION 11 This method can be used to replace an item at a specific location in an ArrayList. set remove replace add QUESTION 12 method. In an ArrayList, a new item can be inserted at a specified location by utilizing the set store add insert QUESTION 13 method. To find out how many items are in an ArrayList object, utilize the items listLength size volume
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
