Test your knowledge with free interactive questions on Seneca — used by over 10 million students.

Lists

Lists are a data structure quite similar to an array.

Lists

Lists

  • Lists store multiple elements of different data types under the same identifier.
  • There can be a variable number of elements - they never get full.
Lists in pseudocode

Lists in pseudocode

  • A list can be declared as follows:
    • pupils = []
  • Values can be added to the end of the list as follows:
    • pupils.append("Alice")
  • Values can be accessed as follows:
    • print("The first student is " + pupils[0])
Jump to other topics
1

Computational Thinking & Algorithms

2

Programming

3

Hardware & Software

4

Data

5

The Internet

6

Online Safety & Security

Practice questions on Lists

Can you answer these? Test yourself with free interactive practice on Seneca — used by over 10 million students.

  1. 1
  2. 2
    How is a list created?Multiple choice
  3. 3
Answer all questions on Lists

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium