Exam 10: Object-Oriented Programming: Polymorphism and Interfaces

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following statements is false?

Free
(Multiple Choice)
4.8/5
(84)
Correct Answer:
Verified

C

Non-abstract classes are called ________.

Free
(Multiple Choice)
4.9/5
(88)
Correct Answer:
Verified

D

Which of the following statements about abstract superclasses is true?

Free
(Multiple Choice)
4.9/5
(77)
Correct Answer:
Verified

A

Which keyword is used to specify that a class will define the methods of an interface?

(Multiple Choice)
5.0/5
(77)

It is a UML convention to denote the name of an abstract class in ________.

(Multiple Choice)
4.9/5
(90)

When a superclass variable refers to a subclass object and a method is called on that object, the proper implementation is determined at execution time. What is the process of determining the correct method to call?

(Multiple Choice)
4.8/5
(89)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(75)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(88)

A(n)_______class cannot be instantiated.

(Multiple Choice)
4.9/5
(80)

Which of the following is false?

(Multiple Choice)
4.8/5
(71)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(65)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(77)

Classes and methods are declared final for all but the following reasons:

(Multiple Choice)
4.8/5
(88)

Consider classes A, B and C, where A is an abstract superclass, B is a concrete class that inherits from A and C is a concrete class that inherits from B. Class A declares abstract method originalMethod, implemented in class B. Which of the following statements is true of class C?

(Multiple Choice)
4.8/5
(79)

For which of the following would polymorphism not provide a clean solution?

(Multiple Choice)
4.8/5
(77)

Which statement best describes the relationship between superclass and subclass types?

(Multiple Choice)
4.8/5
(72)

If the superclass contains only abstract method declarations, the superclass is used for ________.

(Multiple Choice)
4.8/5
(86)

Which of the following is not possible?

(Multiple Choice)
4.9/5
(69)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(79)

In Java SE 7 and earlier, an interface may contain:

(Multiple Choice)
4.9/5
(95)
Showing 1 - 20 of 34
close modal

Filters

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