What is a primitive data type?
A data type that can’t be broken down further.
What is an abstract data type?
A conceptual model of how data is to be organised and the operations we might perform on the data.
What is a data structure?
Implementation of ADTs. Can combine multiple data under a single identifier.
What are the key ADTs?
What are arrays?
Static data structures that stored data of the same type arranged as a contiguous block in memory with a fixed length
How does indexing work in arrays?
The index acts as an offset to the data from the start off the structure in memory. For this reason the dimensions and data type of the array must be known.
What is a multidimensional array?
An n-dimensional array is a set of elements with the same data type that are indexed by a tuple of n integers, where a tuple is an ordered list of elements.
What are the uses of arrays?
What are the advantages of static data structures?
What are the disadvantages of static data structures?
On what kind of basis is date retrieved from a stack?
Last-In-First-Out
On what kind of basis is data retrieved from a queue?
First-In-First-Out
What are the key operations of a stack?
What are the key operations of a queue?
What is a stack overflow?
An attempt is made to push more data onto the stack that it can store
What is a stack underflow?
Occurs when a pop is attempted on an empty stack.
What are stacks comprised of?
What are queues comprised of?
What are the uses of stacks?
What are the uses of queues?
Test if a stack is empty?
Check if the stack pointer is equal to -1
Test if a stack is full?
Compare the stack pointer to the maximum size of the array (-1)
Push an item onto a stack?
Peeking a stack?