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
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.9/5
(39)
Which set of statements totals the values in two-dimensional int array items?
(Multiple Choice)
4.7/5
(35)
Which command below runs TestProgram, and passes in the values files.txt and 3?
(Multiple Choice)
4.9/5
(29)
A(n)________ indicates a problem that occurs while a program executes.
(Multiple Choice)
4.9/5
(42)
Which flag in a format specifier indicates that values with fewer digits than the field width should begin with a leading 0?
(Multiple Choice)
4.8/5
(39)
Which statement below initializes array items to contain 3 rows and 2 columns?
(Multiple Choice)
4.8/5
(25)
Which of the following sets of statements creates a multidimensional array with 3 rows, where the first row contains 1 value, the second row contains 4 items and the final row contains 2 items?
(Multiple Choice)
4.8/5
(39)
How many Book objects are created by the following statement? Book[] books = new Book[10];
(Multiple Choice)
5.0/5
(33)
Which of the following statements about arrays are true?
A. An array is a group of variables containing values that all have the same type.
B. Elements are located by index.
C. The length of an array c is determined by the expression c.length();.
D. The zeroth element of array c is specified by c[0].
(Multiple Choice)
4.9/5
(31)
When you pass an array or an individual array element of a reference type to a method, the called method receives ________. When you pass an individual element of a primitive type, the called method receives ________.
(Multiple Choice)
4.9/5
(36)
Consider the code segment below. Which of the following statements is false? int[] g;
G = new int[23];
(Multiple Choice)
4.8/5
(30)
Which statement correctly passes the array items to method takeArray? Array items contains 10 elements.
(Multiple Choice)
4.7/5
(23)
Which of the following tasks cannot be performed using an enhanced for loop?
(Multiple Choice)
4.7/5
(36)
Which of the following statements about creating arrays and initializing their elements is false?
(Multiple Choice)
4.9/5
(40)
Showing 21 - 40 of 46
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)