11.3 Structured programming
6 questions in this subtopic. Open a question to solve it and check the official answer.
Structured programming · 2 marks · official answer ready
(e) The microprocessor contains both RAM and ROM. Give one function of each type of memory in the alarm clock. RAM ................................................................…
Structured programming · 28 marks
(a) The program calls the function PasswordCheck with the stored password as parameter. If the user enters the correct password the function returns the value TRUE. Each time the …
Structured programming · 9 marks
(ii) Nathan wants to test the validation of the parameter, x, by this function. Give three different types of test data with an example of each. Justify your choices. Type of test…
Structured programming · 28 marks
(a) The program calls the function PasswordCheck with the stored password as parameter. If the user enters the correct password the function returns the value TRUE. Each time the …
Structured programming · 1 mark · official answer ready
(ii) Give one further use of a stack data structure by a computer system. .........................................................................................................…
Structured programming · 1 mark · official answer ready
(c) Sheena could have written the algorithm in part (a)(ii) as a procedure. What is the difference between a function and a procedure? [1] 4
