Exam 1: Object-Oriented Programming and Class Hierarchies

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

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)

Which of the following statements is correct?

(Multiple Choice)
4.9/5
(41)

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)

Which of the following statements is correct?

(Multiple Choice)
4.9/5
(39)

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)

Which of the following is a RuntimeException?

(Multiple Choice)
4.9/5
(29)

____________________ 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)

Which of the following statements is correct?

(Multiple Choice)
4.9/5
(35)
Showing 21 - 40 of 41
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)