Computer Science (AS & A Level) · Oct / Nov 2024 · Paper 21 · Question 7
9618
As printed in the paper
The question as text
A program contains six modules with headers as follows: Pseudocode module header PROCEDURE Connect() FUNCTION Activate(H1 : STRING, Code : INTEGER) RETURNS BOOLEAN FUNCTION Sync(T1 : BOOLEAN, S2 : REAL) RETURNS INTEGER PROCEDURE Initialise(BYREF ID : INTEGER, BYVAL CC : INTEGER) FUNCTION Reset(RA : STRING) RETURNS INTEGER FUNCTION Enable(SA : INTEGER) RETURNS BOOLEAN Module Connect() will call either Activate() or Sync(). This is decided at run-time.
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
7(a)[5]
7(b)[2]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

