Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

COP 3330 Exam1 Review 100% correct

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
18-02-2026
Written in
2025/2026

Which of the following statements is true regarding classes and objects? a. Member functions of a class must always be public b. Member data of a class is in scope inside its member function definition c. Member functions are called by using the format object::function() Member data of a class must be passed into the member functions as parameters. d. 1. Which of the following is a conversion constructor for a class called Prisoner? (Assume that Criminal is another class) a. Criminal (Prisoner x); b. explicit Prisoner (int x); c. Prisoner (Criminal x); d. Prisoner (int x, Criminal Y) 2. Which would result in a compile stage error? a. Calling a function before it is declared b. Passing an int argument to a function that expects a parameter of type double. c. Having two definitions of a function, each one in a separate code file d. Doing the division (x/y) , where x and y are integers and y is 0. 3. In a class, the typical purpose of a destructor member function is…. a. To re-initialize the internal data of an object to a default b. To return the value of some internal data of an object c. To build another object inside of the existing object d. To do any final clean-up tasks on an object before it is deallocated 4. Which of the following statements about operator overloading is false? a. A unary operator overload can be written as a member function of a class b. Operator overloading can be used to create new operator symbols c. A binary operator overload can use a built-in type as an operand d. Operator overloading cannot set a new precedence level for an operator 5. Which of the following describes an implementation of the composition ('has-a') relationship. a. Class Cheese is defined inside of class Pizza b. An object type File is declared as member data of class File c. An object of type Snow is declared

Show more Read less
Institution
Revision
Course
Revision

Content preview

Exam 1 Review
Sunday, June 10, 2018 10:38 PM



1. Which of the following statements is true regarding classes and objects?
a. Member functions of a class must always be public
b. Member data of a class is in scope inside its member function definition
c. Member functions are called by using the format object::function()
d. Member data of a class must be passed into the member functions as
parameters.
2. Which of the following is a conversion constructor for a class called Prisoner?
(Assume that Criminal is another class)
a. Criminal (Prisoner x);
b. explicit Prisoner (int x);
c. Prisoner (Criminal x);
d. Prisoner (int x, Criminal Y)
3. Which would result in a compile stage error?
a. Calling a function before it is declared
b. Passing an int argument to a function that expects a parameter of type double.
c. Having two definitions of a function, each one in a separate code file
d. Doing the division (x/y) , where x and y are integers and y is 0.
4. In a class, the typical purpose of a destructor member function is….
a. To re-initialize the internal data of an object to a default
b. To return the value of some internal data of an object
c. To build another object inside of the existing object
d. To do any final clean-up tasks on an object before it is deallocated
5. Which of the following statements about operator overloading is false?
a. A unary operator overload can be written as a member function of a class
b. Operator overloading can be used to create new operator symbols
c. A binary operator overload can use a built-in type as an operand
d. Operator overloading cannot set a new precedence level for an operator
6. Which of the following describes an implementation of the composition ('has-a')
relationship.
a. Class Cheese is defined inside of class Pizza
b. An object type File is declared as member data of class File
c. An object of type Snow is declared as member data of class Mountain
d. Class Volcano calls the HeatUp() functionof class Lava
This study 7. If Tag
source was is abyclass
downloaded with afrom
100000899606070 default constructor
CourseHero.com on 02-17-2026 and
22:45:50aGMT
one-parameter
-06:00 construtor of (of type-
int) which of the following is a valid declaration of an array of objects of type Tag?
a. Tag list[];
https://www.coursehero.com/file/32181430/Exam1-Reviewpdf/

, This study source was downloaded by 100000899606070 from CourseHero.com on 02-17-2026 22:45:50 GMT -06:00


https://www.coursehero.com/file/32181430/Exam1-Reviewpdf/

Written for

Institution
Revision
Course
Revision

Document information

Uploaded on
February 18, 2026
Number of pages
8
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
Abbyy01 Exam Questions
Follow You need to be logged in order to follow users or courses
Sold
96
Member since
4 year
Number of followers
33
Documents
1337
Last sold
3 days ago

3.5

13 reviews

5
5
4
2
3
3
2
1
1
2

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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions