[Solved]-Question 1 Create Array Type String Length 20 Name Numbers Fill Array Path P Question 2 Cr Q37206829



QUESTION 1 Create an array of type String with a length of 20 and a name of numbers. Do not fill the array. Path: P QUESTION 2 Create an array and fill it when declaring the array to contain the following integers. Name it values. 5,1,4,7,3,9,10 #T▼ー▼ー 側.ela TTI Arial 3 (12pt) QUESTION 3 What does the following code do? What will be created? into scores = { 90,95,08,99, 100); into scores2-scores; T T T Arial T-·-·-· 3 (12pt) · Path: p QUESTION 4 doublel num (1.1, 2.2, 3.3, 4.4, 5.5) double[] numbers = num; numbers(3] 6.6; System.out.printin(num[3); What will be printed from the previous code? QUESTION 5 Given a String array with 20 elements The array is named names; Write an enhanced for loop to print all the elements. All you need to write is the loop itself Words:0 Path: p QUESTION 6 Write the code to create a new array and copy each element from an existing array named temps to the new array. The new array should be double the size of the old array. This can be accomplished in one statement. Do not copy the reference rather make a copy of the array. QUESTION 7 Create a two dimensional integer array named twoDArray with there being 5 rows and 7 columns. Show transcribed image text QUESTION 1 Create an array of type String with a length of 20 and a name of numbers. Do not fill the array. Path: P QUESTION 2 Create an array and fill it when declaring the array to contain the following integers. Name it values. 5,1,4,7,3,9,10 #T▼ー▼ー 側.ela TTI Arial 3 (12pt)
QUESTION 3 What does the following code do? What will be created? into scores = { 90,95,08,99, 100); into scores2-scores; T T T Arial T-·-·-· 3 (12pt) · Path: p QUESTION 4 doublel num (1.1, 2.2, 3.3, 4.4, 5.5) double[] numbers = num; numbers(3] 6.6; System.out.printin(num[3); What will be printed from the previous code?
QUESTION 5 Given a String array with 20 elements The array is named names; Write an enhanced for loop to print all the elements. All you need to write is the loop itself Words:0 Path: p QUESTION 6 Write the code to create a new array and copy each element from an existing array named temps to the new array. The new array should be double the size of the old array. This can be accomplished in one statement. Do not copy the reference rather make a copy of the array.
QUESTION 7 Create a two dimensional integer array named twoDArray with there being 5 rows and 7 columns.
Expert Answer
Answer to QUESTION 1 Create an array of type String with a length of 20 and a name of numbers. Do not fill the array. Path: P QUES… . . .
OR

