Data Structures and Abstract Data Types Flashcards
What is a data structure?
The concept of storing multiple values together with a single identifier
What is the purpose of an index in an array?
Gives a value a position on an array
Why is it advantageous to use an array of integers over multiple variables of for each integer
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
What is a record?
A collection of related data?
What are some advantages and disadvantages of using a binary file?
+File size smaller
+Contents more secure
-File cannot be accessed by another program
What separates individual values in a csv file?
A comma
Which is correct: A field is made up of records or a record is made up of fields?
A record is made up of fields