Four program modules are defined as follows: | Pseudocode module header | |---| | PROCEDURE Sub1_A(XT : INTEGER, PB : STRING) | | FUNCTION Sub1_B(RA : INTEGER) RETURNS BOOLEAN | | PROCEDURE Sub1_C(SB : INTEGER, BYREF SA : STRING) | | PROCEDURE Section_1() |
- (a)A structure chart will be produced as part of the development process. Describe the purpose of a structure chart.[2]
- (b)Module Section_1() calls one of the other three modules. The module called will be selected when the program runs. Draw the structure chart.[5]
This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.
Mark scheme
Marking points from the official mark scheme (May/June 2022). The mark or mark type is shown in brackets.
- [2] (a) One mark per point to show: module relationships / hierarchy / selection / repetition // how a problem is broken down
- [2] (a) the parameters that are passed between the sub-tasks / modules // whether a module is a function or a procedure
- [5] (b) One mark for each: 1 Four boxes linked as shown correctly labelled (Order of lower 3 not important)
- [5] (b) 2 Parameters to Sub1_A
- [5] (b) 3 Parameter to Sub1_B and return value
- [5] (b) 4 Parameters to Sub1_C
- [5] (b) 5 Selection diamond
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →