100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

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

Beoordeling
-
Verkocht
-
Pagina's
130
Cijfer
A+
Geüpload op
07-11-2025
Geschreven in
2025/2026

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

Meer zien Lees minder
Instelling
Data Abstraction & Problem Solving With C++
Vak
Data Abstraction & Problem Solving with C++











Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
Data Abstraction & Problem Solving with C++
Vak
Data Abstraction & Problem Solving with C++

Documentinformatie

Geüpload op
7 november 2025
Aantal pagina's
130
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

Data Abstraction & Problem Solving with
ST
C++: Walls and Mirrors – 7th Edition
UV

TEST BANK
IA
_A

Frank Carrano
PP
RO

Comprehensive Test Bank for Instructors
VE
and Students
D?
© Frank Carrano

All rights reserved. Reproduction or distribution without permission is prohibited.
??

©STUDYSTREAM

, Chapter 1 Questions


Multiple Choice Questions

1. The specifications of an ADT’s operations indicate ______.
ST
a. what the operations do
b. how to implement the operations
c. how to store the data in the ADT
d. how to carry out the operations
Answer: a.
UV
2. Data structures are part of an ADT’s ______.
a. definition
b. implementation
c. specifications
d. usage
Answer: b.
IA
3. A(n) ______ allows two modules to communicate with each other.
a. data structure
b. axiom
c. interface
_A
d. client
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 ___.
a. loosely coupled
RO
b. highly coupled
c. cohesive
d. not easily reused
Answer: c.

6. When should an operation contract be written?
a. during analysis
VE
b. after coding
c. at the same time as user documentation
d. when taking initial notes from client
Answer: a.

7. What information is included in the operation contract?
D?
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.
ST
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
c. how many entries can be stored in the bag
d. the interface of the bag
UV
Answer: d.

10. According the CRC specifications for a Bag, which of the following behaviors would not be one of the
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
IA
d. Count the number of times a certain object occurs in the bag
Answer: b.


11. A client program depends solely on the ______ of the ADT.
_A
a. data members
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
Answer: d
RO
13. Object-oriented programming views a program as ______.
a. a sequence of actions
b. a collection of classes
c. a group of methods
d. an interaction among objects
Answer: d.
VE
14. An ADT’s operations are known as its ______.
a. axioms
b. methods
c. variables
d. interfaces
D?
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
ST
Answer: a.

17. A C++ class contains data members and ______.
a. clients
b. interfaces
UV
c. methods
d. data structures
Answer: c.

18. A(n) ______ is an instance of a class.
a. method
b. data field
IA
c. interface
d. object
Answer: d.

19. A(n) ______ is a class that inherits the members of another class.
_A
a. base class
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
d. declaring
RO
Answer: a.

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

22. Which of the following are ways to address unusual situations?
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?
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



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

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
StudyStream Howard Community College
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
85
Lid sinds
1 jaar
Aantal volgers
30
Documenten
1234
Laatst verkocht
13 uur geleden
StudySteam - Verified Solutions, Test Banks & Guides for Medical, Nursing, Business, Engineering, Accounting, Chemistry, Biology & Other Subjects

Welcome to Your Exam Success Headquarters! Tired of endless textbook reading? Our shop is your go-to for high-quality, exam-ready study materials designed for university and college students. We specialize in original publisher content, including solutions manuals, test banks, and comprehensive study guides across a wide range of subjects. Every document is an instant PDF download – no waiting, no fuss! Get immediate access to top-tier academic resources like step-by-step solutions and real test formats to truly ace your coursework and exams. Our materials are perfect for exam preparation, offering insights and practice for every study style. Ready to boost your grades? Dive in and discover your next A+ resource. Found something great? Share our shop with your classmates – let's achieve success together!

Lees meer Lees minder
4,1

9 beoordelingen

5
5
4
2
3
1
2
0
1
1

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen