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 data structure stores multiple items under one name using indices?
- An array
- A constant
- A boolean
- A variable
-
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
-
Which structure is most suitable for storing the test scores of 30 pupils?
- A single variable
- A list
- A function
- A boolean
-
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
-
What is used to locate a single cell in a two-dimensional table?
- Row and column
- Index and length
- Key and item
- Name and value
-
What programming feature works best with a list to process every item?
- A constant
- A variable
- A condition
- A loop
-
A list is [10, 20, 30]. What is list[2]?
- 30
- 10
- 20
- 2
-
What does each column in a data table hold?
- A random value
- One single row
- All table records
- One data field
-
A list stores ['red', 'blue', 'green']. What is the value at index 0?
- 0
- blue
- green
- red
-
Why choose a table instead of a simple list?
- Faster text output
- Only one value
- Multiple data fields
- No indices needed
-
What built-in check tells a loop how many items are in a list?
- The length
- The maximum value
- The first index
- The total sum
-
What error occurs when accessing an index outside a list?
- IndexError
- ValueError
- TypeError
- SyntaxError
-
What structure holds related details like a name, age, and form together?
- A single variable
- A boolean value
- A table row
- A function call
-
What number labels the first position in most programming lists?
- Zero
- One
- Ten
- Minus one
-
A list stores quiz answers. Which Python expression gives the second answer?
- answers[-2]
- answers[2]
- answers[0]
- answers[1]
-
What is the primary purpose of a list in programming?
- Execute functions
- Define classes
- Store multiple items
- Format output
-
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