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

COP3503 Midterm Exam Study Guide NEWEST 2026/2027 ACTUAL EXAM COMPLETE QUESTIONS AND CORRECT DETAILED ANSWERS (VERIFIED ANSWERS) |ALREADY GRADED A+||BRAND NEW!!

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
08-12-2023
Written in
2023/2024

COP3503 Midterm Exam Study Guide NEWEST 2026/2027 ACTUAL EXAM COMPLETE QUESTIONS AND CORRECT DETAILED ANSWERS (VERIFIED ANSWERS) |ALREADY GRADED A+||BRAND NEW!!

Institution
NUR 631
Course
NUR 631

Content preview

COP3503 Midterm Exam Study Guide

What is the purpose of using brackets with new and delete? - ANSIf you allocate memory with
brackets, you must delete that memory using brackets. If not, the results are "undefined
behavior."

What is encapsulation? - ANSgrouping data and/or functionality together

What is the purpose of a constructor? - ANSa function used to initialize an object that is called
only once, when an object is initially created

What is the name of the pointer of the invoking object (e.g. the object which called the function)?
- ANS"this"

What is the name of the function that gets called when an object falls out of scope? -
ANSDestructor

What is an accessor? - ANS"get" functions; retrieve something from the class

What is a mutator? - ANS"set" functions; change something about the class

What are the public/private keywords used for? - ANSPublic: everyone can access; good for
functions and accessors
Private: the default; only the class itself (i.e. functions within the class) can access

How do you create a constant variable? - ANSconst type* variableName

How do you pass constant parameters? - ANSfunction(const type parameter)

How do you protect a class function from modifying "this"? - ANSCreating a const class makes
"this" read only

What is a constant pointer? - ANSprotects the thing the pointer is pointing to; protects the
pointer itself; or both

What does the new keyword do? - ANSdynamically allocates memory at run-time

What does the delete keyword do? - ANSremoves memory allocated with new when you are
done with it. Use when your program no longer needs something

What is a memory leak? - ANSMemory which is allocated, but never deallocated (or freed) by
the program

Written for

Institution
NUR 631
Course
NUR 631

Document information

Uploaded on
December 8, 2023
Number of pages
4
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

  • nur 631

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.
Ashley96 Howard Community College
View profile
Follow You need to be logged in order to follow users or courses
Sold
611
Member since
2 year
Number of followers
198
Documents
5130
Last sold
3 days ago

In my page you will find all latest Exams , with Questions and Answers, package deals, etc. I upload quality. Instant delivery. You will get solutions to all subjects in both assignments and major exams. Contact me for any assistance. Good Luck!!!

4.1

166 reviews

5
97
4
21
3
25
2
7
1
16

Trending documents

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 tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right 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 aced it. It really can be that simple.”

Alisha Student

Frequently asked questions