SLR 14 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are examples of elementary data types

A

String, bool, int, char

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define primitive data types

A

data types not built from anything else

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a static data type

A

size cannot be changed at runtime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a dynamic data type

A

size can be changed at runtime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what does FIFO mean

A

first in first out, e.g. queue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does LIFO mean

A

last in first out, e.g. stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Is array dynamic or static

A

static

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

is list dynamic or static

A

dynamic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

WHat is a tuple

A

an ordered set of values, it is immutable (no modifying item or changing length at runtime), is can have mixed types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a record

A

data structure composed of a fixed number of fields of different data types, like a spreadsheet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a linked list

A

a data structure that provides a foundation where other structures can be built (e.g. stacks, queues, graphs, trees)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a graph

A

a data structure with nodes (vertices) and pointers (edges). Each vertex can have more than 2 edges

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a stack

A

essential data structure, where items are added to the top and removed from the top (LIFO).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a queue

A

data structure where items are added to the back and removed from the front. (FIFO)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is a tree

A

data structure with a root node where everything else stems from.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly