1. An array is a container that holds a group of values of a 2. Each item in an array is called an 3. Each element is accessed by a numerical 4. The index to the first element of an array is 0 and the...


1. An array is a container that holds a group of values of a<br>2. Each item in an array is called an<br>3. Each element is accessed by a numerical<br>4. The index to the first element of an array is 0 and the<br>index to the last element of the array is the length of the<br>5. Given the following array declaration, determine which of<br>the three statements below it are true.<br>int [] autoMobile = new int [13];<br>i. autoMobile[0] is the reference to the first element in<br>the array.<br>ii. autoMobile[13] is the reference to the last element in<br>the array.<br>ii. There are 13 integers in the autoMobile array.<br>6. In java new is a<br>which is used to allocate<br>memory<br>7. Declare a one-dimensional array named score of type int<br>that can hold9 values.<br>8. Declare and initialize a one-dimensional byte array<br>named values of size 10 so that all entries contain 1.<br>9. Declare and initialize a one-dimensional array to store<br>name of any 3 students.<br>10. Declare a two-dimensional array named mark of type<br>double that can hold 5x3 values.<br>11. What is the output of the given program?<br>String[][] names = { {

Extracted text: 1. An array is a container that holds a group of values of a 2. Each item in an array is called an 3. Each element is accessed by a numerical 4. The index to the first element of an array is 0 and the index to the last element of the array is the length of the 5. Given the following array declaration, determine which of the three statements below it are true. int [] autoMobile = new int [13]; i. autoMobile[0] is the reference to the first element in the array. ii. autoMobile[13] is the reference to the last element in the array. ii. There are 13 integers in the autoMobile array. 6. In java new is a which is used to allocate memory 7. Declare a one-dimensional array named score of type int that can hold9 values. 8. Declare and initialize a one-dimensional byte array named values of size 10 so that all entries contain 1. 9. Declare and initialize a one-dimensional array to store name of any 3 students. 10. Declare a two-dimensional array named mark of type double that can hold 5x3 values. 11. What is the output of the given program? String[][] names = { {"Mr. ", "Mrs. ", "Ms. "}, {"Smith", "Jones"} }; System.out.println(names[0][0] + names[1][0]); System.out.println(names[0][2] + names[1][1]);

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here