Arithmetic operators (Edexcel GCSE Computer Science): Flashcards

📚Flashcards
Arithmetic operators
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

13 cards from this deck

Show

What does the ** operator do?

Exponentiation (raises to a power)

What does the % operator do?

Modulus (returns remainder after division)

What does the // operator do?

Integer division (returns whole number part only)

Result type of division (/)

Always returns a decimal/float

What does modulus (%) return?

The remainder after division

What does integer division (//) return?

Whole number part only, no decimal

Effect of multiplying a string by a number

Repeats the string that many times

Effect of adding two strings together

Concatenation (joins them together)

BIDMAS order

Brackets, Indices, Div/Mod, Multiply, Add, Subtract

Operations at same priority level evaluated...

Left to right

Result of 77 % 44

33

Result of 77 // 44

11

Result of 66 / 33

2.02.0 (a float/decimal)

Join 100,000+ GCSE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.