Lesson 4.1.1.3
4.1.1.3 Arithmetic operations Quiz: AQA Computer Science, Unit 1
20 questions
In partnership with Revision Ninja
Lesson 4.1.1.3, Arithmetic operations: 20 multiple choice questions for the AQA Computer Science (7517), Unit 1: Fundamentals of programming, written with Revision Ninja.
Host it live on the board and students join with a game code on their own devices, or revise alone with Free Play. The answers are revealed in the game.
The 20 questions
-
What is the result of 17 DIV 5 in integer division?
- 4
- 2
- 3
- 3.4
-
What is the result of 17 MOD 5?
- 12
- 3
- 2
- 5
-
What is the value of 2 raised to the power 10?
- 20
- 512
- 100
- 1024
-
What is the result of truncating 9.99 to an integer?
- 9.9
- 9.99
- 10
- 9
-
What is the result of rounding 7.5 to the nearest integer, rounding halves up?
- 7.5
- 9
- 8
- 7
-
What is the result of 7 divided by 2 using real (float) division?
- 4
- 3.5
- 3.25
- 3
-
Which operation returns the remainder after integer division?
- DIV
- ^
- MOD
- ROUND
-
What is the value of 3 + 4 * 2 using standard operator precedence?
- 9
- 11
- 14
- 10
-
What is the value of (3 + 4) * 2?
- 14
- 11
- 10
- 7
-
What is the result of 25 DIV 4?
- 5
- 7
- 6
- 6.25
-
In a language where ** means exponentiation, what is the value of 2 ** 3 + 1?
- 7
- 8
- 6
- 9
-
What is the result of rounding 2.6 to the nearest integer?
- 2.5
- 2
- 3
- 2.6
-
What pair of results is correct for 10 divided by 4 using real division, and 10 divided by 4 using integer division?
- 2 and 2.5
- 2 and 2
- 2.5 and 2.5
- 2.5 and 2
-
Which expression tests whether the integer n is even?
- n ^ 2 = 0
- n MOD 2 = 0
- n DIV 2 = 0
- n / 2 = 1
-
What is the value of 5 + 3 * 2 ^ 2 using standard precedence?
- 17
- 21
- 32
- 25
-
What is the value of 1234 DIV 100 MOD 10?
- 12
- 4
- 3
- 2
-
How many times must DIV 10 be applied to 4572, starting with 4572, before the result reaches 0?
- 4
- 5
- 3
- 6
-
What is the value of TRUNCATE(-2.5), where truncation discards the fractional part towards zero?
- 2
- -2.5
- -2
- -3
-
What is the value of 7 MOD 3 + 10 DIV 3?
- 3
- 4
- 5
- 6
-
Why might a real division such as 1/3 multiplied by 3 not give exactly 1 in a computer?
- Multiplication is not allowed on real values, so the expression cannot be evaluated at all
- Computers cannot perform multiplication on any value that contains a decimal point
- Real values are stored with finite precision, so rounding error can occur
- Real division always returns an integer, which discards the fractional part of the answer
Related quizzes
- Data types Quiz · 4.1.1.1 · 20 questions
- Programming concepts: sequence, selection and iteration Quiz · 4.1.1.2 · 20 questions
- Relational and Boolean operations Quiz · 4.1.1.4 · 20 questions
- Constants and variables Quiz · 4.1.1.6 · 20 questions
- String-handling operations Quiz · 4.1.1.7 · 20 questions
- Random numbers and exception handling Quiz · 4.1.1.8 · 20 questions
- Subroutines Quiz · 4.1.1.10 · 20 questions
- Parameters and returning values Quiz · 4.1.1.11 · 20 questions
- Local and global variables Quiz · 4.1.1.13 · 20 questions
- Stack frames in subroutine calls Quiz · 4.1.1.15 · 20 questions