Data Structures and Abstract Data Types Flashcards

1
Q

What is a data structure?

A

The concept of storing multiple values together with a single identifier

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

What is the purpose of an index in an array?

A

Gives a value a position on an array

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

Why is it advantageous to use an array of integers over multiple variables of for each integer

A

can use a loop to step through an array, meaning
fewer lines of code
If the number of values to be
stored changes, don’t need to change the code

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

What is a record?

A

A collection of related data?

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

What are some advantages and disadvantages of using a binary file?

A

+File size smaller
+Contents more secure
-File cannot be accessed by another program

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

What separates individual values in a csv file?

A

A comma

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

Which is correct: A field is made up of records or a record is made up of fields?

A

A record is made up of fields

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