Computing 9691 · 11

Programming

9 questions. Open a question to solve it and check the official answer.

Reset
2012 May-June · Paper 23 · Q4(a)

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…

2012 May-June · Paper 23 · Q4(a)(i)

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…

2012 May-June · Paper 23 · Q4(a)(ii)

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…

2012 May-June · Paper 23 · Q4(a)(iii)

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…

2012 May-June · Paper 23 · Q4(b)(i)

Structured programming · 9 marks · official answer ready

(i) State the parameter of the function. [1]

2012 May-June · Paper 23 · Q4(b)(iii)

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 …

2012 May-June · Paper 23 · Q4(f)

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…

2012 May-June · Paper 23 · Q4(f)(ii)

Programming basics · 13 marks

(ii) 7 MOD 4

2012 May-June · Paper 23 · Q4(f)(iii)

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…