logo

AQA A-Level Computer Science practice

For each relational operator below, state what it tests and give one Python 3 example: ==, !=, <, >, <= and >=.

Try the question first, then check the answer and practise the same topic again.

At a glance

Question

Type

practice

Style

Topic

Programming

Exam-style question

Try this first

For each relational operator below, state what it tests and give one Python 3 example: ==, !=, <, >, <= and >=.

Answer and explanation

Concise answer

== tests equal to, for example 5 == 5.

Why this is correct

Each operator compares two values and produces a Boolean result. The examples show the correct meaning and Python 3 spelling of all six required relational operations.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions