Subjects · Leaving Cert Computer Science
Leaving Cert Computer Science: Selection & Boolean logic
How often Selection & Boolean logic comes up on the Computer Science papers, every year it was asked, and questions to try.
HL Asked on 5 of the last 5 Higher Level papers, most recently in 2025. banker
OL Asked on 5 of the last 5 Ordinary Level papers, most recently in 2025. banker
Quick ones on Selection & Boolean logic.
- True
- False
- Error
- Error
- False
- True
- ==
- !=
- =
Show the answers
(a) False
(b) True
(c) ==
Higher Level
Asked on 5 of the last 5 Higher Level papers, most recently in 2025. banker
Every paper, year by year
| Year | Where it came up |
|---|---|
| 2025 | A9 |
| 2024 | A9, C16 |
| 2023 | A3, C16 |
| 2022 | A5 |
| 2021 | A6, B13, C16 |
Links open the State Examinations Commission’s paper for that year.
More Selection & Boolean logic questions
Selection & Boolean logic, 2 marks
What does print(10 % 2 == 0) display?
- False
- 0
- True
Show the answer
True
% gives the remainder: 10 % 2 is 0, and 0 == 0 is True. n % 2 == 0 is the standard test for an even number.
Selection & Boolean logic, 3 marks
By De Morgan's law, not (a or b) is the same as?
- a and b
- not a and not b
- not a or not b
Show the answer
not a and not b
Negating an or turns it into an and, with each part negated. not (a or b) is True only when a and b are both False.
Selection & Boolean logic, 2 marks
What does print(not (4 > 2)) display?
- False
- True
- Error
Show the answer
False
4 > 2 is True, and not flips True to False.
Ordinary Level
Asked on 5 of the last 5 Ordinary Level papers, most recently in 2025. banker
Every paper, year by year
| Year | Where it came up |
|---|---|
| 2025 | A1, B14, C16 |
| 2024 | A5, A8, C16 |
| 2023 | A1, A11, C16 |
| 2022 | C16 |
| 2021 | C16 |
Links open the State Examinations Commission’s paper for that year.
More Selection & Boolean logic questions
Selection & Boolean logic, 2 marks
Output of print(4 != 4)?
- True
- 0
- False
Show the answer
False
!= means not equal. 4 is equal to 4, so 4 != 4 is False.
Selection & Boolean logic, 3 marks
Output of print(6 >= 6)?
- 6
- True
- False
Show the answer
True
>= means greater than OR equal to. 6 equals 6, so it is True. 6 > 6 would be False.
Selection & Boolean logic, 3 marks
x = 7. Output of print(x > 5 and x < 10)?
- True
- False
- 7
Show the answer
True
and needs both parts True: 7 > 5 is True and 7 < 10 is True, so the result is True.
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
- 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
- Lists
- Privacy & cybersecurity
- Basic electronics
- Databases
- Modelling & simulation
- Operating systems
- Quicksort
- Recursion
- Sorting algorithms
- Strings & string methods
- Heuristics
- Turing machines