View as PDF

COMPUTING AND DIGITAL LITERACY

Arithmetic Operators

Difficulty level: Easy

Computing and Digital Literacy

This document was made by AI and there may be mistakes. If a question or answer looks wrong, use the Flag a mistake button to let Brett know so he can fix it.

Overview of the concept

This is how a computer or calculator turns numbers you store into new answers. Adding up a shopping list or working out change in a till app both come down to plus, minus, times, and divide. Operators are the basic verbs of arithmetic, and every calculation in every app is built from them.

Worked examples

Example 1

What do you get from 7 + 3, 7 − 3, 7 × 3, 7 ÷ 2, and 7 % 3?

Solution

7 + 3 = 10 (add)

7 - 3 = 4 (subtract)

7 * 3 = 21 (multiply)

72 = 3.5 (divide)

7 % 3 = 1 (remainder)

For remainder, divide and keep what is left: 73 = 2 remainder 1, so 7 % 3 = 1

Example 2

Trace a small calculation

Solution

x = 5

y = 2

result = x * y + 1 -> 5 * 2 + 1 = 11

Multiply first, following order of operations: 5 * 2 = 10

Add 1 last: 10 + 1 = 11, so result holds 11.

Practice questions

6

In run A, x is 4 and y is 3. result = x + y * 2. What value does result hold?

7

In run B, x is 20 and y is 4. result = x / y * 2. What value does result hold?

8

In run C, x is 6 and y is 2. result = (x + y) * 3. What value does result hold?

9

What does (10 + 2) % 4 give?

ANSWER KEY

1. 13

2. 3

3. 40

4. 2.5

5. 1

6. 10

7. 10

8. 24

9. 0

10. 14