Arrays (Edexcel GCSE Computer Science): Quizzes
📚Quizzes
Practise the questions
12 questions from this quiz
ShowHide
Practise the questions
12 questions from this quiz
What is an array in computer programming?
What is an array in computer programming?
An organized method for storing data
How does an array differ from a variable?
How does an array differ from a variable?
Arrays can store multiple pieces of data
What number does array indexing start at?
What number does array indexing start at?
0
In the color array example, what index is 'green' at?
In the color array example, what index is 'green' at?
1
If an array has a length of 5, what is the highest index?
If an array has a length of 5, what is the highest index?
4
How do you access the first element of an array called names?
How do you access the first element of an array called names?
names[0]
What does traversing an array mean?
What does traversing an array mean?
Going through every element one by one
Which brackets are used to create a 1D array?
Which brackets are used to create a 1D array?
Square brackets [ ]
What is a two-dimensional array like?
What is a two-dimensional array like?
A table or grid with rows and columns
How many indexes are needed to access a 2D array element?
How many indexes are needed to access a 2D array element?
2
How do you access row 1, column 3 in a 2D array called scores?
How do you access row 1, column 3 in a 2D array called scores?
scores[1][3]
Which comes first when accessing a 2D array element?
Which comes first when accessing a 2D array element?
Row, then column
