8.1 Programming concepts
223 questions in this subtopic. Open a question to solve it and check the official answer.
Programming concepts · 4 marks · official answer ready
(a) Write an algorithm in pseudocode to total the numbers input and to output the total. You do not need to validate the input. ...................................................…
Programming concepts · 4 marks · official answer ready
(b) Write an algorithm in pseudocode to count and output the number of input values that are greater than 100. You do not need to validate the input. .............................…
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…
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 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. .......................................................................…
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 · 4 marks · official answer ready
4 Explain the purpose of the library routines DIV and ROUND DIV ...................................................................................................................…
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…
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 ...................................................…
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…
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. .......................................................…
Programming concepts · 3 marks · official answer ready
(a) Describe the validation checks that the programmer would need to use. .........................................................................................................…
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. ..........................…
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]
Programming concepts · 8 marks · official answer ready
(a) Give the line number(s) for the statements showing: Totalling .................................................................................................................…
