APSU CSCI 2010 FINAL EXAM PAPER 2026
COMPLETE QUESTIONS AND SOLUTIONS
◉ Class. Answer: specify the attributes of an object and the actions an
object can take
◉ UML Diagram. Answer: Can be used to summarize the properties of a
class
◉ Instance Variable. Answer: can be accessed outside of the class using
the "." operator
◉ Method. Answer: defines an action that an object can perform, it can
also be called outside of the class by using the "." operator
◉ Access Modifiers. Answer: Used to specify how a class, method, or
instance variable can be accessed
◉ Public Method or instance variable. Answer: a method that is
accessible to another method of any other class
◉ Private Method or instance variable. Answer: a method that is only
accessible to methods in the same class
, ◉ Null Constant. Answer: Can be used as a placeholder for a variable
that does not refer to an actual object
◉ Void Method. Answer: Does NOT return a value
◉ Method Header Contains: Answer: Access Modifier: Public
Return Type: void
Name of method: writeOutput
Parameter list: ()
◉ Method Body. Answer: Sequence of statements that is executed when
the method is called, surrounded by {}
◉ Method can be defined to return a value. Answer: True
◉ When method is called: Answer: Return value should be stored in a
variable
◉ Keyword "this". Answer: refers to the object that is performing the
action specified by the method
COMPLETE QUESTIONS AND SOLUTIONS
◉ Class. Answer: specify the attributes of an object and the actions an
object can take
◉ UML Diagram. Answer: Can be used to summarize the properties of a
class
◉ Instance Variable. Answer: can be accessed outside of the class using
the "." operator
◉ Method. Answer: defines an action that an object can perform, it can
also be called outside of the class by using the "." operator
◉ Access Modifiers. Answer: Used to specify how a class, method, or
instance variable can be accessed
◉ Public Method or instance variable. Answer: a method that is
accessible to another method of any other class
◉ Private Method or instance variable. Answer: a method that is only
accessible to methods in the same class
, ◉ Null Constant. Answer: Can be used as a placeholder for a variable
that does not refer to an actual object
◉ Void Method. Answer: Does NOT return a value
◉ Method Header Contains: Answer: Access Modifier: Public
Return Type: void
Name of method: writeOutput
Parameter list: ()
◉ Method Body. Answer: Sequence of statements that is executed when
the method is called, surrounded by {}
◉ Method can be defined to return a value. Answer: True
◉ When method is called: Answer: Return value should be stored in a
variable
◉ Keyword "this". Answer: refers to the object that is performing the
action specified by the method