Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Starting Out with Java Study Set 1
Quiz 7: Arrays and the Arraylist Class
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 41
Multiple Choice
Which of the following is a correct method header for receiving a two-dimensional array as an argument?
Question 42
Multiple Choice
What is the value of scores[2][3] in the following array? int[ ][ ] scores = { {88, 80, 79, 92}, {75, 84, 93, 80}, {98, 95, 92, 94}, {91, 84, 88, 96} };
Question 43
Multiple Choice
What would be the result after the following code is executed? int[ ] x = {23, 55, 83, 19}; Int[ ] y = {36, 78, 12, 24}; X = y; Y = x;
Question 44
Multiple Choice
What will be the value of x[8] after the following code is executed? final int SUB = 12; Int[ ] x = new int[SUB]; Int y = 20; For(int i = 0; i < SUB; i++) { X[i] = y; Y += 5; }
Question 45
Multiple Choice
What would be the result of executing the following code? int[ ] x = {0, 1, 2, 3, 4, 5};
Question 46
Multiple Choice
What would be the result after the following code is executed? final int SIZE = 25; Int[ ] array1 = new int[SIZE]; ) .. // Code that will put values in array1 Int value = 0; For (int a = 0; a < array1.length; a++) { Value += array1[a]; }
Question 47
Multiple Choice
What would be the result after the following code is executed? int[ ] numbers = {50, 10, 15, 20, 25, 100, 30}; Int value = 0; For (int i = 1; i < numbers.length; i++) Value += numbers[i];
Question 48
Multiple Choice
What will be the result after the following code is executed? final int ARRAY_SIZE = 5; Float[ ] x = float[ARRAY_SIZE]; For (i = 1; i <= ARRAY_SIZE; i++) { X[i] = 10.0; }
Question 49
Multiple Choice
Given the following two-dimensional array declaration, which statement is true? int[ ][ ] numbers = new int[6][9];
Question 50
Multiple Choice
For the following code, what would be the value of str[2]? String[ ] str = {"abc", "def", "ghi", "jkl"};
Question 51
Multiple Choice
What will be the results after the following code is executed? int[ ] array1 = new int[25]; ) .. // Code that will put values in array1 Int value = array1[0]; For (int a = 1; a < array1.length; a++) { If (array1[a] < value) Value = array1[a]; }
Question 52
Multiple Choice
What would be the result after the following code is executed? int[ ] numbers = {40, 3, 5, 7, 8, 12, 10}; Int value = numbers[0]; For (int i = 1; i < numbers.length; i++) { If (numbers[i] < value) Value = numbers[i]; }