Programming
56 questions. Open a question to solve it and check the official answer.
Programming basics · 19 marks
(i) State the parameters of the function. [2]
Programming basics · 19 marks
(ii) Write the function header in the language you used in part (a). [2]
Structured programming · 18 marks
(iii) State why Gina used a function rather than a procedure. [1]
Constructs · 5 marks · official answer ready
(e) Anna is to write a program to analyse the responses. For Examiner's Use Using a SELECT/CASE construct write the pseudocode to count the number of students for each age group w…
Programming basics · 16 marks
(a) Using a high-level programming language, write the code to perform this task. (Ensure that you use meaningful variable names and lay the code out clearly.) Programming languag…
Programming basics · 16 marks · official answer ready
4 [8] 6 2 Gina is developing her programming skills in string handling. For She is going to input one string. Examiner's Use The string contains letters and zero or more '*' chara…
Programming basics · 16 marks · official answer ready
4 [8] 6 2 Gina is developing her programming skills in string handling. For She is going to input one string. Examiner's Use The string contains letters and zero or more '*' chara…
Programming basics · 19 marks · official answer ready
4 [8] 6 2 Gina is developing her programming skills in string handling. For She is going to input one string. Examiner's Use The string contains letters and zero or more '*' chara…
Structured programming · 9 marks · official answer ready
(i) State the parameter of the function. [1]
Constructs · 15 marks
(iii) State why Gina uses a function rather than a procedure. [1] 8 3 Liliane wants to write a program to play chess. She will represent the board of 8 x 8 For squares, using the …
Programming basics · 13 marks
4 [8] 6 2 Gina is developing her programming skills in string handling. For She is going to input one string. Examiner's Use The string contains letters and zero or more '*' chara…
Programming basics · 13 marks
(ii) 7 MOD 4
Programming basics · 20 marks
(iii) 7 DIV 4 [3] (b) Raul has Y litres of oil to put into drums. Each drum can hold X litres of oil. Write expressions to calculate: (i) the number of full drums [1] (ii) the num…
Programming basics · 4 marks · official answer ready
(i) Explain what is meant by these terms and give a typical application of each. Processor bound Application which is processor bound Input/Output bound Application which is I/O b…
Programming basics · 4 marks · official answer ready
(i) Explain what is meant by these terms and give a typical application of each. Processor bound Application which is processor bound Input/Output bound Application which is I/O b…
Constructs · 3 marks · official answer ready
(b) The following pseudocode uses the linked list to output all country names which are For alphabetically before a requested country. Examiner's Use For example, the user inputs …
