Exam 7: Arrays and Arraylists
Exam 1: Introduction to Computers, the Internet and Java40 Questions
Exam 2: Introduction to Java Applications; Inputoutput and Operators33 Questions
Exam 3: Introduction to Classes, Objects, Methods and Strings32 Questions
Exam 4: Control Statements: Assignment, and Operators39 Questions
Exam 5: Control Statements: Logical Operators26 Questions
Exam 6: Methods: a Deeper Look38 Questions
Exam 7: Arrays and Arraylists46 Questions
Exam 8: Classes and Objects: a Deeper Look28 Questions
Exam 9: Object-Oriented Programming: Inheritance20 Questions
Exam 10: Object-Oriented Programming: Polymorphism and Interfaces34 Questions
Exam 11: Exception Handling: a Deeper Look27 Questions
Exam 12: Javafx Graphical User Interfaces22 Questions
Exam 13: Javafx Gui20 Questions
Exam 14: Strings, Characters and Regular Expressions26 Questions
Exam 15: Files, Inputoutput Streams, Nio and Xml Serialization30 Questions
Exam 16: Generic Collections36 Questions
Exam 17: Lambdas and Streams67 Questions
Exam 18: Recursion15 Questions
Exam 19: Searching, Sorting and Big O22 Questions
Exam 20: Generic Classes and Methods: a Deeper Look13 Questions
Exam 21: Custom Generic Data Structures17 Questions
Exam 22: Concurrency54 Questions
Exam 23: Accessing Databases With Jdbc34 Questions
Exam 24: Swing Gui Components78 Questions
Exam 25: Graphics and Java 2d19 Questions
Exam 26: Networking13 Questions
Exam 27: Java Persistence Api Jpa16 Questions
Exam 28: Javaserver Faces Web Apps15 Questions
Exam 29: Javaserver Faces Web Apps7 Questions
Exam 30: Swing Gui Components26 Questions
Select questions type
An argument type followed by a(n) in a method's parameter list indicates that the method receives a variable number of arguments of that particular type.
Free
(Multiple Choice)
4.7/5
(33)
Correct Answer:
B
Which of the following statements creates a multidimensional array with 3 rows, where the first row contains 1 element, the second row contains 4 elements and the final row contains 2 elements?
Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
B
Which of the following statements is true?
Free
(Multiple Choice)
4.7/5
(34)
Correct Answer:
C
The preferred way to traverse a two-dimensional array is to use .
(Multiple Choice)
4.7/5
(37)
Which set of statements totals the items in each row of two-dimensional array items, and displays each row's total?
(Multiple Choice)
4.8/5
(40)
An exception object's ________ method returns the exception's error message.
(Multiple Choice)
4.8/5
(37)
Consider the array:
s[0] = 7
S[1] = 0
S[2] = -12
S[3] = 9
S[4] = 10
S[5] = 3
S[6] = 6
The value of s[s[6] - s[5]] is:
(Multiple Choice)
4.8/5
(38)
Attempting to access an array element outside of the bounds of an array, causes a(n) .
(Multiple Choice)
4.9/5
(34)
In array items, which expression below accesses the value at row 3 and column 4?
(Multiple Choice)
4.8/5
(35)
Class Arrays provides method __________ for comparing arrays to determine whether they have the same contents.
(Multiple Choice)
4.9/5
(33)
What do the following statements do?
double[] array;
Array = new double[14];
(Multiple Choice)
4.9/5
(33)
Which expression adds 1 to the element of array arrayName at index i?
(Multiple Choice)
4.7/5
(38)
An array with m rows and n columns is not ________.
A. an m-by-n array.
B. an n-by-m array.
C. a two-dimensional array.
D. a dual-transcripted array.
(Multiple Choice)
4.8/5
(41)
Consider array items, which contains the values 0, 2, 4, 6 and 8. If method changeArray is called with the method call changeArray(items, items[2]), what values are stored in items after the method has finished executing? public static void changeArray(int[] passedArray, int value) {
PassedArray[value] = 12;
Value = 5;
}
(Multiple Choice)
4.9/5
(38)
Assume array items contains the integer values 0, 2, 4, 6 and 8. Which of the following uses the enhanced for loop to display each value in array items?
(Multiple Choice)
4.9/5
(38)
For tthe array that was the correct answer in the previous question, what is the value returned by items[1][0]?
(Multiple Choice)
4.9/5
(38)
Class ________ represents a dynamically resizable array-like data structure.
(Multiple Choice)
4.9/5
(30)
Showing 1 - 20 of 46
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)