Professional Documents
Culture Documents
1. A computer system consists of several hardware devices and software components. The
Keyboard, mouse and printer are all peripheral devices connected to the system unit. The system unit
comprises a Central Processing Unit (CPU) and a component, (A) that holds the data and programs
that are currently being used. The CPU in turn consists of two components. One component, (B),
directs the internal operations within the CPU; and the other component, (C) is responsible for the
manipulation of the data. In addition, there is another storage component. (D) Which stores data and
programs that are not currently being used by the CPU.
State the component that performs EACH of the functions named A to D and underlined above.
(4 marks)
Total marks 4
2. Match EACH characteristic, listed A to H below with MOST appropriate device. Write the
Letter (A, B, etc.) to represent the characteristic and next to EACH letter write the name of the device
that matches it.
CHARACTERISTIC DEVICE
4. (a) List THREE ways in which a teacher can use computers in the classroom. (3 marks)
(b) Suggest TWO reasons why computers mat NOT be used in the classroom. (2 marks)
(c) State TWO advantages of using computers in the classroom. (2 marks)
Total marks 7
-1–
1999 CXC Past Papers
7. (a) In order to secure its data, a company uses the following method for encrypting text:
A letter is replaced by the letter five letters later in alphabetical order. For example, the
letter “A” is replaced by “F”, “B” is replaced by “G”, and so on. Note that the letter “A”
is considered to follow the letter “Z”.
8. Programs are written with the general purpose of solving problems. However, it is unlikely that a
program will run completely error-free on the first attempt. The process whereby a program is checked
to ensure that it dose what it was designed for is important in the development of the program. There
are two main types of errors that can occur: one type of error occurs when the programmer fails to
properly think through the solution to the problem, and the other occurs when the programmer does not
adequately know the rules of the programming language. It is good practice to perform a manual trace
on the program, using appropriately selected input values, which checks each segment of the program.
State the proper technical term for EACH of the underlined phrases. (5 marks)
Suggested Response
(A) Testing
(B) Logic errors
(C) Syntax errors
(D) Dry run (or Structured walkthrough)
(E) Test data
Total marks 5
9. (a) DIFFERENCE = 0
Input A, B
If A <= B Then
DIFFERENCE = A – B
Else
DIFFERENCE = B – A
Endif
-2–
1999 CXC Past Papers
Print DIFFERENCE
What is printed by the algorithm above if the input values are the following?
(i) 20 30 (1 mark )
(ii) 100 100 (1 mark )
(iii) 50 10 (1 mark )
Suggested Response
Note: Trace table used to determine the values printed by the algorithm
(b) Write a structured algorithm to prompts a user to input two values which are then stored
in A and B. The algorithm must divide A by B and print the result. The algorithm must
keep prompting for the second number as long as the user enters 0 (zero) for the second
number. (7 marks)
Total marks 10
10. (i) Write a structured algorithm which prompts a user to enter an integer value which is then
stored in a variable N. The algorithm must the print each integer from 1 to N and its
corresponding square. Each output line must show the integer and its square. You may
assume that the user would enter an integer value. (5 marks)
Suggested Response
(ii) Modify the algorithm in (i) to determine the sum of all the squares. Print this sum if it is
less than or equal to 1000. Otherwise, print the following message:
-3–
1999 CXC Past Papers
(5 marks)
Total marks 10
Overall Mark 75
END OF TEST
-4–