Question 4(f)(iii) 2012 · May-June · Paper 23 · 20 marks
Question 4
Part (f)
(iii)
Question 4
Question 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 '*' characters in any positions. Gina wants to remove all the '*'s and output the letters in their original order. For example:
- input “com*put**er*”, the output is “computer”
- input “hardware”, the output is “hardware”
Liliane's next task is to indicate that there are pieces occupying the first two rows of the For 8 x 8 board. Examiner's Use Each square in rows 1 and 2 will be given the value 1.
Draw a flowchart that shows how to do this, using loop structures and the variable names previously used (Board, RowNo, ColumnNo).
Question 11
4 Raul writes software for a palm oil processing plant. He wants to check his understanding of For different arithmetic operators for a problem that he has to solve. Examiner's Use
Part (a)
Evaluate the following expressions for Raul.
(iii)
7 DIV 4
Part (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
(ii)
the number of litres of oil left over
Part (c)
Explain the difference between the operators / and DIV.
Question 12
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Why this question appears here
82% assigned-topic match · Programming › Programming basics
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9691_s12_qp_23.pdf
