Services
Discover
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
Exam 7: Arrays and the Arraylist Class
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
True/False
Java does not limit the number of dimensions that an array may have.
Question 2
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 3
Multiple Choice
What would be the results of the following code? int[] x = { 55, 33, 88, 22, 99, 11, 44, 66, 77 }; Int a = 10; If(x[2] > x[5]) A = 5; Else A = 8;
Question 4
Multiple Choice
When an array is passed to a method:
Question 5
Multiple Choice
When an individual element of an array is passed to a method:
Question 6
Multiple Choice
You use this method to determine the number of items stored in an ArrayList object.
Question 7
True/False
Objects in an array are accessed with subscripts, just like any other data type in an array.
Question 8
True/False
If a[] and b[] are two integer arrays, the expression a == b compares the array contents.
Question 9
Multiple Choice
By default, Java initializes array elements with what value?
Question 10
Multiple Choice
The binary search algorithm:
Question 11
Multiple Choice
What does the following statement do? double[] array1 = new double[10];
Question 12
Multiple Choice
It is common practice to use a ____________ variable as a size declarator.
Question 13
Multiple Choice
If final int SIZE = 15 and int[] x = new int[SIZE], what would be the range of subscript values that could be used with x[]?
Question 14
True/False
A sorting algorithm is a technique for scanning through an array and rearranging its contents in some specific order.
Question 15
Multiple Choice
What would be the results of the following code? 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]; }