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.
The 20 questions
-
What graphical tool represents the hierarchical structure of modules in a procedural program?
- Entity relationship diagram
- State transition diagram
- Hierarchy chart
- Flowchart
-
Which component in procedural programming groups a sequence of instructions to perform a specific task?
- Attribute
- Subroutine
- Instance
- Record
-
What software design method breaks a complex problem into smaller sub-problems?
- Bottom-up design
- Event-driven design
- Object-oriented design
- Top-down design
-
Which design strategy continually decomposes a main problem into smaller sub-tasks?
- Polymorphism
- Stepwise refinement
- Instantiation
- Encapsulation
-
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
-
What do the lines connecting boxes in a hierarchy chart represent?
- Iteration loops
- Selection statements
- Subroutine calls
- Data transfers
-
Why are modular procedural programs easier to test and debug?
- Automatic bug removal
- Independent module testing
- Faster compilation times
- No global memory
-
In a hierarchy chart, where are subroutines directly called by main placed?
- At the bottom
- Directly above main
- Inside the main
- Directly below main
-
What does a module with two parent modules in a hierarchy chart indicate?
- Multiple inheritance
- Code reusability
- Recursive calling
- Data encapsulation
-
What primary relationship between subroutines is shown in a hierarchy chart?
- Calling structure
- Memory usage
- Data transfer
- Execution order
-
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
-
Which software quality is improved when each module performs only one specific task?
- Low abstraction
- Tight coupling
- High redundancy
- High cohesion
-
Which programming paradigm structures code around step-by-step procedures and subroutines?
- Procedural programming
- Object-oriented
- Declarative
- Functional
-
Which term describes a module that performs a task and returns no value to its caller?
- Constant
- Procedure
- Record
- Function
-
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
-
Which benefit of the structured approach isolates changes to a single output module?
- Modular maintenance
- Fast compilation
- Dynamic binding
- Code sharing
-
In a hierarchy chart, where is the top-level main module displayed?
- On the right
- In the centre
- At the bottom
- At the top
-
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
-
What process breaks down a main problem into progressively smaller sub-problems?
- Stepwise refinement
- Data hiding
- Polymorphism
- Class instantiation
-
Adding a sub-module underneath an existing module in a hierarchy chart represents what process?
- Stepwise refinement
- Data abstraction
- Class instantiation
- Code compilation
Related quizzes
- Data types Quiz · 4.1.1.1 · 20 questions
- Programming concepts: sequence, selection and iteration Quiz · 4.1.1.2 · 20 questions
- Arithmetic operations Quiz · 4.1.1.3 · 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