Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started