CSE OSU 2221 Midterm 2 Test Guide 2025. | Exam Revision Questions And
Correct Answers | Graded A+ | 2025 Update |
NaturalNumber - Answer component family that allows you to manipulate natural numbers
(non-negative integers).
is an interface
modulo - Answer similar to a remainder, calculated using "clock arithmetic". when a
negative number is "modded", it goes "counter-clockwise," returning a negative value
standard methods - Answer putting highly reused methods into an interface so they're
described in exactly one place
single point of control - Answer creating a single place to change code that affects many
others
kernel (primary) methods - Answer primary methods that are deemed being special enough
to go into their own interface
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
reference value - Answer memory address of an object
object value - Answer mathematical model value of the object a reference points to
Correct Answers | Graded A+ | 2025 Update |
NaturalNumber - Answer component family that allows you to manipulate natural numbers
(non-negative integers).
is an interface
modulo - Answer similar to a remainder, calculated using "clock arithmetic". when a
negative number is "modded", it goes "counter-clockwise," returning a negative value
standard methods - Answer putting highly reused methods into an interface so they're
described in exactly one place
single point of control - Answer creating a single place to change code that affects many
others
kernel (primary) methods - Answer primary methods that are deemed being special enough
to go into their own interface
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
reference value - Answer memory address of an object
object value - Answer mathematical model value of the object a reference points to