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.

Host this setFree Play

The 20 questions

  1. What is the result of 17 DIV 5 in integer division?

    • 4
    • 2
    • 3
    • 3.4
  2. What is the result of 17 MOD 5?

    • 12
    • 3
    • 2
    • 5
  3. What is the value of 2 raised to the power 10?

    • 20
    • 512
    • 100
    • 1024
  4. What is the result of truncating 9.99 to an integer?

    • 9.9
    • 9.99
    • 10
    • 9
  5. What is the result of rounding 7.5 to the nearest integer, rounding halves up?

    • 7.5
    • 9
    • 8
    • 7
  6. What is the result of 7 divided by 2 using real (float) division?

    • 4
    • 3.5
    • 3.25
    • 3
  7. Which operation returns the remainder after integer division?

    • DIV
    • ^
    • MOD
    • ROUND
  8. What is the value of 3 + 4 * 2 using standard operator precedence?

    • 9
    • 11
    • 14
    • 10
  9. What is the value of (3 + 4) * 2?

    • 14
    • 11
    • 10
    • 7
  10. What is the result of 25 DIV 4?

    • 5
    • 7
    • 6
    • 6.25
  11. In a language where ** means exponentiation, what is the value of 2 ** 3 + 1?

    • 7
    • 8
    • 6
    • 9
  12. What is the result of rounding 2.6 to the nearest integer?

    • 2.5
    • 2
    • 3
    • 2.6
  13. 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
  14. Which expression tests whether the integer n is even?

    • n ^ 2 = 0
    • n MOD 2 = 0
    • n DIV 2 = 0
    • n / 2 = 1
  15. What is the value of 5 + 3 * 2 ^ 2 using standard precedence?

    • 17
    • 21
    • 32
    • 25
  16. What is the value of 1234 DIV 100 MOD 10?

    • 12
    • 4
    • 3
    • 2
  17. How many times must DIV 10 be applied to 4572, starting with 4572, before the result reaches 0?

    • 4
    • 5
    • 3
    • 6
  18. What is the value of TRUNCATE(-2.5), where truncation discards the fractional part towards zero?

    • 2
    • -2.5
    • -2
    • -3
  19. What is the value of 7 MOD 3 + 10 DIV 3?

    • 3
    • 4
    • 5
    • 6
  20. 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

All AQA Computer Science quizzes