Ceist Eile is in development. Features, questions and prices may change while we refine it.

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

Lists, Higher Level(8 marks)

Quick ones on Lists.

(a)nums = [8, 3, 5, 9]. What does print(nums[-1]) display?
  1. 8
  2. 9
  3. 5
(b)nums = [8, 3, 5, 9]. What does print(nums[1:3]) display?
  1. [3, 5, 9]
  2. [8, 3, 5]
  3. [3, 5]
(c)Which list method adds an item to the end of a list?
  1. append()
  2. push()
  3. add()
Show the answers

(a) 9

(b) [3, 5]

(c) append()

Your turn: Higher Level questions on Lists.

Higher Level

Asked on 3 of the last 5 Higher Level papers, most recently in 2025. most years

Every paper, year by year

YearWhere it came up
2025C16
2024B14, C16
2023Not asked
2022C16
2021Not 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?

  1. 7
  2. 3
  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?

  1. [4, 2]
  2. [1, 2, 3]
  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()?

  1. sorted(a) makes a new list; a.sort() changes a itself
  2. There is no difference
  3. 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

All of Leaving Cert Computer Science