Structured data types (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 a data structure?
What is a data structure?
An organized way to store multiple items
What is the key characteristic of an array?
What is the key characteristic of an array?
All elements must be the same data type
What makes records different from arrays?
What makes records different from arrays?
Elements can be different data types
What number does index counting start at?
What number does index counting start at?
0
Given colourArray = ['DeepPink', 'LemonChiffon', 'CornflowerBlue'], what does colourArray[1] return?
Given colourArray = ['DeepPink', 'LemonChiffon', 'CornflowerBlue'], what does colourArray[1] return?
LemonChiffon
Given rgbArray = [[255,20,147], [255,250,205], [100,149,237]], what does rgbArray[1][2] return?
Given rgbArray = [[255,20,147], [255,250,205], [100,149,237]], what does rgbArray[1][2] return?
205
What is the golden rule for accessing data structures?
What is the golden rule for accessing data structures?
You need one index per dimension
How many indices do you need to access a specific value in a two-dimensional structure?
How many indices do you need to access a specific value in a two-dimensional structure?
Two
Given rgbTable = [['khaki',240,230,140], ['salmon',250,128,114]], what does rgbTable[1][0] return?
Given rgbTable = [['khaki',240,230,140], ['salmon',250,128,114]], what does rgbTable[1][0] return?
salmon
What type of data structure is like a single row of items?
What type of data structure is like a single row of items?
One-dimensional
Which is a real-world application of arrays?
Which is a real-world application of arrays?
Storing pixel colors in images
Which is a real-world application of records?
Which is a real-world application of records?
Customer information in databases
