100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

JAVA 3252 Chapter 11 polymorphism Questions with Detailed Verified Answers (100% Correct Answers) /Already Graded A+

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
24-03-2025
Written in
2024/2025

JAVA 3252 Chapter 11 polymorphism Questions with Detailed Verified Answers (100% Correct Answers) /Already Graded A+

Institution
JAVA
Course
JAVA









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
JAVA
Course
JAVA

Document information

Uploaded on
March 24, 2025
Number of pages
8
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Page |1




JAVA 3252 Chapter 11 polymorphism
Questions with Detailed Verified Answers
(100% Correct Answers) /Already Graded
A+
Polymorphism enables you to:


A. program in the general.
B. program in the specific.
C. absorb attributes and behavior from previous classes.
D. hide information from the user.
Ans: A. program in the general.

Which of the following statements about interfaces is false?


A. An interface describes a set of methods that can be called on an object, providing a
default implementation for the methods.
B. An interface describes a set of methods that can be called on an object, not providing
concrete implementation for the methods.
C. Interfaces are useful when attempting to assign common functionality to possibly unrelated
classes.
D. Once a class implements an interface, all objects of that class have an is-a relationship with
the interface type
Ans: A. An interface describes a set of methods that can be called on an object, providing a
default implementation for the methods.

For which of the following would polymorphism not provide a clean solution?
A. A billing program where there is a variety of client types that are billed with different fee
structures.
B. A maintenance log program where data for a variety of types of machines is collected and
maintenance schedules are produced for each machine based on the data collected.

, Page |2


C. A program to compute a 5% savings account interest for a variety of clients.
D. An IRS program that maintains information on a variety of taxpayers and determines who
to audit based on criteria for classes of taxpayers.
Ans: C. A program to compute a 5% savings account interest for a variety of clients

Polymorphism allows for specifics to be dealt with during:
A. execution.
B. compilation.
C. programming.
D. debugging.
Ans: A. execution.

Which statement best describes the relationship between superclass and subclass types?
A. A subclass reference cannot be assigned to a superclass variable and a superclass
reference cannot be assigned to a subclass variable.
B. A subclass reference can be assigned to a superclass variable and a superclass reference
can be assigned to a subclass variable.
C. A superclass reference can be assigned to a subclass variable, but a subclass reference
cannot be assigned to a superclass variable.
D. A subclass reference can be assigned to a superclass variable, but a superclass reference
cannot be assigned to a subclass variable.
Ans: D. A subclass reference can be assigned to a superclass variable, but a superclass
reference cannot be assigned to a subclass variable.

A(n)_________class cannot be instantiated.
A. final.
B. concrete.
C. abstract.
D. polymorphic.
Ans: abstract

Non-abstract classes are called:
Ans: concrete

It is a UML convention to denote the name of an abstract class in:
A. bold.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Metric Yale School Of Medicine
View profile
Follow You need to be logged in order to follow users or courses
Sold
93
Member since
1 year
Number of followers
5
Documents
13109
Last sold
1 day ago

Welcome to Metric – Your Go-To Study Resource on Stuvia! At Metric, we believe studying should be smart, efficient, and effective. That’s why we offer high-quality, exam-ready study notes, summaries, and resources designed to help you understand key concepts faster and achieve better results. Whether you're cramming for finals, revising for a quiz, or looking to deepen your understanding, Metric provides content that’s clear, structured, and aligned with real course requirements. ✨ What you’ll find at Metric: ✔️ Accurate, in-depth summaries ✔️ Easy-to-follow formats for fast revision ✔️ Notes based on real syllabus & past exams ✔️ Regularly updated content you can trust Join hundreds of students who rely on Metric to study smarter—not harder. Browse the shop, grab what you need, and level up your academic game today!ades with Expert Academic Help

Read more Read less
3.0

12 reviews

5
3
4
1
3
2
2
5
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions