AQA A-Level Computer Science AS Paper 1, June 2025: Question 10

4 marks ยท Easy difficulty ยท Short Answer

Answer questions about the structure, representation, and development stage of a hierarchy chart for a Skeleton Program.

Practise this question

Question

Figure 6 shows an incomplete hierarchy chart for part of the Skeleton Program. At the top level is a box labelled 'TreasureIsland'. Connecting downwards are several boxes: dotted lines, 'GenerateMap', dotted lines, 'GetPirateAction', and dotted lines. Connected underneath 'GetPirateAction' are two blank boxes labelled (a) and (b). Below the figure are four sub-questions: 10.1 asks what a box in a hierarchy chart represents; 10.2 asks what should be written in box (a); 10.3 asks what should be written in box (b); and 10.4 asks to state the stage of software development when a hierarchy chart is normally developed.
Question text

10 Figure 6 shows an incomplete hierarchy chart for part of the Skeleton Program.

Figure 6

10.1 What does a box in a hierarchy chart represent?

[1 mark]

10.2 What should be written in box (a) in Figure 6?

[1 mark]

10.3 What should be written in box (b) in Figure 6?

[1 mark]

10.4 State the stage of software development when a hierarchy chart is

normally developed.

[1 mark]

Mark scheme

Show the mark scheme Mark scheme for question 10: 10.1 awards 1 mark for Subroutine/procedure/function/method (Accept module/block of code). 10.2 awards 1 mark for PirateWalks or PirateDigs (Ignore case and spacing). 10.3 awards 1 mark for PirateDigs or PirateWalks (Reject if already given in 10.2). 10.4 awards 1 mark for (During the) design (stage) (Reject if more than one stage is given).

10 1 Mark is for AO1 (knowledge) 1

Subroutine/procedure/function/method;

A. module/block of code

10 2 Mark is for AO2 (analyse) 1

PirateWalks/PirateDigs;

I. case and spacing

10 3 Mark is for AO2 (analyse) 1

PirateDigs/PirateWalks;

R. if given in 10.2

I. case and spacing

10 4 Mark is for AO1 (understanding) 1

(During the) design (stage);

R. more than one stage given

How to answer it

Hierarchy Charts & Program Decomposition

๐Ÿ“Œ What this question tests

This question assesses your foundational understanding of top-down modular design and the Software Development Life Cycle (SDLC), applied directly to the pre-release Skeleton Program:

  • The purpose and standard components of a structure / hierarchy chart.
  • Tracing modular dependencies and identifying subroutines called by parent routines.
  • Identifying the specific stage in software development where architecture planning occurs.

Question 10.1

Meaning of a Box in a Hierarchy Chart

โœ… Correct Answer

Any one of the following terms:

  • Subroutine
  • Procedure
  • Function
  • Method
  • Also accepted: Module / block of code

๐Ÿ’ก Key Knowledge

A hierarchy chart (structure chart) breaks down a system top-down into smaller, manageable units:

  • Each box represents a discrete subprogram / subroutine.
  • Each connecting line represents a call relationship (the upper box calls the lower box).
  • Hierarchy charts show program structure, not flow of control, decisions, or loops.

๐Ÿง  Exam Technique

Use precise formal computing terms. While "module" or "block of code" is allowed in the mark scheme, answering with subroutine, procedure, or function is standard textbook terminology that guarantees marks across all exam boards.

โŒ Common Errors

  • Confusing structure charts with flowcharts: Stating that a box represents a "step", "instruction", "process", or "condition".
  • Stating that a box is a "variable", "parameter", or "data structure".
Mark scheme: 1 mark for AO1 (Knowledge). 1 mark awarded for naming an appropriate programming abstraction.

Questions 10.2 & 10.3

Identifying Subroutines in the Skeleton Program

โœ… Correct Answers

For boxes (a) and (b) (in either order):

  • 10.2: PirateWalks (or PirateDigs )
  • 10.3: PirateDigs (or PirateWalks )

Note: The mark scheme ignores casing and spaces, but rejects duplicate entries.

๐Ÿ’ก Key Knowledge: Code Tracing

In the pre-released Skeleton Program, inspecting the subroutine GetPirateAction reveals how it delegates tasks:

  • It prompts for an action or chooses an action for the pirate.
  • If the pirate walks, it calls PirateWalks(...) .
  • If the pirate digs, it calls PirateDigs(...) .
  • Because both are invoked directly by GetPirateAction , they sit as direct child nodes under it.

๐Ÿง  Exam Technique

When revising the Skeleton Program before Paper 1:

  • Construct a full subroutine call graph (who calls whom). Questions testing the modular layout of the Skeleton Program appear frequently.
  • Ensure you don't repeat the same identifier in both 10.2 and 10.3.

โŒ Common Errors

  • Writing subroutines called from the main program rather than from GetPirateAction (e.g., writing DisplayGrid or CheckGameOver ).
  • Writing the same subroutine name in both boxes, forfeiting the mark for 10.3.
Mark scheme: 2 marks total (1 mark each under AO2 - Analysis). Both identifiers must be distinct subroutines called directly by GetPirateAction .

Question 10.4

Software Development Lifecycle (SDLC) Stage

โœ… Correct Answer

Design (or "During the design stage")

๐Ÿ’ก Key Knowledge: SDLC Stages

  • Analysis: Defining requirements, user interviews, formulating problem specification.
  • Design: Planning algorithms, structure charts, data structures, UI mockups, and validation rules before coding.
  • Implementation (Coding): Translating designs into source code.
  • Testing: Verifying code with normal, boundary, and erroneous data.
  • Evaluation & Maintenance: Assessing criteria against user needs and fixing post-deployment issues.

๐Ÿง  Exam Technique: Single Clear Term

Notice the explicit mark scheme instruction: "R. more than one stage given". Writing "Analysis and Design" or "Design / Implementation" scores 0 marks. When asked to "State the stage", give exactly one definitive stage.

โŒ Common Errors

  • Writing "Implementation" or "Coding" โ€” hierarchy charts are a planning tool created prior to writing program code.
  • Hedging bets by naming multiple stages (e.g. "Planning and Analysis" or "Design/Development").
Mark scheme: 1 mark for AO1 (Understanding). Must state only "Design".

Topics

4.1 Fundamentals of programming ยท 4.1.2 Programming paradigms ยท 4.1.1 Programming

Question and mark scheme from the AQA A-Level Computer Science examination, AS Paper 1, June 2025. QuestionVault is an independent revision resource; questions remain the copyright of the awarding body.