Question: ITSE203 - Object Oriented Programming Activity Arrays 1. An array is a container that holds a group of values of a 2. Each item in

 ITSE203 - Object Oriented Programming Activity Arrays 1. An array isa container that holds a group of values of a 2. Each

ITSE203 - Object Oriented Programming Activity Arrays 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 O and the index to the last element of th array is the length of the 5. Given the following array declaration, determine which of the three statements below it are true. int[] auto Mobile = new int [13]; i. auto Mobile[0] is the reference to the first element in the array. ii. auto Mobile[13] is the reference to the last element in the array. iii. There are 13 integers in the auto Mobile 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 hold 9 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])

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!