Computer Science For First Examination In 2021 9618 · 11

11.3 Structured programming

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

Reset
2024 October-November · Paper 41 · Q1(b)(iii)

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

2024 October-November · Paper 41 · Q1(d)(ii)

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…

2024 October-November · Paper 41 · Q1(d)(iii)

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

2024 October-November · Paper 41 · Q3(d)(ii)

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…

2024 October-November · Paper 41 · Q5(d)(i)

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…

2024 October-November · Paper 41 · Q5(d)(ii)

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…

2024 October-November · Paper 42 · Q3(c)

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…

2024 October-November · Paper 42 · Q7(e)(i)

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…

2024 October-November · Paper 43 · Q1(b)(ii)

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…

2024 October-November · Paper 43 · Q1(b)(iii)

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

2024 October-November · Paper 43 · Q1(d)(ii)

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…

2024 October-November · Paper 43 · Q1(d)(iii)

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

2024 October-November · Paper 43 · Q3(d)(ii)

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…

2024 October-November · Paper 43 · Q5(d)(i)

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…

2024 October-November · Paper 43 · Q5(d)(ii)

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…

2024 May-June · Paper 23 · Q1(a)(ii)

Structured programming · 3 marks · official answer ready

(ii) Describe how the modification would be implemented. ..........................................................................................................................…

2024 May-June · Paper 23 · Q6(b)(i)

Structured programming · 2 marks · official answer ready

(i) Write pseudocode for the new module header. ...................................................................................................................................…

2024 May-June · Paper 41 · Q2(d)(i)

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…

2024 May-June · Paper 41 · Q4(e)(iii)

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…

2024 May-June · Paper 42 · Q1(a)

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…