Strategies, Review of (100+) Key Practice
Questions and Verified Detailed Answers; for
Guaranteed Success
This APSU CSCI 2010 Final Exam covers foundational Object-Oriented Programming (OOP) concepts,
in Java. Key topics include class and object definitions, instance variables, methods (including
getters/setters), recursion, and inheritance. Access is available
Key Exam Concepts & Sample
A deep grasp of the following foundational terms and structures is critical for passing the CSCI 2010
exam:
• Classes and Objects: A class is a blueprint/template, whereas an object is an instance of that
class.
• Encapsulation & Information Hiding: Keeps class data private, meaning it cannot be altered
directly from outside. Programmers must interact through defined methods rather than direct
variable manipulation.
• Access Modifiers:
o public: Members are accessible from any other class.
o private: Members are only accessible within the same class.
• Methods:
o Accessors (Getters): Retrieve the value of a private instance variable.
o Mutators (Setters): Change the value of a private instance variable.
o Void vs.Value Returning: void methods execute actions but return no data. Value-
returning methods provide specific data types back.
• Inheritance vs. Polymorphism:
o Inheritance enables a derived class to inherit methods and attributes from a base class.
1
, o Polymorphism permits objects of a derived class to be treated as objects of a base
class, allowing the same method to have different implementations depending on the
calling object.
• Constructors: Special methods invoked when creating a new object using the new keyword.
They initialize variables and have the same name as the class.
• Abstract Classes vs. Interfaces:
o Abstract classes can contain both implemented methods and abstract method
headers.
o Interfaces only contain method headers (and public constants), defining what a class
should do without how.
• Recursion: A programming technique where a function directly or indirectly calls itself. It
requires a base case to prevent infinite recursion.
Studying this exact set and terminology will provide the best
context for the exam's structural format.
Quiz_________________?
Object -
Answer
represent real-world objects or abstract concepts.
Quiz_________________?
Class -
Answer
2
, specify the attributes of an object and the actions an object can take
Quiz_________________?
UML Diagram -
Answer
Can be used to summarize the properties of a class
Quiz_________________?
Instance Variable -
Answer
can be accessed outside of the class using the "." operator
Quiz_________________?
Method -
Answer
defines an action that an object can perform, it can also be called outside of the class by using the "."
operator
Quiz_________________?
Access Modifiers -
3