Skip to main content

← back to the guide

AQA A-Level Computer Science 4.1 Fundamentals of programming overview quiz quiz

12questions. Pick an answer and you'll see why right away.

  1. Which data type is most appropriate for storing whether a light is on or off?

  2. Which iteration construct should you use to repeat a process a known, fixed number of times?

  3. What is the value of 17 MOD 517 \text{ MOD } 5?

  4. Applying operator precedence, what is the value of 2+3×42 + 3 \times 4?

  5. What is the difference between a procedure and a function?

  6. Why are local variables generally preferred to global variables?

  7. Which two parts must every recursive subroutine have?

  8. In object-oriented programming, what is the relationship between a class and an object?

  9. What does encapsulation in OOP achieve?

  10. Which OOP feature lets the same method call behave differently depending on the object's class?

  11. Which statement about a WHILE loop is correct?

  12. What is the difference between a parameter and an argument?