Computer Science 0478 · 8

8.1 Programming concepts

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

Reset
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 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 · 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 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 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 · Q4

Programming concepts · 4 marks · official answer ready

4 Explain the purpose of the library routines DIV and ROUND DIV ...................................................................................................................…

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

Programming concepts · 4 marks · official answer ready

(b) Describe how you could change the corrected algorithm to record and output how many positive numbers have been included in the final total. You do not need to rewrite the algo…

2023 May-June · Paper 21 · Q6

Programming concepts · 4 marks · official answer ready

6 State two features that should be included to create a maintainable program. Give a reason why each feature should be used. 1 ...................................................…

2023 May-June · Paper 21 · Q8(a)

Programming concepts · 3 marks · official answer ready

8 The function LENGTH(Phrase) calculates the length of a string Phrase (a) Write the pseudocode statements to: • store the string "The beginning is the most important part" in Phr…

2023 May-June · Paper 21 · Q8(b)

Programming concepts · 2 marks · official answer ready

8 The function LENGTH(Phrase) calculates the length of a string Phrase (b) Write the output your pseudocode should produce. .......................................................…

2023 May-June · Paper 22 · Q4(a)

Programming concepts · 3 marks · official answer ready

(a) Describe the validation checks that the programmer would need to use. .........................................................................................................…

2023 May-June · Paper 22 · Q4(b)(ii)

Programming concepts · 3 marks · official answer ready

(ii) The input value needs to be stored in the variable Measurement Write pseudocode to perform the double entry check until a successful input is made. ..........................…

2023 May-June · Paper 22 · Q5

Programming concepts · 5 marks · official answer ready

5 Circle five file-handling operations. calculate close count create input open output print read sort search test total write [5]