2.1.3 The use of, and need for, data structures Flashcards

1
Q

Define:

Data Structures

A

“Collection of data objects which facilitate the storing and managing of data in a program”

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

State:

2 advantages of using data structures

A
  • Optimise memory usage within a system
  • Can be reused and compiled into libraries
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

State:

“A collection of data items, can be of different data types and items are accessed using each data items index value”

A

List

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

State:

“Contains a group of elements of the same data type”

A

Array

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

Define:

Dictionary

A

“A set of values, each with associated keys. Items are unordered and when accessed by the key, will return the associated value”

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

Define:

Index

A

“A numerical representation of an item’s position in a sequence”

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