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

Test Bank for Data Abstraction & Problem Solving with C++ Walls and Mirrors 7th Edition by Frank Carrano

Rating
-
Sold
-
Pages
134
Grade
A+
Uploaded on
22-12-2024
Written in
2024/2025

Test Bank for Data Abstraction & Problem Solving with C++ Walls and Mirrors 7th Edition by Frank Carrano. Full Chapters Include;.....Data Abstraction: The Walls Recursion: The Mirrors Array-Based Implementations Link-Based Implementations Recursion as a Problem-Solving Technique Stacks Stack Implementations Lists List Implementations Algorithm Efficiency Sorting Algorithms and Their Efficiency Sorted Lists and Their Implementations Queues and Priority Queues Queue Implementations Trees Tree Implementations Heaps Dictionaries and Their Implementations Balanced Search Trees Graphs Processing Data in External Storage

Show more Read less
Institution
Data Abstraction & Problem Solving With C++
Course
Data Abstraction & Problem Solving with C++











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

Written for

Institution
Data Abstraction & Problem Solving with C++
Course
Data Abstraction & Problem Solving with C++

Document information

Uploaded on
December 22, 2024
Number of pages
134
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Data Abstraction & Problem Solving with C++: Walls and Mirrors, 7th
edition




TEST BANK
ST
UV

Data Abstraction & Problem
Solving with C++: Walls and
IA

Mirrors, 7th edition
.A
PP

Authors:
Frank M. Carrano, Timothy M. Henry
RO

◊ ALL CHAPTERS
VE

◊ INSTANT PDF DOWNLOAD💯💯💯

◊ ORIGINAL FROM PUBLISHER
D?
??

MEDCONNOISSEUR

, Chapter 1 Questions


Multiple Choice Questions

1. The specifications of an ADT’s operations indicate ______.
a. what the operations do
b. how to implement the operations
c. how to store the data in the ADT
ST
d. how to carry out the operations
Answer: a.

2. Data structures are part of an ADT’s ______.
a. definition
UV
b. implementation
c. specifications
d. usage
Answer: b.

3. A(n) ______ allows two modules to communicate with each other.
IA
a. data structure
b. axiom
c. interface
d. client
.A
Answer: c.

4. An ADT’s ______ govern(s) what its operations are and what they do.
a. specifications
b. implementation
PP
c. documentation
d. data structure
Answer: a.

5. When each module performs one well-defined task, we say that it is ___.
RO
a. loosely coupled
b. highly coupled
c. cohesive
d. not easily reused
Answer: c.
VE
6. When should an operation contract be written?
a. during analysis
b. after coding
c. at the same time as user documentation
d. when taking initial notes from client
D?
Answer: a.

7. What information is included in the operation contract?
a. the method’s interface
b. data flow among the modules
c. assumptions about input
??
d. all of these
Answer: d.

8. What kind of interface contains a method if and only that method is essential to that class’s
responsibilities?
a. complete
b. minimal



© 2017 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

, Chapter 1 Questions

c. expanded
d. compact
Answer: b.

9. What must be known about the ADT Bag in order to use it in a program?
a. how entries in the bag are represented
b. how bag operations are implemented
ST
c. how many entries can be stored in the bag
d. the interface of the bag
Answer: d.

10. According the CRC specifications for a Bag, which of the following behaviors would not be one of the
UV
responsibilities of the class Bag?
a. See if the bag is empty
b. See if the bag is full
c. Look at all the objects in the bag
d. Count the number of times a certain object occurs in the bag
Answer: b.
IA

11. A client program depends solely on the ______ of the ADT.
a. data members
.A
b. structure
c. implementation
d. behavior
Answer: d.
PP
12. What should a programmer do before implementing a recently designed class?
a. write code that uses the class
b. check comments that document specifications
c. adjust the design when problems are discovered
d. all of these
RO
Answer: d

13. Object-oriented programming views a program as ______.
a. a sequence of actions
b. a collection of classes
c. a group of methods
VE
d. an interaction among objects
Answer: d.

14. An ADT’s operations are known as its ______.
a. axioms
D?
b. methods
c. variables
d. interfaces
Answer: b.

15. Encapsulation combines an ADT’s data with its operations to form a(n) ______.
??
a. exception
b. method
c. object
d. variable
Answer: c.

16. A(n) ______ is a C++ construct that enables a programmer to define a new data type.



© 2017 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

, Chapter 1 Questions

a. class
b. method
c. data field
d. object
Answer: a.

17. A C++ class contains data members and ______.
ST
a. clients
b. interfaces
c. methods
d. data structures
Answer: c.
UV
18. A(n) ______ is an instance of a class.
a. method
b. data field
c. interface
d. object
IA
Answer: d.

19. A(n) ______ is a class that inherits the members of another class.
a. base class
.A
b. superclass
c. abstract class
d. subclass
Answer: d.
PP
20. A function can indicate that an error has occurred by ______ an exception.
a. throwing
b. catching
c. implementing
RO
d. declaring
Answer: a.

21. To ______ an exception means to deal with the error condition.
a. declare
b. catch
VE
c. implement
d. try
Answer: b.

22. Which of the following are ways to address unusual situations?
D?
a. simply assume the invalid situation will never occur
b. guess at the client’s intention
c. return a value that signals a problem
d. all of the above are options
Answer: d.
??
23. For the method remove(anEntry) of the ADT Bag, what would be the output of the method?
a. anEntry
b. nothing
c. true or false
d. the previous position of anEntry in the bag
Answer: c


© 2017 Pearson Education, Inc., Hoboken, NJ. All rights reserved.

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.
MedConnoisseur West Virgina University
View profile
Follow You need to be logged in order to follow users or courses
Sold
2530
Member since
3 year
Number of followers
1735
Documents
2332
Last sold
2 hours ago
MedConnoisseur Study Hub – Verified Solutions, Test Banks & Guides for Medical, Nursing, Business, Engineering, Accounting, Chemistry, Biology & Other Subjects

Welcome to Your Ultimate Study Resource Hub! Looking for high-quality, reliable, and exam-ready study materials? You’re in the right place. Our shop specializes in original publisher content, including solutions manuals, test banks, and comprehensive study guides that are ideal for university and college students across various subjects. Every document is in PDF format and available for instant download—no waiting, no hassle. That means you get immediate access to top-tier academic resources the moment you need them, whether you're cramming for an exam or studying ahead. These materials are especially effective for exam preparation, offering step-by-step solutions, real test formats, and well-organized study guides that align with your coursework and textbooks. Whether you're a visual learner, a problem-solver, or need practice questions—there’s something for every study style. Love what you get? Share it! Help your mates and classmates succeed too by referring them to our shop. More learners, more success for all.

Read more Read less
4.0

194 reviews

5
102
4
38
3
25
2
9
1
20

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