Exam 7: Arrays and Arraylists
Exam 1: Introduction to Computers and Java42 Questions
Exam 2: Introduction to Java Applications34 Questions
Exam 3: Introduction to Classes and Objects34 Questions
Exam 4: Control Statements: Part 142 Questions
Exam 5: Control Statements: Part 227 Questions
Exam 6: Methods: a Deeper Look39 Questions
Exam 7: Arrays and Arraylists44 Questions
Exam 8: Classes and Objects: a Deeper Look27 Questions
Exam 9: Object Oriented Programming: Inheritance22 Questions
Exam 10: Object-Oriented Programming: Polymorphism28 Questions
Exam 11: Exception Handling27 Questions
Exam 12: Gui Components: Part 170 Questions
Exam 13: Graphics and Java 2D19 Questions
Exam 14: Strings27 Questions
Exam 15: Files,streams and Object Serialization29 Questions
Exam 16: Generic Collections41 Questions
Exam 17: Lambdas60 Questions
Exam 18: Recursion13 Questions
Exam 19: Searching, Sorting and Big O22 Questions
Exam 20: Generic Classes and Methods15 Questions
Exam 21: Custom Generic Data Structures17 Questions
Exam 23: Concurrency55 Questions
Exam 24: Accessing Databases With Jdbc35 Questions
Exam 25: JavaFX26 Questions
Select questions type
Assume class Book has been declared.Which set of statements creates an array of Books?
(Multiple Choice)
4.7/5
(38)
Which method call converts the value in variable stringVariable to an integer?
(Multiple Choice)
4.8/5
(38)
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?
(Multiple Choice)
4.7/5
(36)
What do the following statements do?
Double[] array;
Array = new double[14];
(Multiple Choice)
4.9/5
(34)
How many Book objects are created by the following statement?
Book[] books = new Book[10];
(Multiple Choice)
4.9/5
(33)
Which expression adds 1 to the element of array arrayName at index i?
(Multiple Choice)
4.9/5
(33)
Which of the following initializer lists would correctly set the elements of array n?
(Multiple Choice)
4.9/5
(32)
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
(39)
Which statement correctly passes the array items to method takeArray? Array items contains 10 elements.
(Multiple Choice)
4.8/5
(34)
Which command below runs TestProgram,and passes in the values files.txt and 3?
(Multiple Choice)
4.8/5
(40)
Class Arrays methods sort,binarySearch,equals and fill are overloaded for primitive-type arrays and Object arrays.In addition,methods __________ and __________ are overloaded with generic versions.
(Multiple Choice)
4.8/5
(37)
What kind of application tests a class by creating an object of that class and calling the class's methods?
(Multiple Choice)
4.8/5
(41)
For the array that was the correct answer in the previous question,what is the value returned by items[1][0]?
(Multiple Choice)
4.9/5
(40)
Showing 21 - 40 of 44
Filters
- Essay(0)
- Multiple Choice(44)
- Short Answer(0)
- True False(0)
- Matching(0)