Data structures Flashcards

1
Q

how many data types can arrays store

A

1

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

can arrays change in size once declared

A

no

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

can records contain many data types

A

yes

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

do records have to be defined / declared

A

yes both have to happen

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

how are records often used and how is this acheived

A

in conjunction with arrays to allow an array with different data types, this is due to the record only being classed as its own single data type

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

what is easier on memory lists or tuples

A

tuples as they cannot be changed

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

why is file handling used

A

to store data in a non volatile location

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

what are the 3 parameters used when opening a file

A

the first is the name given to the pipe connection
the second is the location of the pipe connection
the third is the purpose of the pipe

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

what are the different ways pipes can work

A

they can store or retrieve data, multiple can be used but one cannot perform both operations

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

what is a data structure

A

a way of organising data to be accessed and modified

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

what is an element

A

a slot in an array

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

what is an item

A

the object in the element

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

what is a record

A

a list that collects different fields of information

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

what is a serial file

A

one which stores the data in a random order and is searched through linearly

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