Arithmetic operators (Edexcel GCSE Computer Science): Flashcards
📚Flashcards
Practise the cards
13 cards from this deck
ShowHide
Practise the cards
13 cards from this deck
What does the ** operator do?
What does the ** operator do?
Exponentiation (raises to a power)
What does the % operator do?
What does the % operator do?
Modulus (returns remainder after division)
What does the // operator do?
What does the // operator do?
Integer division (returns whole number part only)
Result type of division (/)
Result type of division (/)
Always returns a decimal/float
What does modulus (%) return?
What does modulus (%) return?
The remainder after division
What does integer division (//) return?
What does integer division (//) return?
Whole number part only, no decimal
Effect of multiplying a string by a number
Effect of multiplying a string by a number
Repeats the string that many times
Effect of adding two strings together
Effect of adding two strings together
Concatenation (joins them together)
BIDMAS order
BIDMAS order
Brackets, Indices, Div/Mod, Multiply, Add, Subtract
Operations at same priority level evaluated...
Operations at same priority level evaluated...
Left to right
Result of %
Result of %
Result of //
Result of //
Result of /
Result of /
(a float/decimal)
