logo

AQA A-Level Computer Science practice

Which Python 3 expression checks whether the value stored in score is less than or equal to 50?

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

At a glance

MCQ

Type

practice

Style

Topic

Programming

Exam-style question

Try this first

Which Python 3 expression checks whether the value stored in score is less than or equal to 50?.

  1. A.score < 50
  2. B.score <= 50
  3. C.score =< 50
  4. D.score == 50

Answer and explanation

Concise answer

score <= 50

Why this is correct

The <= operator means less than or equal to. The expression includes both values below 50 and the value 50 itself.

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