Lesson T2.2.1
T2.2.1 Lists, tables and arrays Quiz: KS3 Computing, Unit 2
20 questions
In partnership with Revision Ninja
Lesson T2.2.1, Lists, tables and arrays: 20 multiple choice questions for the KS3 Computing (National Curriculum), Unit 2: Programming, written with Revision Ninja.
Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.
The 20 questions
-
What is an array?
- A single number stored in one variable that can be changed later
- A structure that stores a set of items under one name, each with an index
- A loop that repeats forever until the program is stopped by the user
- A picture of a grid drawn on paper to show the layout of data
-
In Python, what is the index of the first item in a list?
- -1
- 0
- 1
- 10
-
A list is [4, 9, 2]. What is list[1]?
- 9
- 4
- 1
- 2
-
A table has 3 rows and 4 columns. How many cells does it have?
- 16
- 12
- 7
- 34
-
A teacher stores the test scores of 30 pupils. Which structure is most suitable?
- A single number that holds the total of all scores
- Thirty separate variables with different names
- A picture of the class register
- A list or array holding 30 values
-
What does the length of the list [3, 8, 1, 6] equal?
- 6
- 8
- 3
- 4
-
Which Python method adds an item to the end of a list?
- append
- insert_front
- remove_all
- delete
-
A two-dimensional table of data uses what to find one value?
- The total of all the values
- A row number and a column number
- A single name with no position
- Only the colour of the cell
-
What is a benefit of storing data in a list instead of many separate variables?
- A loop can process every item without needing a new name for each
- It removes the need to name the data at all
- It stops the program from ever running out of memory
- It makes the data impossible to change later
-
A list is [10, 20, 30]. What is list[2]?
- 30
- 10
- 20
- 2
-
What does it mean for a table to have columns?
- Each column is a separate program
- Each column holds one kind of value across all the rows
- Columns are used only to draw borders on the screen
- Each column holds one row of data
-
A list stores ['red', 'blue', 'green']. What is the value at index 0?
- 0
- blue
- green
- red
-
Which is a good reason to choose a table rather than a list?
- The data has rows and columns, such as names with several scores each
- The data never needs to be looked up again once it has been stored
- The data is only ever one single number, so a list is not needed
- The data must be printed in colour so that each row is easy to spot
-
A program needs the number of items in a list before using a loop. Which is the most suitable check?
- The colour of the first item
- The length of the list
- The number of letters in the program name
- The index of the last item plus a random number
-
What happens if a program asks for index 5 of a list with only 3 items?
- The program prints zero and carries on normally
- The list grows automatically to hold five items
- An error occurs because the index is out of range
- The list is sorted into a new order first
-
Which type of structure would hold a single pupil's name, age and form?
- A single list of only numbers
- A record or row in a table with several fields
- A Boolean value that is either true or false
- A loop that counts from one to ten
-
Which position does a table or list label as its first?
- The position labelled 1
- The position labelled -1
- The last position in the table
- The position labelled 0
-
A list stores quiz answers. Which Python expression gives the second answer?
- answers[-2]
- answers[2]
- answers[0]
- answers[1]
-
Why are arrays and lists used in programming?
- To store many related values together under one name
- To give each value its own separate file on disk
- To remove the need for loops and conditions
- To make programs run without any input
-
A list called scores holds 5 values. What is len(scores)?
- 0
- 5
- 4
- 6
Related quizzes
- Solving problems with two or more programming languages Quiz · T2.1.1 · 20 questions
- Textual programming languages Quiz · T2.1.2 · 20 questions
- Procedures and functions Quiz · T2.3.1 · 20 questions
- Designing and developing modular programs Quiz · T2.3.2 · 20 questions
- Computational abstractions of real-world systems Quiz · T1.1.1 · 20 questions
- AND, OR and NOT Quiz · T3.1.1 · 20 questions
- Hardware and software components Quiz · T4.1.1 · 20 questions
- Combining applications across devices Quiz · T5.1.1 · 20 questions
- Using technology safely, respectfully and responsibly Quiz · T6.1.1 · 20 questions
- Sorting algorithms Quiz · T1.2.1 · 20 questions