Data Structures (OCR A-Level Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What type of elements does an array typically store?
What type of elements does an array typically store?
Elements of the same data type
In zero-indexed arrays, which index refers to the first element?
In zero-indexed arrays, which index refers to the first element?
0
What is a key characteristic of arrays regarding their size?
What is a key characteristic of arrays regarding their size?
Fixed size when created
What is the structure of a one-dimensional array?
What is the structure of a one-dimensional array?
A single row of elements
How is a two-dimensional array structured?
How is a two-dimensional array structured?
Rows and columns like a table
What does a three-dimensional array represent?
What does a three-dimensional array represent?
Data in 3 dimensions, layers of 2D grids
What efficiency advantage do arrays provide?
What efficiency advantage do arrays provide?
Fast access to elements using index
When should you use an array?
When should you use an array?
When you have similar data to store
Given students = ["Alice", "Bob", "Charlie"], what does students[1] output?
Given students = ["Alice", "Bob", "Charlie"], what does students[1] output?
Bob
Given marks = [[85, 90], [78, 88], [92, 95]], what is marks[2][1]?
Given marks = [[85, 90], [78, 88], [92, 95]], what is marks[2][1]?
95
Given temp = [[[15, 16], [18, 19]], [[20, 21], [22, 23]]], what is temp[1][0][1]?
Given temp = [[[15, 16], [18, 19]], [[20, 21], [22, 23]]], what is temp[1][0][1]?
21
What is an 'index out of bounds' error?
What is an 'index out of bounds' error?
Accessing an index that doesn't exist
