11.3 Structured programming
47 questions in this subtopic. Open a question to solve it and check the official answer.
Structured programming · 2 marks · official answer ready
(ii) Use the following numbers to label your function header above. 1. Function parameter(s) 2. Where the return data type is stated [2]
Structured programming · 2 marks · official answer ready
(ii) Use the following numbers to label your function header above. 1. Function parameter(s) 2. Where the return data type is stated [2]
Structured programming · 39 marks
(iii) State one parameter that would be passed to the procedure AddBikeRecord. [1] 15 16 reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but i…
Structured programming · 2 marks · official answer ready
(iv) State the parameter identifiers for the function given above. [2] 15
Structured programming · 18 marks
(iii) State why Gina used a function rather than a procedure. [1]
Structured programming · 18 marks
(iii) State why Gina used a function rather than a procedure. [1]
Structured programming · 9 marks · official answer ready
(i) State the parameter of the function. [1]
Structured programming · 0 marks · official answer ready
(i) Local variable
Structured programming · 0 marks · official answer ready
(iii) Parameter passed by value
Structured programming · 4 marks · official answer ready
(b) Explain how a stack is used to handle procedure calling and parameter passing. [4] 11
Structured programming · 2 marks · official answer ready
(i) Explain the difference between a local variable and a global variable. [2]
Structured programming · 2 marks · official answer ready
(ii) Explain the difference between passing a parameter by value and by reference. [2]
Structured programming · 2 marks · official answer ready
(i) variables to hold the three examination marks, [2]
Structured programming · 2 marks · official answer ready
(ii) total mark. [2] 3
Structured programming · 2 marks · official answer ready
(ii) Describe what is meant by a function. [2]
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]
Structured programming · 0 marks · official answer ready
(i) local variable,
Structured programming · 4 marks · official answer ready
(ii) global variable. [4]
Structured programming · 2 marks · official answer ready
(d) Explain the purpose of a loader in the running of the final program. [2]
