Arrays (OCR GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
11 questions from this quiz
ShowHide
Practise the questions
11 questions from this quiz
What type of values must be stored in an array?
What type of values must be stored in an array?
Values of the same data type
What is a key characteristic of an array's length?
What is a key characteristic of an array's length?
It is fixed when created
What does a 1D array resemble?
What does a 1D array resemble?
A list
What does a 2D array resemble?
What does a 2D array resemble?
A grid or table
What number does array indexing start from?
What number does array indexing start from?
0
In names = ["Bob", "Alex", "Chris"], what does names[1] return?
In names = ["Bob", "Alex", "Chris"], what does names[1] return?
Alex
In 2D arrays used as database tables, what does each row represent?
In 2D arrays used as database tables, what does each row represent?
A record
In 2D arrays used as database tables, what does each column represent?
In 2D arrays used as database tables, what does each column represent?
A field
In matrix = [[1, 2], [3, 4], [5, 6]], what does matrix[1][1] return?
In matrix = [[1, 2], [3, 4], [5, 6]], what does matrix[1][1] return?
4
For matrix = [[1, 2], [3, 4], [5, 6]], what does len(matrix) return?
For matrix = [[1, 2], [3, 4], [5, 6]], what does len(matrix) return?
3
Can the size of an array be changed after it is created?
Can the size of an array be changed after it is created?
No, arrays have a fixed length
