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)

CS 1337 Final Exam UPDATED ACTUAL QUESTIONS AND CORRECT ANSWERS

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

CS 1337 Final Exam UPDATED ACTUAL QUESTIONS AND CORRECT ANSWERS In an inheritance situation, you cannot pass arguments to a base class constructor in the derived class. T/f - correct answer false You can have more than one class derived from a base class. T/f - correct answer true true A derived class can be also be a base class if another class is derived from it. T/f - correct answer Can you use a derived class's constructor header to pass arguments to a base class constructor? - correct answer yes A member function of a derived class may not have the same name as a member function of a base class. T/f - correct answer false If you want a public class member function of a base class in a derived class, the corresponding function in the derived class must have the same name, number, and type of parameters. What is this called? - correct answer function redefinition What does static binding relate to? Compile or run-time? - correct answer Can base class pointers hold derived class objects? - correct answer compile time yes If you have a derived class and it attempts to override a final member of a base class, will it compile? - correct answer no, derived classes can't override final member functions What are the three access specifiers? - correct answer inheritance public, protected, private

Show more Read less
Institution
CS
Course
CS

Content preview

CS 1337 Final Exam UPDATED ACTUAL
QUESTIONS AND CORRECT ANSWERS
In an inheritance situation, you cannot pass arguments to a base class constructor in the derived class.
T/f - correct answer false



You can have more than one class derived from a base class. T/f - correct answer true



A derived class can be also be a base class if another class is derived from it. T/f - correct
answer true



Can you use a derived class's constructor header to pass arguments to a base class constructor? -
correct answer yes



A member function of a derived class may not have the same name as a member function of a base
class. T/f - correct answer false



If you want a public class member function of a base class in a derived class, the corresponding
function in the derived class must have the same name, number, and type of parameters. What is this
called? - correct answer function redefinition



What does static binding relate to? Compile or run-time? - correct answer compile time



Can base class pointers hold derived class objects? - correct answer yes



If you have a derived class and it attempts to override a final member of a base class, will it compile?
- correct answer no, derived classes can't override final member functions



What are the three access specifiers? - correct answer public, protected, private



What's the mechanism that allows you to create new classes based on existing classes? - correct
answer inheritance

, Can you add more functions to a derived class? - correct answer yes



Are private members of the base class accessible by any derived class? - correct answer no,
they're always inaccessible to derived classes



Which one is called first, the constructor of a base class or the constructor of a derived class? - correct
answer base class



Do we expect virtual functions to be overridden in the derived class? - correct answer yes



What's the term that means the ability to take on many forms? - correct answer polymorphism



When the computer binds a memory function call with a version of the function that resides in the
same class as the call itself, what type of binding is done? - correct answer static



What type of binding is done on virtual functions? - correct answer dynamic / run-time



If you have a protected base class and a derived class, what type of access specifier will the derived
class members be? - correct answer protected



What's it called when member functions behave differently depending on which object performed the
call? - correct answer polymorphism



C++ introduced this keyword to help prevent errors when overriding virtual functions. What's this
keyword? - correct answer override



What's the ability to combine data with operations or methods in a single unit? - correct
answer encapsulation



Given a sample set of code, choose one that makes public members of a base class become members
of the derived class. - correct answer use the public filter

Written for

Institution
CS
Course
CS

Document information

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

Subjects

$11.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.
STANFORDTOPGRADES Stanford University
Follow You need to be logged in order to follow users or courses
Sold
56
Member since
1 year
Number of followers
2
Documents
7115
Last sold
3 days ago
TOPSELLER

Hi there! I'm dedicated to sharing my high-quality study guides and helpful EXAM Materials to make your learning easier and more efficient. All my materials are well-organized and tailored to help you ace your courses. I offer genuine and dependable exam papers that are directly obtained from well-known, reputable institutions as a highly regarded professional who specializes in sourcing study materials. Kindly don't hesitate to contact me, my study guides, notes and exams or test banks, are 100% graded and fully guaranteed

Read more Read less
3.8

8 reviews

5
3
4
1
3
3
2
1
1
0

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