SLR 14 Flashcards
What are examples of elementary data types
String, bool, int, char
Define primitive data types
data types not built from anything else
What is a static data type
size cannot be changed at runtime
What is a dynamic data type
size can be changed at runtime
what does FIFO mean
first in first out, e.g. queue
What does LIFO mean
last in first out, e.g. stack
Is array dynamic or static
static
is list dynamic or static
dynamic
WHat is a tuple
an ordered set of values, it is immutable (no modifying item or changing length at runtime), is can have mixed types.
What is a record
data structure composed of a fixed number of fields of different data types, like a spreadsheet.
What is a linked list
a data structure that provides a foundation where other structures can be built (e.g. stacks, queues, graphs, trees)
What is a graph
a data structure with nodes (vertices) and pointers (edges). Each vertex can have more than 2 edges
What is a stack
essential data structure, where items are added to the top and removed from the top (LIFO).
What is a queue
data structure where items are added to the back and removed from the front. (FIFO)
What is a tree
data structure with a root node where everything else stems from.