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

Data Structures and Algorithms

Beoordeling
-
Verkocht
-
Pagina's
5
Cijfer
A+
Geüpload op
13-06-2025
Geschreven in
2024/2025

Data Structures and Algorithms

Instelling
Graduation In Computer Science
Vak
Graduation in computer science









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

Geschreven voor

Instelling
Graduation in computer science
Vak
Graduation in computer science

Documentinformatie

Geüpload op
13 juni 2025
Aantal pagina's
5
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

COSC 2336 Test 2

Which of the following is NOT an operation that can be performed on a stack: - Correct
Answers-Insert

When working with a stack, peek removes the value from the top of the stack. - Correct
Answers-False

A stack is a first-in, first-out data structure. - Correct Answers-False

Stacks are used by compilers to implement recursion. - Correct Answers-True

Stacks can be implemented only using arrays. - Correct Answers-False

Which of the following would result in an error? - Correct Answers-Popping an empty stack

When implementing a stack as a linked-list, you must make sure the stack isn't full before you
can push a new item onto it. - Correct Answers-False

Which of the following would not be a good use of a stack: - Correct Answers-Keyboard buffer

Which of the following is true of implementing a stack using a linked list: - Correct Answers-The
next reference for the bottom of the stack is null

Which of the following is true of an array-based stack implementation: - Correct Answers-
Requires an IsFull method to check for a full stack

A reference-based stack makes more efficient use of memory. - Correct Answers-True

Queues are FIFO (first in, first out) data structures. - Correct Answers-True

If 5 items are added to a queue, the first item to be removed from the queue is the first item
that was added to the queue. - Correct Answers-True

Operations on a queue can be carried out at ______. - Correct Answers-both its front and back

A reference-based implementation of a queue that uses a linear singly linked list would need at
least ______ external references.

, three - Correct Answers-two

Which of the following is the code to insert a new node, referenced by newNode, into an empty
queue represented by a circular linked list? - Correct Answers-newNode.setNext(newNode);
lastNode = newNode;

Which of the following code fragments is used to delete the item at the front of a queue
represented by a circular array? - Correct Answers-front = (front+1) % MAX_QUEUE;
--count;

Which of the following operations inserts an element at the end of the queue: - Correct
Answers-enqueue

Which of the following is NOT an ADT queue operation: - Correct Answers-push

When implementing a queue using a reference-based approach, the operation dequeueAll is
not needed - Correct Answers-False

When implementing a queue using an array-based approach, it is not necessary to determine if
the queue if full before adding a new item to the queue - Correct Answers-False

A queue can be used as a keyboard buffer. - Correct Answers-True

Queues are rarely used in simulation programs. - Correct Answers-False

Which of the following is NOT a means of implementing a queue: - Correct Answers-Circularly
linked list
linearly linked list
linear array
circular array

All of these can be used to implement a queue

How many external references are necessary when implementing a queue using a circularly-
linked list? - Correct Answers-1

When implementing a queue, a naive array approach is more efficient in terms of memory
when compared to a circular array approach. - Correct Answers-False

A referenced-based queue implementation uses a statically allocated linked-list. - Correct
€10,84
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
phil3

Ook beschikbaar in voordeelbundel

Maak kennis met de verkoper

Seller avatar
phil3 stuvia
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
7 maanden
Aantal volgers
0
Documenten
222
Laatst verkocht
-
A+ QuickPass exam packs.

Get real nursing exam questions with certified answers. Perfect for quick revision and exam prep. Clear, accurate and easy to use. Package deals also available with 50 % offer. Study smart, pass fast!

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

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 iDeal of creditcard en download je PDF-document meteen.

Student with book image

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

Alisha Student

Veelgestelde vragen