Computer Science 0478 · 8

Programming

221 questions. Open a question to solve it and check the official answer.

Reset
2023 October-November · Paper 21 · Q6(b)

Programming concepts · 4 marks · official answer ready

(b) State four processes in this algorithm. 1 .....................................................................................................................................…

2023 October-November · Paper 21 · Q6(c)

Programming concepts · 3 marks · official answer ready

(c) Meaningful identifiers have not been used in this algorithm. Suggest suitable meaningful identifiers for: The array: A ........................................................…

2023 October-November · Paper 21 · Q6(d)

Programming concepts · 2 marks · official answer ready

(d) State two other ways the algorithm can be made easier to understand and maintain. 1 ...........................................................................................…

2023 October-November · Paper 21 · Q8(e)

Programming concepts · 2 marks · official answer ready

(e) Describe an improvement that should be made to the requirements for this algorithm. ...........................................................................................…

2023 October-November · Paper 21 · Q10

Arrays · 15 marks · official answer ready

10 Drama students put on a performance of a play for one evening. Seats in a small theatre can be booked for this performance. The theatre has 10 rows of 20 seats. The status of t…

2023 October-November · Paper 22 · Q3(a)

Programming concepts · 4 marks · official answer ready

(a) Draw one line to link each pseudocode statement to the most appropriate pseudocode use. Not all pseudocode uses will be required. Pseudocode statement Pseudocode use CALL Colo…

2023 October-November · Paper 22 · Q3(b)

Arrays · 4 marks · official answer ready

(b) A one‑dimensional (1D) array called Temperatures[] has 25 elements beginning at index 1. It holds values that range between –20 and 100 inclusive. Write a pseudocode algorithm…

2023 October-November · Paper 22 · Q4(b)

Programming concepts · 5 marks · official answer ready

(b) Describe the changes you should make to the corrected algorithm to allow the name of a country to be input and to display only the stored cities from that country. You do not …

2023 October-November · Paper 22 · Q6(b)

Programming concepts · 2 marks · official answer ready

(b) Describe the purpose of the algorithm. ........................................................................................................................................…

2023 October-November · Paper 22 · Q7

Programming concepts · 5 marks · official answer ready

7 The string operation SUBSTRING(Quote, Start, Number) returns a string from Quote beginning at position Start that is Number characters long. The first character in Quote is in p…

2023 October-November · Paper 22 · Q8

Programming · 4 marks · official answer ready

8 Explain why a programmer would use procedures and parameters when writing a program. ............................................................................................…

2023 October-November · Paper 22 · Q11

Arrays · 15 marks · official answer ready

11 A wood flooring company stores the names of up to 100 customers in a one‑dimensional (1D) array Customers[]. A two‑dimensional (2D) array Quotations[] stores details of each cu…

2023 October-November · Paper 23 · Q2

Programming concepts · 1 mark · official answer ready

2 Tick (3) one box to show which library routine returns the remainder of a division. A DIV B MOD C RANDOM D ROUND [1] 3

2023 October-November · Paper 23 · Q3(a)

Programming concepts · 4 marks · official answer ready

3 (a) Four pseudocode descriptions and five pseudocode keywords are shown. Draw one line to link each pseudocode description to the most appropriate pseudocode keyword. Not all ps…

2023 October-November · Paper 23 · Q7

Programming concepts · 4 marks · official answer ready

7 A program uses both local variables and global variables. Describe two differences between local variables and global variables. Difference 1 ...................................…

2023 October-November · Paper 23 · Q8(b)

Programming concepts · 3 marks · official answer ready

(b) Describe how the algorithm should be changed to accept ‘Y’ or ‘y’ for a successfully manufactured part. .......................................................................…

2023 October-November · Paper 23 · Q10

Arrays · 15 marks · official answer ready

10 A weather station takes temperature readings once an hour for a week. These temperatures are stored in a two-dimensional (2D) array Temperatures[] Each column contains 24 readi…

2023 May-June · Paper 11 · Q5(b)

Programming concepts · 6 marks · official answer ready

(b) Describe how the sensor and the microprocessor are used to automatically refill the water bowl. ...............................................................................…

2023 May-June · Paper 13 · Q11(d)

Programming concepts · 1 mark · official answer ready

(d) A signal is sent within the computer to allow multitasking to occur. State the name of this type of signal. ...................................................................…

2023 May-June · Paper 21 · Q2

Programming · 1 mark · official answer ready

2 Tick (ü) one box to show the name of the data structure used to store a collection of data of the same data type. A Array B Constant C Function D Variable [1] 3