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.7/5
(36)
Correct Answer:
Verified

C

Non-abstract classes are called ________.

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

D

Which of the following statements about abstract superclasses is true?

Free
(Multiple Choice)
4.9/5
(32)
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
(32)

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

(Multiple Choice)
4.9/5
(38)

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
(32)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(26)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(31)

A(n)_______class cannot be instantiated.

(Multiple Choice)
4.9/5
(31)

Which of the following is false?

(Multiple Choice)
4.7/5
(26)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(25)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(33)

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

(Multiple Choice)
4.7/5
(41)

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
(31)

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

(Multiple Choice)
4.8/5
(29)

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

(Multiple Choice)
4.7/5
(29)

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

(Multiple Choice)
4.8/5
(33)

Which of the following is not possible?

(Multiple Choice)
4.9/5
(26)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(31)

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

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

Filters

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