OSU CSE 2221 FINAL EXAM PAPER 2026
COMPLETE QUESTIONS AND SOLUTIONS
VERIFIED
⩥ secondary methods. Answer: methods that are more "powerful" than
kernel methods, introduced to make a component readily usable in client
code
⩥ constructor. Answer: a method that creates an instance of a class
⩥ no-argument constructor. Answer: default constructor, takes no
arguments
⩥ copy constructor. Answer: returns a copy of the parameter value
⩥ instance method. Answer: methods that are called by a specific object
⩥ distinguished formal parameter. Answer: this
⩥ receiver. Answer: object an instance method is called on
, ⩥ parameter mode. Answer: the effect the parameter will have on the
object
⩥ mutable. Answer: object can be modified
⩥ #<variable_name>. Answer: # represents the old (incoming) variable
value
⩥ updates parameter mode. Answer: signifies that the parameter may
change the object
does not ensures parameter restoration
⩥ clear parameter mode. Answer: signifies that the object's value will be
reset to its initial value
⩥ primitive types. Answer: built-in types, such as boolean, char, int,
double
⩥ reference types. Answer: all other non-primitive types, such as String,
XMLTree, SimpleReader, NaturalNumber, etc.
⩥ object. Answer: instance of a class
COMPLETE QUESTIONS AND SOLUTIONS
VERIFIED
⩥ secondary methods. Answer: methods that are more "powerful" than
kernel methods, introduced to make a component readily usable in client
code
⩥ constructor. Answer: a method that creates an instance of a class
⩥ no-argument constructor. Answer: default constructor, takes no
arguments
⩥ copy constructor. Answer: returns a copy of the parameter value
⩥ instance method. Answer: methods that are called by a specific object
⩥ distinguished formal parameter. Answer: this
⩥ receiver. Answer: object an instance method is called on
, ⩥ parameter mode. Answer: the effect the parameter will have on the
object
⩥ mutable. Answer: object can be modified
⩥ #<variable_name>. Answer: # represents the old (incoming) variable
value
⩥ updates parameter mode. Answer: signifies that the parameter may
change the object
does not ensures parameter restoration
⩥ clear parameter mode. Answer: signifies that the object's value will be
reset to its initial value
⩥ primitive types. Answer: built-in types, such as boolean, char, int,
double
⩥ reference types. Answer: all other non-primitive types, such as String,
XMLTree, SimpleReader, NaturalNumber, etc.
⩥ object. Answer: instance of a class