100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

CMSC 202 FINAL EXAM QUESTIONS WITH CORRECT ANSWERS

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
13-01-2026
Written in
2025/2026

CMSC 202 FINAL EXAM QUESTIONS WITH CORRECT ANSWERS

Institution
CMSC
Module
CMSC









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CMSC
Module
CMSC

Document information

Uploaded on
January 13, 2026
Number of pages
5
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CMSC 202 FINAL EXAM QUESTIONS
WITH CORRECT ANSWERS

The term ________ means the ability to take many forms. - CORRECT
| | | | | | | | | | | |


ANSWER✔✔-polymorphism


An iterator is a generalization of a ________, commonly used for a container
| | | | | | | | | | | | |


classes. - CORRECT ANSWER✔✔-pointer
| | |




If no exception is thrown, then the ______ _______ is ignored. - CORRECT
| | | | | | | | | | | | |


ANSWER✔✔-catch


A recursive function is one in which the function invokes _______________ -
| | | | | | | | | | | |


CORRECT ANSWER✔✔-itself |




In a ______ ______ two pointers will point to the same object. - CORRECT
| | | | | | | | | | | | | |


ANSWER✔✔-shallow copy |




Separate compilation generally works except when using - CORRECT
| | | | | | | | |


ANSWER✔✔-templates


Two primary queue operations are _________________ and _______________ -
| | | | | | | | |


CORRECT ANSWER✔✔-dequeue, endqueue
| |

, When a structure is passed by _______________ to a function, its members are
| | | | | | | | | | | | |


not copied. - CORRECT ANSWER✔✔-by reference
| | | | |




When the ________ is placed in front of a variable name, it returns the address
| | | | | | | | | | | | | | |


of that variable. - CORRECT ANSWER✔✔-ampersand ( & )
| | | | | | | |




A ___________ is a linked data structure that follows the First In First Out (FIFO)
| | | | | | | | | | | | | | |


convention. - CORRECT ANSWER✔✔-A queue | | | |




To save the output of a command to a file the operator used is
| | | | | | | | | | | | | |


_________________________. - CORRECT ANSWER✔✔-> | | |




A friend function is used to access the ___________ and ___________ of a class.
| | | | | | | | | | | | |


- CORRECT ANSWER✔✔-private, protected
| | | |




The next pointer of the _______________ node in a singly linked list will have a
| | | | | | | | | | | | | | |


null pointer. - CORRECT ANSWER✔✔-last(tail)
| | | |




Consider the following recursive definition, where n is a positive integer.
| | | | | | | | | |




mult(1) = 1 | |




mult(n) = 2* mult(n - 1) + 1 if n > 1
| | | | | | | | | | |




The value of mult(3) is __________________. - CORRECT ANSWER✔✔-7
| | | | | | | |




An abstract class must contain at least one ___________ ___________
| | | | | | | | | |


_______________. (3 words) - CORRECT ANSWER✔✔-pure virtual function | | | | | | |

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Lectphilip West Virginia University
View profile
Follow You need to be logged in order to follow users or courses
Sold
178
Member since
1 year
Number of followers
6
Documents
19179
Last sold
1 day ago
WELCOME TO LECTPHILIP, A PLACE WHERE WE UNLOCK YOUR ACADEMIC OPPORTUNITIES

On this page, you find all documents, package deals and flashcards offered by seller lectphilip

4.1

28 reviews

5
14
4
6
3
5
2
2
1
1

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions