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 EXAM QUESTIONS AND ANSWERS (GRADED A)

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

DATA STRUCTURES EXAM QUESTIONS AND ANSWERS (GRADED A)

Institution
DATA STRUCTURES
Course
DATA STRUCTURES

Content preview

DATA STRUCTURES EXAM
QUESTIONS AND ANSWERS




What is data structure? - Correct Answers -Data structures refers to the way data is
organized and manipulated. It seeks to find ways to make data access more efficient.
When dealing with data structure, we not only focus on one piece of data, but rather
different set of data and how they can relate to one another in an organized manner.

Differentiate file structure from storage structure. - Correct Answers -Basically, the key
difference is the memory area that is being accessed. When dealing with the structure
that resides the main memory of the computer system, this is referred to as storage
structure. When dealing with an auxiliary structure, we refer to it as file structures.

When is a binary search best applied? - Correct Answers -A binary search is an
algorithm that is best applied to search a list when the elements are already in order or
sorted. The list is search starting in the middle, such that if that middle value is not the
target search key, it will check to see if it will continue the search on the lower half of the
list or the higher half. The split and search will then continue in the same manner.

What is a linked list? - Correct Answers -A linked list is a sequence of nodes in which
each node is connected to the node following it. This forms a chain-like link of data
storage.

How do you reference all the elements in a one-dimension array? - Correct Answers -To
do this, an indexed loop is used, such that the counter runs from 0 to the array size
minus one. In this manner, we are able to reference all the elements in sequence by
using the loop counter as the array subscript.

In what areas do data structures applied? - Correct Answers -Data structures is
important in almost every aspect where data is involved. In general, algorithms that
involve efficient data structure is applied in the following areas: numerical analysis,
operating system, A.I., compiler design, database management, graphics, and statistical
analysis, to name a few.

What is LIFO? - Correct Answers -LIFO is short for Last In First Out, and refers to how
data is accessed, stored and retrieved. Using this scheme, data that was stored last ,
should be the one to be extracted first. This also means that in order to gain access to

, the first data, all the other data that was stored before this first data must first be
retrieved and extracted.

What is a queue? - Correct Answers -A queue is a data structures that can simulates a
list or stream of data. In this structure, new elements are inserted at one end and
existing elements are removed from the other end.

What are binary trees? - Correct Answers -A binary tree is one type of data structure
that has two nodes, a left node and a right node. In programming, binary trees are
actually an extension of the linked list structures.

Which data structures is applied when dealing with a recursive function? - Correct
Answers -Recursion, which is basically a function that calls itself based on a terminating
condition, makes use of the stack. Using LIFO, a call to a recursive function saves the
return address so that it knows how to return to the calling function after the call
terminates.

What is a stack? - Correct Answers -A stack is a data structure in which only the top
element can be accessed. As data is stored in the stack, each data is pushed
downward, leaving the most recently added data on top.

Explain Binary Search Tree - Correct Answers -A binary search tree stores data in such
a way that they can be retrieved very efficiently. The left subtree contains nodes whose
keys are less than the node's key value, while the right subtree contains nodes whose
keys are greater than or equal to the node's key value. Moreover, both subtrees are
also binary search trees.

What are multidimensional arrays? - Correct Answers -Multidimensional arrays make
use of multiple indexes to store data. It is useful when storing data that cannot be
represented using a single dimensional indexing, such as data representation in a board
game, tables with data stored in more than one column.

Are linked lists considered linear or non-linear data structures? - Correct Answers -It
actually depends on where you intend to apply linked lists. If you based it on storage, a
linked list is considered non-linear. On the other hand, if you based it on access
strategies, then a linked list is considered linear.
What is a dequeue? - Correct Answers -A dequeue is a double-ended queue. This is a
structure wherein elements can be inserted or removed from either end.

What is a bubble sort and how do you perform it? - Correct Answers -A bubble sort is
one sorting technique that can be applied to data structures such as an array. It works
by comparing adjacent elements and exchanges their values if they are out of order.
This method lets the smaller values "bubble" to the top of the list, while the larger value
sinks to the bottom.

Written for

Institution
DATA STRUCTURES
Course
DATA STRUCTURES

Document information

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

Subjects

$13.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.
millyphilip West Virginia University
Follow You need to be logged in order to follow users or courses
Sold
2924
Member since
4 year
Number of followers
1958
Documents
44307
Last sold
15 hours 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