2009 Paper1
2009 Paper1
COMPUTING 9195/1
PAPER 1
Additional materials:
Answer paper
INSTRUCTIONS TO CANDIDATES
Write your name, Centre number and candidate number in the spaces provided on the answer
paper/answer booklet.
If you use more than one sheet of paper, fasten the sheets together.
\.
\
\
1 (a) Explain the difference between analogue and digital signals. [2]
2 A teacher would like to store data about students in his computing class. Each
student has a first name, a middle name and a surname. In addition, the teacher
would like to store, for each student, the marks for the five assignments they
have written during the course of the term.
(a) Identify a suitable data structure for storing the five assignments for one
particular student. Justify. [2]
(b) Identify a suitable data structure for storing all the data about the students.
Justify. . [3]
(i) interpreter,
(b) Operating systems are difficult and complex to design because of the
many conflicting demands made by programs on it. Describe any three
such demands. [3]
(ii) . Explain why protocol is needed for a Wide Area Network. [3]
919511 N26@9
3
The details in the problem statement above are not clear. Give any three
details that need to be specified so as to make the problem statement
precise. [3]
7 A computer language has variable names which must conform to the syntax
shown below.
(i) 5thyears
(ii) class6a
(iii) st729
[2]
(b) For each incorrect variable name in (a) explain why it is incorrect. [4]
9 J 9511 N2009
[Turn over
4
(ii) Find k, the largest element between location 1'and location (i- 1).
(iii) If k is larger than the element at, b, swap the two, otherwise leave as they are.
(iv) i := i- 1.
For the initial array given fill in the elements of the array for each value of i at
the end of step (iii).
~\l~ \...~~
\.0'"
Initial Array .8 2 1 4 6 "
j 7
i= 7
i= 6
i= 5
i= 4
i= 3
I
i= 2
,,/
i= 1 y, .•.
, _ 1
[7]
9195/1 N2009
5
0 l~t 4 2
2
~
3L<,
25 '
6
NIL
NIL
NIL
4-
/
3 12, 5 NIL
.~
/ -3
4 10 NIL J
/
5 2. NIL NIL
s
6 29. NIL NIL
9195/1 N2009
[Turn over
b
(a) Identify the use of any two registers other than the input and output
registers in the program segment above. [4]
(b) Using a trace table to follow the contents of the registers used in the
program at the execution of each line, dry run the program with the
following numbers as input: 14,23, O. [8]
919511 N2009