Programming
221 questions. Open a question to solve it and check the official answer.
Programming concepts · 4 marks · official answer ready
(b) State four processes in this algorithm. 1 .....................................................................................................................................…
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 ........................................................…
Programming concepts · 2 marks · official answer ready
(d) State two other ways the algorithm can be made easier to understand and maintain. 1 ...........................................................................................…
Programming concepts · 2 marks · official answer ready
(e) Describe an improvement that should be made to the requirements for this algorithm. ...........................................................................................…
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…
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…
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…
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 …
Programming concepts · 2 marks · official answer ready
(b) Describe the purpose of the algorithm. ........................................................................................................................................…
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…
Programming · 4 marks · official answer ready
8 Explain why a programmer would use procedures and parameters when writing a program. ............................................................................................…
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…
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
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…
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 ...................................…
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. .......................................................................…
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…
Programming concepts · 6 marks · official answer ready
(b) Describe how the sensor and the microprocessor are used to automatically refill the water bowl. ...............................................................................…
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. ...................................................................…
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
