Learn in your language
Skip to content
IGCSE · Cambridge (CIE) · 0984

Use arithmetic, relational and logical operators

Build expressions with the Cambridge operators and check their type and order of evaluation.

Cambridge IGCSE Computer Science 0984 · Programming · 2026–2028 Version 4 · 0984 (9–1) · 8.1
Exam scope and assessment notes

This sequence follows Cambridge IGCSE Computer Science 0984, 2026–2028 syllabus Version 4. It covers section 8.1 (Programming concepts) only. Pseudocode examples use the published Cambridge format; the separate 2029–2031 syllabus is not mapped here. Practice is original, self-checked and does not award an official Cambridge grade. Full timed papers, a browser-based programming workspace and human subject-teacher review remain outstanding. Cambridge states that 0984 has the same 2026–2028 subject content as 0478, with 9–1 grading. In June and November, Cambridge lists 0984 in Administrative zone 3 and for centres in Oman and the UAE. Confirm availability for your centre and exam series with Cambridge International. The separately published 2029–2031 syllabus changes to Python 3 only and removes pseudocode; this 2026–2028 route does not cover those changes.

Before you begin

  • Be comfortable following an ordered algorithm and tracing variable values. Each lesson introduces the Cambridge pseudocode form it uses.

Work on paper. Try each question before revealing help, and explain why your method works.

Quick readiness check

What type of result does Score >= 50 produce?

What you will learn

  • Use arithmetic operators including DIV and MOD
  • Compare values with relational operators
  • Combine Boolean conditions with AND, OR and NOT

Arithmetic expressions calculate values

Use +, −, *, / and ^ for arithmetic. DIV returns the whole-number quotient and MOD returns the remainder for integer operands; for example DIV(17,5)=3 and MOD(17,5)=2.

Multiplication and division have precedence over addition and subtraction. Use parentheses in a complex expression to make the intended order clear.

Relational and logical expressions return BOOLEAN

The syllabus relational operators are =, <, <=, >, >= and <>. Each comparison produces TRUE or FALSE.

Combine Boolean conditions with AND, OR and NOT. Parentheses make a long condition easier to read, for example (Age >= 13) AND (Age <= 18).

Pause and explain

A pass requires Mark >= 50 and CourseworkComplete = TRUE. Which operator joins the conditions?

Put the idea to work

Worked example

A learner is eligible when their score is at least 60 and they submitted the task. Write the condition.

Show the worked solution
  1. Compare Score with the inclusive threshold 60.
  2. Use a Boolean variable such as Submitted.
  3. Both conditions must be true, so combine them with AND.

Answer Eligible ← (Score >= 60) AND Submitted.

Try a topic test

Choose Easy, Normal or Difficult. Save your answers and open worked review after finishing.

Test this topic →

From guided practice to a new situation

Write your answer and reasoning first. Use a hint only if you are stuck. The model solution is for self-checking; your written work is not automatically marked.

1 · Guided

For 23 sweets shared among 5 learners, calculate the whole number per learner and the remainder.

Give me a hint

Use DIV for the quotient and MOD for the remainder.

Compare my reasoning
  1. Calculate DIV(23,5).
  2. Calculate MOD(23,5).
  3. Check that 5 × quotient + remainder = 23.

Each learner gets 4; 3 remain.

Look for these in your work

  • DIV result
  • MOD result
  • Check balances
2 · Independent

Write a condition that is TRUE for temperatures from 18 through 25 inclusive.

Give me a hint

Both endpoints are allowed, so use >= and <=.

Compare my reasoning
  1. Compare Temperature >= 18.
  2. Compare Temperature <= 25.
  3. Combine with AND.

(Temperature >= 18) AND (Temperature <= 25).

Look for these in your work

  • Inclusive comparisons
  • AND used
3 · Transfer

A ticket is discounted if a learner is under 16 OR has a student pass. Write a condition and explain why OR fits.

Give me a hint

Either route qualifies.

Compare my reasoning
  1. Create the age condition Age < 16.
  2. Create the Boolean condition HasStudentPass = TRUE.
  3. Join them with OR because either may be sufficient.

Discounted ← (Age < 16) OR HasStudentPass.

Look for these in your work

  • Both conditions included
  • OR justified

Common mistakes

  • Using / when an integer quotient is required
  • Confusing MOD with DIV
  • Using OR when both conditions must be true
  • Omitting parentheses from a complex expression
Recall without your notes

What can you explain now?

What are DIV(17,5) and MOD(17,5)?

Compare with the explanation

3 and 2

Five fits into 17 three times with remainder 2.

After trying it yourself, choose your next review. This is your self-assessment.

Your review choice appears on Today. Sign in to sync it across devices.

Make it stick

What is the difference between DIV and MOD?

If you needed the solution, close it and solve the problem again from a blank page. A correct answer is stronger when you can explain the reason for each step.

Keep learning Computer Science (9-1)

Course scope and assessment

165 original lessons map the listed objectives across all 10 main topics in the 2026–2028 Version 4 syllabus. Cambridge states that 0984 has the same subject content as 0478, with 9–1 grading. Three retained introductory lessons remain available but are not counted as syllabus-mapped teaching. The 2023–2025 syllabus remains unmapped. The separately published 2029–2031 syllabus changes to Python 3 only and removes pseudocode; this 2026–2028 route does not cover those changes. In June and November, Cambridge lists 0984 in Administrative zone 3 and for centres in Oman and the UAE. Confirm availability for your centre and exam series with Cambridge International. Practical programming in an executable browser workspace, full timed-paper practice and human subject-teacher review remain outstanding. Practice is self-checked and does not award an official Cambridge grade.

StudyForA · Learn with understanding

Original teaching content and links to official sources. Check your exam year and qualification before using a resource.