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 WITH CORRECT ANSWERS (GRADED A)

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

DATA STRUCTURES EXAM WITH CORRECT ANSWERS (GRADED A)

Institution
DATA STRUCTURES
Course
DATA STRUCTURES

Content preview

DATA STRUCTURES EXAM WITH
CORRECT ANSWERS



The following code: Print(Animal(4,1)) outputs the string, 'Dog'. However, the code:
Animal(4,1)='Cat' produces an error. Why could this be? - Correct Answers -Animal is a
tuple

The data structure used to store return addresses and local variables when a function is
executing is a: - Correct Answers -Stack

Before data is removed (popped) from a stack, what should be checked first? - Correct
Answers -Stack underflow

A buffer is used in data transfer between two devices operating at different speeds. For
example between a server and client in video transfer over the internet. Which data
structure should data be held in before being shown to the user? - Correct Answers -
Queue

A circular queue is implemented using an array of 6 elements, 0-5. The front pointer is
2, the back pointer is 5. What is the value of the back pointer when a new item is
enqueued? - Correct Answers -0

Sarah is making a version of a board game called Othello which is played on an 8x8
grid. Which data structure should Sarah use to store the colour of the counters in each
space to make her algorithms for the game most efficient? - Correct Answers -Arrays

(Arrays are an ideal data structure when the number of elements is known in advance
and does not change at run-time. An 8x8 grid for a board game is therefore best stored
as an array.)

The data structure used to store process blocks in a round robin scheduling algorithm is
a: - Correct Answers -Queue

A hash table is used when you want - Correct Answers -Immediate access to data

**A network printer uses spooling to hold print jobs waiting to print from many users.
Which data structure would be most suitable for storing the print jobs? - Correct
Answers -• Printers make use of queues to hold print jobs as they arrive.

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
44307
Last sold
14 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