Operations (AQA GCSE Computer Science): Flashcards

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

Practise the cards

12 cards from this deck

Show

What are arithmetic operations?

Basic mathematical calculations performed on numbers in programs

What are operators in programming?

Special symbols that tell the computer what operation to perform

Multiplication symbol in programming

Asterisk (*)

What does the MOD operator return?

The remainder when dividing one number by another

What does the DIV operator return?

The whole number part of division, ignoring the remainder

17 MOD 517 \text{ MOD } 5 equals

22 (the remainder)

17 DIV 517 \text{ DIV } 5 equals

33 (the whole number part)

What is the BIDMAS order?

Brackets, Indices, Division/Multiplication, Addition/Subtraction

n MOD 2n \text{ MOD } 2 for even/odd test?

00 if even, 11 if odd

MOD result for exact multiples

00 (indicates the number divides exactly)

What do relational operations do?

Compare values and return True or False

What do relational operators return?

Boolean values (True or False)

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

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