CSE 2221 Midterm 2 Quick Guide 2025. | Exam Revision Questions And
Correct Answers | Graded A+ | 2025 Update |
RSS - ANSWER- Really Simple Synidication - Websites that update frequently
XML - ANSWER- Used to represent hierarchically organized data for "ease of use" both by
humans and computers
XML (element) - ANSWER- Anything between <> is an element (name of tag)
XML (attribute) - ANSWER- Any additional characteristic to a tag element
Debugging - ANSWER- Repairing defects within a code
Overflow - ANSWER- Any value that surpasses the maximum value of a type. Example: An
integer that surpasses Integer.MAXVALUE() is an overflow error
Kernel Methods - ANSWER- Methods of NaturalNumbers, such as (multiplyBy10(),
divideBy10(), isZero()).
Single Point of Control Over Change - ANSWER- Only one return value
Mathematical Model - ANSWER- Algorithm for solving problem
Constructor - ANSWER- Has keyword "new" before the constructor name. For example, new
XMLTree1("foo.xml");
, Receiver - ANSWER- The receiver of an instance method. For example,
RECEIVER.methodName(arguments)).
Distinguished Formal Parameter - ANSWER- Identifier used in a method to stand for the value
that is passed into method by the caller. (arguments in the method title)
Reference Type - ANSWER- Anything that points to a reference value. For example, String,
NaturalNumber, and XMLTree
Primitive Type - ANSWER- Anything that doesn't point to a reference value. For example, int,
char, double
Mutable - ANSWER- Able to change reference value; NaturalNumber
Immutable - ANSWER- Unable to change reference value, must create new reference; Strings
# (in a contract) - ANSWER- Indicates incoming value
Reference Value - ANSWER- Location ID of some place in memory
Object value - ANSWER- Mathematical Model value of the object the reference s points too
Memory Address - ANSWER- Essentially the reference value, place in which the object is
stored
Assignment (primitive) - ANSWER- Assignment operator copies value to the right of the
equation (example: int i = k + 7)
Assignment (reference) - ANSWER- Reference Example: String s = t + "io", let t = "Oh":
Correct Answers | Graded A+ | 2025 Update |
RSS - ANSWER- Really Simple Synidication - Websites that update frequently
XML - ANSWER- Used to represent hierarchically organized data for "ease of use" both by
humans and computers
XML (element) - ANSWER- Anything between <> is an element (name of tag)
XML (attribute) - ANSWER- Any additional characteristic to a tag element
Debugging - ANSWER- Repairing defects within a code
Overflow - ANSWER- Any value that surpasses the maximum value of a type. Example: An
integer that surpasses Integer.MAXVALUE() is an overflow error
Kernel Methods - ANSWER- Methods of NaturalNumbers, such as (multiplyBy10(),
divideBy10(), isZero()).
Single Point of Control Over Change - ANSWER- Only one return value
Mathematical Model - ANSWER- Algorithm for solving problem
Constructor - ANSWER- Has keyword "new" before the constructor name. For example, new
XMLTree1("foo.xml");
, Receiver - ANSWER- The receiver of an instance method. For example,
RECEIVER.methodName(arguments)).
Distinguished Formal Parameter - ANSWER- Identifier used in a method to stand for the value
that is passed into method by the caller. (arguments in the method title)
Reference Type - ANSWER- Anything that points to a reference value. For example, String,
NaturalNumber, and XMLTree
Primitive Type - ANSWER- Anything that doesn't point to a reference value. For example, int,
char, double
Mutable - ANSWER- Able to change reference value; NaturalNumber
Immutable - ANSWER- Unable to change reference value, must create new reference; Strings
# (in a contract) - ANSWER- Indicates incoming value
Reference Value - ANSWER- Location ID of some place in memory
Object value - ANSWER- Mathematical Model value of the object the reference s points too
Memory Address - ANSWER- Essentially the reference value, place in which the object is
stored
Assignment (primitive) - ANSWER- Assignment operator copies value to the right of the
equation (example: int i = k + 7)
Assignment (reference) - ANSWER- Reference Example: String s = t + "io", let t = "Oh":