COP 3330 EXAM 1 PRACTICE QUESTIONS
WITH DETAILED EXPLANATIONS 2026
◉ Class.
Answer: a blueprint for objects
◉ function.
Answer: return type
name
parameter list
◉ pass by reference.
Answer:
◉ pass by value.
Answer: creates copy
changes will not affect the originals
◉ friend functions.
Answer: class Fraction {
, friend bool functionname(parameter 1);
public:
private:
}
◉ L-values.
Answer: represents an object that has an address location in
memory
◉ R-values.
Answer: represents an object that does not have an address location
in memory
◉ object passed by value.
Answer: a copy is made of the object. Any R-value can be sent on the
call
◉ object passed by reference.
Answer: (without const) no copy is made, and only an L-value can be
sent on the call
WITH DETAILED EXPLANATIONS 2026
◉ Class.
Answer: a blueprint for objects
◉ function.
Answer: return type
name
parameter list
◉ pass by reference.
Answer:
◉ pass by value.
Answer: creates copy
changes will not affect the originals
◉ friend functions.
Answer: class Fraction {
, friend bool functionname(parameter 1);
public:
private:
}
◉ L-values.
Answer: represents an object that has an address location in
memory
◉ R-values.
Answer: represents an object that does not have an address location
in memory
◉ object passed by value.
Answer: a copy is made of the object. Any R-value can be sent on the
call
◉ object passed by reference.
Answer: (without const) no copy is made, and only an L-value can be
sent on the call