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
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

Data Structures and Algorithms

Document preview thumbnail
Preview 1 out of 4 pages

Data Structures and Algorithms

Content preview

Data Structures and Algorithms FINAL
Stack - Correct Answers-Organizes its entries according to the order in which they were added.
Last In - First Out

Binary Operator - Correct Answers-When an operator has two operands ie: a + b

Unary Operator - Correct Answers-When an operator has one operand ie: -5

Infix Expression - Correct Answers-When a binary operator is between expressions

Prefix Expression - Correct Answers-When the operator is before the expression.

Postfix Expression - Correct Answers-When the operator is after the expression

Program Counter - Correct Answers-When a program executes, a special location called the
program counter references the current instruction.

Activation Record/Frame - Correct Answers-When a method is called, the programs run-time
environment creates an objected called the activation record/frame

Java Stack/Program Stack - Correct Answers-At the time the program is called, the activation
record is pushed onto a stack called the Java Stack or the Program Stack

Queue - Correct Answers-Organizes entries according to the order in which they were added.
First in - First out.

Double ended queue - Correct Answers-A queue that allows you to add, remove, or retrieve
entires at both sides (front and back) of the queue.

Priority Queue - Correct Answers-A queue that organizes objects according to their priorities.

Tail Reference - Correct Answers-An external reference to the last node in the chain. Makes it
so you don't have to traverse chain to find last node if you only have reference to head of chain.

Circular Array - Correct Answers-When the queue reaches the end of the array, we can added
entries to the queue at the beginning of the array where there are empty slots.

Document information

Uploaded on
June 13, 2025
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$12.49

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

Sold
0
Followers
0
Items
222
Last sold
-




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