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
An exception object's ________ method returns the exception's error message.
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
D
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
(38)
Correct Answer:
B
A programmer must do the following before using an array:
Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
D
Consider the code segment below.Which of the following statements is false?
Int[] g;
G = new int[23];
(Multiple Choice)
4.8/5
(36)
Which statement below initializes array items to contain 3 rows and 2 columns?
(Multiple Choice)
4.7/5
(41)
Attempting to access an array element outside of the bounds of an array,causes a(n).
(Multiple Choice)
4.8/5
(38)
Which of the following statements about creating arrays and initializing their elements is false?
(Multiple Choice)
4.7/5
(37)
Which of the following tasks cannot be performed using an enhanced for loop?
(Multiple Choice)
4.9/5
(40)
Consider integer array values,which contains 5 elements.Which statements successfully swap the contents of the array at index 3 and index 4?
(Multiple Choice)
4.8/5
(35)
Which set of statements totals the values in two-dimensional int array items?
(Multiple Choice)
4.9/5
(41)
Class ________ represents a dynamically resizable array-like data structure.
(Multiple Choice)
4.9/5
(28)
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
(39)
A(n)________ indicates a problem that occurs while a program executes.
(Multiple Choice)
4.8/5
(35)
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.9/5
(32)
Class Arrays provides method __________ for comparing arrays to determine whether they have the same contents.
(Multiple Choice)
4.8/5
(43)
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
(43)
Showing 1 - 20 of 44
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)