Subjects · Leaving Cert Computer Science
Leaving Cert Computer Science: Lists
How often Lists comes up on the Computer Science papers, every year it was asked, and questions to try.
HL Asked on 3 of the last 5 Higher Level papers, most recently in 2025. most years
Quick ones on Lists.
- 8
- 9
- 5
- [3, 5, 9]
- [8, 3, 5]
- [3, 5]
- append()
- push()
- add()
Show the answers
(a) 9
(b) [3, 5]
(c) append()
Higher Level
Asked on 3 of the last 5 Higher Level papers, most recently in 2025. most years
Every paper, year by year
| Year | Where it came up |
|---|---|
| 2025 | C16 |
| 2024 | B14, C16 |
| 2023 | Not asked |
| 2022 | C16 |
| 2021 | Not asked |
Links open the State Examinations Commission’s paper for that year.
More Lists questions
Lists, 2 marks
What does print(max([4, 11, 7])) display?
- 7
- 3
- 11
Show the answer
11
max() returns the largest item in a list and min() returns the smallest. The 3 is what len() would give: the number of items.
Lists, 3 marks
What does print([1, 2] + [3]) display?
- [4, 2]
- [1, 2, 3]
- [1, 2, [3]]
Show the answer
[1, 2, 3]
+ joins two lists into one new list. [1, 2, [3]] is what append([3]) would give: the whole list [3] added as a single item.
Lists, 3 marks
What is the difference between sorted(a) and a.sort()?
- sorted(a) makes a new list; a.sort() changes a itself
- There is no difference
- a.sort() makes a new list; sorted(a) changes a
Show the answer
sorted(a) makes a new list; a.sort() changes a itself
sorted() returns a new sorted list and leaves a unchanged. a.sort() sorts the list in place and returns None.
Other Computer Science topics
- Abstraction & pattern recognition
- Binary & hexadecimal
- CPU, memory & storage
- Embedded systems & sensors
- Ethics & social impact
- Flowcharts & pseudocode
- Internet, WWW & protocols
- Loops & trace tables
- Problem solving & puzzles
- Selection & Boolean logic
- Universal design & accessibility
- Variables, data types & operators
- Algorithmic complexity
- Data analytics & data quality
- Functions & modules
- Logic gates & truth tables
- Roles, teams & stakeholders
- Searching algorithms
- Testing & debugging
- AI & machine learning
- ASCII & Unicode
- Design process & SDLC
- History & emerging trends
- Privacy & cybersecurity
- Basic electronics
- Databases
- Modelling & simulation
- Operating systems
- Quicksort
- Recursion
- Sorting algorithms
- Strings & string methods
- Heuristics
- Turing machines