Data Structures Flashcards

1
Q

One-Dimensional Arrays are structured so they?

A

Store consecutive array elements of the same type in a contiguous block of memory

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

Multidimensional Arrays are structured so they?

A

Use 2 or more indices to access individual array elements

Most commonly using row major order

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

Structures do what?

A

Contain fields, which may be of different types

Are allocated in a single block of memory on the stack

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

A Nested Structure is?

A

A structure which contains a field whose type is another structure

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