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.

Host this setFree Play

The 20 questions

  1. 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
  2. In Python, what is the index of the first item in a list?

    • -1
    • 0
    • 1
    • 10
  3. A list is [4, 9, 2]. What is list[1]?

    • 9
    • 4
    • 1
    • 2
  4. A table has 3 rows and 4 columns. How many cells does it have?

    • 16
    • 12
    • 7
    • 34
  5. 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
  6. What does the length of the list [3, 8, 1, 6] equal?

    • 6
    • 8
    • 3
    • 4
  7. Which Python method adds an item to the end of a list?

    • append
    • insert_front
    • remove_all
    • delete
  8. 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
  9. 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
  10. A list is [10, 20, 30]. What is list[2]?

    • 30
    • 10
    • 20
    • 2
  11. 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
  12. A list stores ['red', 'blue', 'green']. What is the value at index 0?

    • 0
    • blue
    • green
    • red
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. A list stores quiz answers. Which Python expression gives the second answer?

    • answers[-2]
    • answers[2]
    • answers[0]
    • answers[1]
  19. 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
  20. A list called scores holds 5 values. What is len(scores)?

    • 0
    • 5
    • 4
    • 6

All KS3 Computing quizzes