11.3 Structured programming
59 questions in this subtopic. Open a question to solve it and check the official answer.
Structured programming · 1 mark · official answer ready
(iii) Test your program. Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 1(b)(iii) in the evidence document. [1] 4
Structured programming · 2 marks · official answer ready
(ii) Write program code to amend the main program to: • call Bubble() with the unsorted array as a parameter • call FormatArray() with the sorted array and output the returned str…
Structured programming · 1 mark · official answer ready
(iii) Test your program. Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 1(d)(iii) in the evidence document. [1] 6
Structured programming · 1 mark · official answer ready
(ii) Amend the main program to: • call RemoveData() with the parameter 5 • output the word "After" • call OutputLinkedList(). Save your program. Copy and paste the program code in…
Structured programming · 6 marks
5 1 2 3 8 Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 3(c)(iii) in the evidence document. [1] 15 (d) The procedure RemoveData() rem…
Structured programming · 2 marks
5 1 2 3 8 Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 3(c)(iii) in the evidence document. [1] 15 (d) The procedure RemoveData() rem…
Structured programming · 2 marks · official answer ready
(c) The procedure OutputHighScores() takes a 2D array as a parameter. It outputs each player’s ID, level and score in the order they are in the array. The outputs are in the forma…
Structured programming · 6 marks
7 SNQT 2 10 The function SortScores() uses a bubble sort to sort the data as described and returns the sorted array. Write program code for SortScores(). Save your program. Copy a…
Structured programming · 3 marks · official answer ready
(ii) The main program: • calls ReadData() and stores the returned array • calls FormatArray() with the returned array and outputs the returned string. Write program code for the m…
Structured programming · 1 mark · official answer ready
(iii) Test your program. Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 1(b)(iii) in the evidence document. [1] 4
Structured programming · 2 marks · official answer ready
(ii) Write program code to amend the main program to: • call Bubble() with the unsorted array as a parameter • call FormatArray() with the sorted array and output the returned str…
Structured programming · 1 mark · official answer ready
(iii) Test your program. Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 1(d)(iii) in the evidence document. [1] 6
Structured programming · 1 mark · official answer ready
(ii) Amend the main program to: • call RemoveData() with the parameter 5 • output the word "After" • call OutputLinkedList(). Save your program. Copy and paste the program code in…
Structured programming · 6 marks
5 1 2 3 8 Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 3(c)(iii) in the evidence document. [1] 15 (d) The procedure RemoveData() rem…
Structured programming · 2 marks
5 1 2 3 8 Take a screenshot of the output. Save your program. Copy and paste the screenshot into part 3(c)(iii) in the evidence document. [1] 15 (d) The procedure RemoveData() rem…
Structured programming · 3 marks · official answer ready
(ii) Describe how the modification would be implemented. ..........................................................................................................................…
Structured programming · 2 marks · official answer ready
(i) Write pseudocode for the new module header. ...................................................................................................................................…
Structured programming · 6 marks · official answer ready
2 Take a screenshot of the output(s). Save your program. Copy and paste the screenshot into part 1(c)(ii) in the evidence document. [2] (d) The procedure BubbleSort() uses a bubbl…
Structured programming · 31 marks
(iii) Write program code to amend the main program to call ChooseTrees(). Test your program with the following tree requirements: • a maximum height of 400 cm • a maximum width of…
Structured programming · 6 marks · official answer ready
(a) The procedure ReadWords(): • takes a file name as a parameter • opens the file and reads in the data • stores the main word in the first element in WordArray • stores each ans…
