• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 26 pages
Exam (elaborations)

CMSC Exam Verified Exam Questions and Answers Latest update 2026/202

Document preview thumbnail
Preview 3 out of 26 pages

CMSC Exam Verified Exam Questions and Answers Latest update 2026/202

Content preview

CMSC Exam
Verified Exam Questions and Answers Latest update 2026/2027

Question:
1. Inheritance is the process by which one new class,
called the class
Answer:
derived

Question:
2. Derived class is created from another class, called the base
class
Answer:


Question:
3. The derived class is also called: or class
Answer:
subclass, child

Question:
4. The base class is also called:
Answer:
superclass or parent class

Question:
5. Derived Class should have all the and
Base Class has.
Answer:
that Methods and instance
variables

Question:
6. Derived Class can define new instance variables and
new methods
Answer:
True

,Question:
7. Extends Syntax
Answer:
public class derivedClass
extends baseClass { ... }

Question:
8. Derived Class Base Class
Answer:
is a

Question:
9. When initializing a new Student object, we need to
initialize its
Answer:
base class

Question:
10. SubClass objects inherit all the private data
Answer:
True

Question:
11. Private members of the base class cannot be accessed True
directly
Answer:


Question:
12. When a class element (instance variable or method) derived
is declared to be protected (rather than public or pri- package
vate) it is accessible:
To any class (and hence to all descendents), and
To any class in the same
Answer:

, Question:
13. Package: When a class element is not given any
(private, public, protected) it is said to have pack- package
age access.
Answer:
access modifier

Question:
It is accessible: To any class in the same
Answer:


Question:
14. When should a person use public?
Answer:
public interface

Question:
Methods of the object's
instance variables (static final)
Answer:
Constant

Question:
15. When should a person use private?
Answer:
Instance variables

Question:
(other than constants)
Internal (not intended for use except in this
class)
Answer:
helper/utility methods

Question:
16. Protected/Package:
methods (for use in this class and related class-
es)

Document information

Uploaded on
October 16, 2026
Number of pages
26
Written in
2026/2027
Type
Exam (elaborations)
Contains
Questions & answers
$15.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
Sold
22
Followers
0
Items
11510
Last sold
4 weeks ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions