Computer Science For First Examination In 2021 9618 · 11

11.2 Constructs

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

Reset
2025 October-November · Paper 11 · Q10(b)

Constructs · 1 mark · official answer ready

(b) State why a 3D printer needs a buffer. ........................................................................................................................................…

2025 October-November · Paper 12 · Q8(a)(i)

Constructs · 2 marks · official answer ready

(i) Give two benefits of storing data using cloud computing. 1 ....................................................................................................................…

2025 October-November · Paper 13 · Q8(d)

Constructs · 3 marks · official answer ready

(d) Memory management is one key management task performed by an OS. Give three other key management tasks that are performed by an OS. 1 .........................................…

2025 October-November · Paper 22 · Q1(a)

Constructs · 4 marks · official answer ready

1 (a) The table contains pseudocode examples. Each example may contain statements that relate to one or more of: • selection • iteration (repetition) • subroutines (procedures or …

2025 October-November · Paper 22 · Q8(d)

Constructs · 2 marks · official answer ready

(d) It is decided to extend the program so that a new module Reminder() will send an email to the student three days before the book is due to be returned. Outline the changes tha…

2025 October-November · Paper 23 · Q8(c)(iii)

Constructs · 2 marks · official answer ready

(iii) One way of storing the data items in a text file is to store each data item on a separate line. Identify one benefit and one drawback of this way of storing the data. Benefi…

2025 October-November · Paper 31 · Q9(a)(i)

Constructs · 5 marks · official answer ready

(i) Complete the pseudocode for the function to remove a data item from the stack. FUNCTION Pop() .................................................................................…

2025 October-November · Paper 31 · Q11(b)

Constructs · 1 mark · official answer ready

(b) The address 632 contains the value 45. State the value of Answer after the code described in part (a) has executed. ...........................................................…

2025 October-November · Paper 32 · Q12(a)(i)

Constructs · 4 marks · official answer ready

(i) Complete the pseudocode for the procedure to add a data item onto the stack. PROCEDURE Push(...................................................................................…

2025 October-November · Paper 41 · Q1(c)

Constructs · 4 marks · official answer ready

(c) The function Pop() returns the next integer in the stack and updates the pointer as appropriate. If there is no data in the stack, the function returns the value –999 Write pr…

2025 October-November · Paper 41 · Q1(d)

Constructs · 4 marks · official answer ready

(d) The main program generates 40 random integers between 0 and 1000 (inclusive) and attempts to insert each one into the stack using the appropriate function. If the return value…

2025 October-November · Paper 41 · Q1(e)

Constructs · 4 marks · official answer ready

(e) The procedure FindValues(): • pops each integer from the stack until the stack is empty • finds and outputs the largest number that was in the stack in an appropriate message …

2025 October-November · Paper 42 · Q2(c)

Constructs · 5 marks · official answer ready

(c) The function BubbleSort(): • takes an integer array as a parameter • sorts the data into ascending order using a bubble sort • returns the sorted array. The function needs to …

2025 October-November · Paper 42 · Q3(e)(ii)

Constructs · 1 mark · official answer ready

(ii) Test your program. Take a screenshot that shows all of the content stored in the file Tree.txt In this screenshot you need to make sure the filename is visible. Save your pro…

2025 October-November · Paper 43 · Q2(d)

Constructs · 5 marks · official answer ready

2 A program reads string data from a text file into a linear queue and then compresses the data. The queue is created using the global 1D array Queue. The queue can store up to 10…

2025 October-November · Paper 43 · Q9(f)(iv)

Constructs · 21 marks

(iv) Test your program. Take a screenshot of the output(s). Save your program. Copy and paste the screenshot(s) into part 3(b)(iv) in the evidence document. [1] 14 15 16 reasonabl…

2025 May-June · Paper 23 · Q5(b)

Constructs · 24 marks

(b) Once the program has been completed, it is tested using the walkthrough method. Describe the walkthrough method and explain how it can be used to identify errors. ............…

2025 May-June · Paper 23 · Q7(a)(ii)

Constructs · 1 mark · official answer ready

(ii) The programmer decides to amend the UpdateVisit() module so that loyalty points are further increased if the customer visits the coffee shop the same day of the week as their…

2025 May-June · Paper 31 · Q1(b)

Constructs · 0 marks · official answer ready

(b) Write pseudocode statements to declare the composite data type, Booking, to hold data about taxi bookings. The data required includes: • booking number (any combination of let…

2025 May-June · Paper 31 · Q6

Constructs · 4 marks · official answer ready

6 Describe the process of executing a program using an interpreter. ...............................................................................................................…