CS215 Final Exam Study Guide: Classes, Pointers,
Recursion, Sorting ACTUAL UPDATED QUESTIONS
AND CORRECT ANSWERS
What is the date and time of the Tuesday, May 5, 2026, from 8:00am to 10:00am
CS215 final exam?
What percentage of the final exam 20-30%
consists of True or False questions?
How many coding questions are 2-3 coding questions
included in the final exam?
, What is encapsulation in object- Separating interface from implementation, where
oriented programming? all access to the class goes through public member
functions.
What is a class in programming? A class describes a set of objects with the same
behavior and is a type.
What is the purpose of a To initialize an object's private data.
constructor?
What is the syntax for declaring a class ClassName { public: // member functions;
class in C++? private: // member variables; };
What distinguishes accessors from Accessors (const) do not modify the object, while
mutators in a class? mutators do.
What is the default constructor? A constructor with no parameters that is called
automatically when an object is created.
How do you declare a pointer in int *p;
C++?
What does the address-of operator It retrieves the address of a variable.
(&) do?
Recursion, Sorting ACTUAL UPDATED QUESTIONS
AND CORRECT ANSWERS
What is the date and time of the Tuesday, May 5, 2026, from 8:00am to 10:00am
CS215 final exam?
What percentage of the final exam 20-30%
consists of True or False questions?
How many coding questions are 2-3 coding questions
included in the final exam?
, What is encapsulation in object- Separating interface from implementation, where
oriented programming? all access to the class goes through public member
functions.
What is a class in programming? A class describes a set of objects with the same
behavior and is a type.
What is the purpose of a To initialize an object's private data.
constructor?
What is the syntax for declaring a class ClassName { public: // member functions;
class in C++? private: // member variables; };
What distinguishes accessors from Accessors (const) do not modify the object, while
mutators in a class? mutators do.
What is the default constructor? A constructor with no parameters that is called
automatically when an object is created.
How do you declare a pointer in int *p;
C++?
What does the address-of operator It retrieves the address of a variable.
(&) do?