6 - Array Types Flashcards

(13 cards)

1
Q

data types whose values are a sequence of characters

A

string

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

7 design issues of array types

A

subscript types
range checking
binding of subscript type and range
storage binding
initialization
row length
array slices

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

in subscript type and range binding, the type of the subscript is usually bound ______while the range is bound _______

A

statically, dynamically

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

arrays differ in when their size is known and where they live in memory

A

storage binding

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

range bound statically
storage allocation done before run time

A

static array

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

allows subprograms to share the same space when not in use

A

fixed stack-dynamic array

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

range bound statically
storage allocation done on elaboration

A

fixed stack-dynamic array

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

range and storage bound on elaboration

A

stack-dynamic array

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

range and storage bound when program requests them on execution

A

fixed heap-dynamic array

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

array can grow and shrink during program execution

A

heap-dynamic array

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

an array that has an uneven amount of columns for each row

A

ragged array

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

array is stored by rows

A

row major order

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

array is stored by columns

A

col major order

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