Programming
4 questions. Open a question to solve it and check the official answer.
Constructs · 8 marks · official answer ready
4 (a) READ NUMBER FOR COUNT = 1 TO NUMBER READ MARK IF MARK < 50 THEN OUTPUT COUNT, “FAIL” ELSE IF MARK > 80 THEN OUTPUT COUNT, “MERIT” ELSE OUTPUT COUNT, “PASS” END IF END IF NEX…
Structured programming · 2 marks · official answer ready
(ii) a parameter that is passed to a procedure. [2]
Structured programming · 4 marks · official answer ready
(b) Explain how a stack is used to handle procedure calling and parameter passing. [4]
Constructs · 5 marks · official answer ready
(a) Describe an algorithm to find the position of a particular student in the array, using a serial search. [5]
