Programming
9 questions. Open a question to solve it and check the official answer.
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…
