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)

DATA STRUCTURES MIDTERM EXAM QUESTIONS AND ANSWERS

Rating
-
Sold
-
Pages
3
Grade
A+
Uploaded on
28-07-2025
Written in
2024/2025

DATA STRUCTURES MIDTERM EXAM QUESTIONS AND ANSWERS

Institution
DATA STRUCTURES
Course
DATA STRUCTURES

Content preview

DATA STRUCTURES MIDTERM EXAM
QUESTIONS AND ANSWERS




Define the term data structure - Correct Answers -A data structure is basically a
container of information.. It is an organization of content or information that takes up
memory and allows efficient access.

Abstract Data Type - Correct Answers -a class, or objects where behavior is defined by
values and set of operations but have no implementation

What is a built-in data structure? - Correct Answers -storage mechanism that comes
with the programming language. For example, in Java, a built-in data structure is an
array or the Java String class.

What three criteria are used to determine whether a data structure is acceptable for a
particular application? - Correct Answers -1) cost 2) speed and 3) memory overhead.

Put the following terms in size order: node, field, data set - Correct Answers -The
smallest size is a field, followed by node and the largest is a data set
Two objects, objectA and objectB, are objects in the class Listing. The object objectA is
copied to objectB. How many objects exist after the copy, if the copy is performed as a
DEEP COPY? - Correct Answers -2 copies (actually makes a copy)

Of the two types of copies, which one produces a clone (an exact duplicate of an
existing object)? - Correct Answers -deep copy produces a clone

basic operations performed on data structures, and tell what each operation does. -
Correct Answers -Insert: adds a node to the first null array element in a data set
Delete: deletes a node and moves up all the nodes below it
Fetch: retrieves a node asked of the data set
Update: changes the information through combining "delete" and "insert" operations
Stacks have push/pop:
- Push: Essentially the insert function for a stack. It adds a node onto the top of the
stack. It cannot be performed on a full stack, causing an overflow error.

Written for

Institution
DATA STRUCTURES
Course
DATA STRUCTURES

Document information

Uploaded on
July 28, 2025
Number of pages
3
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.99
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.
millyphilip West Virginia University
Follow You need to be logged in order to follow users or courses
Sold
2921
Member since
4 year
Number of followers
1958
Documents
44266
Last sold
3 days ago
white orchid store

EXCELLENCY IN ACCADEMIC MATERIALS ie exams, study guides, testbanks ,case, case study etc

3.6

551 reviews

5
239
4
87
3
104
2
32
1
89

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

Working on your references?

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

Working on your references?

Frequently asked questions