Computational thinking and problem-solving
5 questions. Open a question to solve it and check the official answer.
Recursion · 3 marks · official answer ready
(c) Functions and procedures are subroutines. Explain why parameters are used with subroutines. ...................................................................................…
Algorithms · 0 marks · official answer ready
1 (a) Simple algorithms usually consist of input, process and output. The statements in the following table are in a generic programming language. Complete the table by placing ti…
Recursion · 7 marks · official answer ready
3 NameList is a 1D array that stores a sorted list of names. A programmer declares the array in pseudocode as follows: NameList : Array[0 : 100] OF STRING The programmer wants to …
Recursion · 5 marks · official answer ready
(e) The traverse tree operation outputs the data items in alphabetical order. This can be written as a recursive solution. Complete the pseudocode for the recursive procedure Trav…
Recursion · 7 marks · official answer ready
3 NameList is a 1D array that stores a sorted list of names. A programmer declares the array in pseudocode as follows: NameList : Array[0 : 100] OF STRING The programmer wants to …
