Exam 1: Object-Oriented Programming and Class Hierarchies
Exam 1: Object-Oriented Programming and Class Hierarchies41 Questions
Exam 2: Lists and the Collections Framework35 Questions
Exam 3: Testing and Debugging25 Questions
Exam 4: Stacks and Queues28 Questions
Exam 5: Recursion25 Questions
Exam 6: Trees25 Questions
Exam 7: Sets and Maps27 Questions
Exam 8: Sorting25 Questions
Exam 9: Self-Balancing Search Trees28 Questions
Exam 10: Graphs25 Questions
Exam 11: Introduction to Java25 Questions
Exam 12: Overview of UML25 Questions
Select questions type
Which of the following methods of java.lang.Object compares an object to its argument?
(Multiple Choice)
4.7/5
(30)
In UML class diagrams, the ____ sign next to the method names indicate that the methods are public.
(Multiple Choice)
4.8/5
(38)
The class ____________________ is the superclass of all exceptions.
(Short Answer)
4.7/5
(33)
Which of the following would cause an ArrayIndexOutOfBounds error?
(Multiple Choice)
4.8/5
(35)
A major reason for the popularity of object-oriented programming is that it enables programmers to reuse previously written code saved as classes.
(True/False)
4.9/5
(44)
The ____________________ is thrown when a program attempts to convert a non-numeric string to a numeric value.
(Short Answer)
4.8/5
(38)
The ____ represent error conditions that may occur as a result of programmer error or as a result of serious external conditions that are considered unrecoverable.
(Multiple Choice)
4.8/5
(41)
The combination of data together with its methods is called a(n) ____________________ data type.
(Short Answer)
4.8/5
(39)
A Java interface is a(n) ____ between the interface designer and the programmer who codes a class that implements the interface.
(Multiple Choice)
4.9/5
(42)
The call to ____ invokes the constructor for the current class whose parameter list matches the argument list.
(Multiple Choice)
4.9/5
(51)
If no constructors are defined for a class, the ____ constructor for that class will be provided by default.
(Multiple Choice)
4.8/5
(43)
____________________ errors are mistakes in your use of the grammar of the Java language.
(Short Answer)
4.8/5
(41)
Java automatically applies the ____________________ method to an object referenced in a String expression.
(Short Answer)
4.8/5
(34)
____________________ visibility is for members of a class that should not be accessible to anyone but the class, not even classes that extend it.
(Short Answer)
4.8/5
(36)
One way to make code reusable is to ____________________ or combine data elements together with methods that operate on that data in a separate program module.
(Short Answer)
4.9/5
(32)
Having multiple methods with the same name but different signatures in a class is called ____________________.
(Short Answer)
4.8/5
(35)
Showing 21 - 40 of 41
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)