Skip to main content

Back to the full dot-point answer

SingaporeComputer ScienceQuick questions

Programming in Python

Quick questions on Python selection and conditions explained: O-Level Computing

6short Q&A pairs drawn directly from our worked dot-point answer. For full context and worked exam questions, read the parent dot-point page.

What are combining conditions?
Show answer
Logical operators join or reverse conditions:
What are ordering branches?
Show answer
When ranges meet, order matters. Check the most specific or highest band first, so a value is caught by the right branch:
What is wrong branch order?
Show answer
A broad condition placed first captures values meant for a later branch; order from highest or most specific.
What is bad indentation?
Show answer
Python uses indentation to group a branch's statements; inconsistent spaces cause errors or wrong behaviour.
What is q1?
Show answer
State the difference between = and == in Python. [2 marks]
What is q2?
Show answer
Write a condition that is true when score is at least 5050 and at most 100100. [2 marks]

Have a question we have not covered?

This dot-point answer is short enough that we have not extracted many short questions yet. Read the full dot-point answer or ask Mo, our study assistant, in the chat for follow ups.

All Computer ScienceQ&A pages