WorksheetsData Structures Quiz
Total questions: 14
Worksheet time: 11mins
What is a data structure?
A program for sorting data
A visual representation of code
An organised collection of related data
A type of computer virus
Which of the following is a one-dimensional data structure?
Table
Record
Array
File
What does a two-dimensional array resemble?
A flowchart
A table or spreadsheet
A paragraph
A single line of data
In a one-dimensional array, how is data accessed?
Using keys
Using rows and columns
Using a single index
Randomly
How many indices are needed to access an element in a two-dimensional array?
One
Two
Three
None
Which data structure is best for storing multiple values of the same data type?
Record
Function
Array
Variable
What is a record in computer science?
A collection of functions
A table of all variables
A collection of related fields
A backup of data
Each piece of data in a record is called a:
Cell
Field
Column
Value
Which of the following is an example of a record?
A list of numbers
A string
A student profile with name, age, and grade
A single character
What is the key difference between arrays and records?
Arrays store unrelated data; records store similar data
Arrays store same-type data; records store mixed-type data
Arrays are slower than records
Records are only used in databases
What kind of data types can a record hold?
Only integers
Only text
Only the same data type
Different data types
In a two-dimensional array, what does the first index usually represent?
Column
Field
Row
Character
What data structure would be most suitable for storing a list of student names?
Record
Array
Class
File
How are records and arrays similar?
Both store unrelated data
Both use only one index
Both are used to store collections of data
Both require keys
