Exam 7: Arrays and the Arraylist Class
Exam 1: Introduction to Computers and Java51 Questions
Exam 2: Java Fundamentals61 Questions
Exam 3: Decision Structures64 Questions
Exam 4: Loops and Files57 Questions
Exam 5: Methods60 Questions
Exam 6: A First Look at Classes58 Questions
Exam 7: Arrays and the Arraylist Class64 Questions
Exam 8: A Second Look at Classes and Objects50 Questions
Exam 9: Text Processing and More About Wrapper Classes60 Questions
Exam 10: Inheritance70 Questions
Exam 11: Exceptions and Advanced File IO56 Questions
Exam 12: A First Look at GUI Applications60 Questions
Exam 13: Advanced GUI Applications58 Questions
Exam 14: Applets and More54 Questions
Exam 15: Creating GUI Applications With Javafx and Scene Builder40 Questions
Exam 16: Recursion42 Questions
Exam 17: Databases48 Questions
Select questions type
What would be the results after the following code was executed? int[] x = {23, 55, 83, 19};
Int[] y = {36, 78, 12, 24};
X = y;
Y = x;
(Multiple Choice)
4.8/5
(36)
To compare the contents of two arrays, you must compare the elements of the two arrays.
(True/False)
4.8/5
(39)
Java performs ____________, which means that it does not allow a statement to use a subscript that is outside the range of valid subscripts for the array.
(Multiple Choice)
4.9/5
(44)
What will be the results of the following code? final int ARRAY_SIZE = 5;
Double[] x = new double[ARRAY_SIZE];
For(int i = 1; i <= ARRAY_SIZE; i++)
{
X[i] = 10.0;
}
(Multiple Choice)
4.8/5
(39)
You can use this ArrayList class method to replace an item at a specific location in an ArrayList.
(Multiple Choice)
4.8/5
(38)
If numbers is a two-dimensional array, which of the following would give the length of row r?
(Multiple Choice)
4.8/5
(38)
The following statement creates an ArrayList object. What is the purpose of the <String> notation? ArrayList<String> arr = new ArrayList<String>();
(Multiple Choice)
4.9/5
(35)
You can use this ArrayList class method to insert an item at a specific location in an ArrayList.
(Multiple Choice)
4.8/5
(42)
What will be the result of executing the following code? int[] x = {0, 1, 2, 3, 4, 5};
(Multiple Choice)
4.8/5
(36)
Which of the statements are true about the following code? final int ARRAY_SIZE = 10;
Long[] array1 = new long[ARRAY_SIZE];
(Multiple Choice)
4.9/5
(36)
This ArrayList class method deletes an item from an ArrayList.
(Multiple Choice)
4.9/5
(33)
A sorting algorithm is used to locate a specific item in a larger collection of data.
(True/False)
4.9/5
(28)
This ArrayList class method is used to insert an item into an ArrayList.
(Multiple Choice)
4.8/5
(36)
To return an array of long values from a method, use this as the return type for the method.
(Multiple Choice)
4.7/5
(43)
Showing 41 - 60 of 64
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)