Computing 9691 · 11

11.3 Structured programming

6 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2014 October-November · Paper 12 · Q5(e)

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 ................................................................…

2014 October-November · Paper 21 · Q4(a)

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 …

2014 October-November · Paper 22 · Q3(c)(ii)

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…

2014 October-November · Paper 23 · Q4(a)

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 …

2014 October-November · Paper 32 · Q1(c)(ii)

Structured programming · 1 mark · official answer ready

(ii) Give one further use of a stack data structure by a computer system. .........................................................................................................…

2014 May-June · Paper 23 · Q1(c)

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