Lesson 4.1.2.2

4.1.2.2 Procedural-oriented programming and hierarchy charts Quiz: AQA Computer Science, Unit 1

20 questions

In partnership with Revision Ninja

Lesson 4.1.2.2, Procedural-oriented programming and hierarchy charts: 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 graphical tool represents the hierarchical structure of modules in a procedural program?

    • Entity relationship diagram
    • State transition diagram
    • Hierarchy chart
    • Flowchart
  2. Which component in procedural programming groups a sequence of instructions to perform a specific task?

    • Attribute
    • Subroutine
    • Instance
    • Record
  3. What software design method breaks a complex problem into smaller sub-problems?

    • Bottom-up design
    • Event-driven design
    • Object-oriented design
    • Top-down design
  4. Which design strategy continually decomposes a main problem into smaller sub-tasks?

    • Polymorphism
    • Stepwise refinement
    • Instantiation
    • Encapsulation
  5. A hierarchy chart shows a main module calling three subroutines: input, process and output. How many subroutines are directly called by the main module?

    • 4
    • 2
    • 3
    • 1
  6. What do the lines connecting boxes in a hierarchy chart represent?

    • Iteration loops
    • Selection statements
    • Subroutine calls
    • Data transfers
  7. Why are modular procedural programs easier to test and debug?

    • Automatic bug removal
    • Independent module testing
    • Faster compilation times
    • No global memory
  8. In a hierarchy chart, where are subroutines directly called by main placed?

    • At the bottom
    • Directly above main
    • Inside the main
    • Directly below main
  9. What does a module with two parent modules in a hierarchy chart indicate?

    • Multiple inheritance
    • Code reusability
    • Recursive calling
    • Data encapsulation
  10. What primary relationship between subroutines is shown in a hierarchy chart?

    • Calling structure
    • Memory usage
    • Data transfer
    • Execution order
  11. A programmer decomposes a payroll program into modules: get hours, calculate pay, print slip. What is this an example of?

    • Exception handling
    • Random number generation
    • Object-oriented inheritance
    • Decomposition into subroutines
  12. Which software quality is improved when each module performs only one specific task?

    • Low abstraction
    • Tight coupling
    • High redundancy
    • High cohesion
  13. Which programming paradigm structures code around step-by-step procedures and subroutines?

    • Procedural programming
    • Object-oriented
    • Declarative
    • Functional
  14. Which term describes a module that performs a task and returns no value to its caller?

    • Constant
    • Procedure
    • Record
    • Function
  15. What is true about a module located at the bottom of a hierarchy chart?

    • Is never executed
    • Calls main module
    • Calls no subroutines
    • Contains errors
  16. Which benefit of the structured approach isolates changes to a single output module?

    • Modular maintenance
    • Fast compilation
    • Dynamic binding
    • Code sharing
  17. In a hierarchy chart, where is the top-level main module displayed?

    • On the right
    • In the centre
    • At the bottom
    • At the top
  18. What term describes designing a program from the top-level main module down to detailed sub-routines?

    • Bottom-up design
    • Event-driven design
    • Object-oriented design
    • Top-down design
  19. What process breaks down a main problem into progressively smaller sub-problems?

    • Stepwise refinement
    • Data hiding
    • Polymorphism
    • Class instantiation
  20. Adding a sub-module underneath an existing module in a hierarchy chart represents what process?

    • Stepwise refinement
    • Data abstraction
    • Class instantiation
    • Code compilation

All AQA Computer Science quizzes