Back to marketplace

1.4.2

No description yet. This curated deck is ready for daily study.

Total cards: 7•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (7)

#1
Front (Question)

stacks

Back (Answer)

A data structure that operates on a first in last out basis.

#2
Front (Question)

queues

Back (Answer)

A data structure that is first in first out

#3
Front (Question)

array

Back (Answer)

a data structure that holds multiple pieces of data within a single identifier.

#4
Front (Question)

records

Back (Answer)

 Can store multiple values under one identifier  The data can be of different data types

#5
Front (Question)

Describe how a 1D array can be set up and used to push and pop items as a stack

Back (Answer)

Array size defined  A stack pointer is used to point to the top of the stack  When an item is pushed the stack pointer is incremented  When an item is popped the stack pointer is decremented

#6
Front (Question)

Describe the decision that needs to be made in each sub-program and how this impacts the next process. push() pop()

Back (Answer)

 Check if the stack is full (pointer = array.length/array.length+1)  If it is not – insert the item  If it is – return/error that the stack is full  Check if the stack is empty (pointer = 0/1)  If it is – return/error that the stack is empty  If it is not – return the item

#7
Front (Question)

Explain the similarities and differences between a record and a class

Back (Answer)

Record is a data structure…  …A class is a template for making data structures (objects)  Class also has methods (which describes functionality)  Both store data of different types  Which can be accessed by their names  But classes can make them accessible via methods  Both can have multiple ‘instances’  Class can include visibility of properties / private