1. The college which have a student management system wishes to develop a new student
management system. As a systems analyst you are required to make some
suggestions.
(b) Explain how would you go about gathering information on your new system and the
purpose of each activity? [8]
(c) Before a new system is developed, the systems analyst prepares the system
specifications.
(ii) Identify 2 problems which can arise from system specifications. [2]
(d) The management has decided to go ahead with the development of the new system.
In the course of development, the systems analyst, when documenting the system,
can use a number of different diagrammatic methods to support what is written.
Give three examples of diagrams that might be found in the technical documentation
and explain why they are included. [6]
(i) inheritance,
(ii) polymorphism
4. A supermarket sells a large number of different items. Each item is labeled with a unique
bar-code number. The data relating to these stock items are stored on disk using an
index sequential file organization. The indexed file consists of two sub-files. The first
sub-file is the index and the second a sequential file. The index stores the bar-codes
number and the respective relative addresses of the records. To access a record directly,
the index is searched and the result of the search indicates whether the record exists
and hence accessible.
(a) Suggest two possible uses of such an index sequential file. In each case, give one
reason why it is an appropriate choice of file organization. [4]
(b) At least two methods may be used to search the index. Identify any two of these
methods. Describe, by way of an example, the more efficient method. State any
assumption that you might make. [6]
(c) The bar-code number is made up of 6 digits - the leading digit being non-zero and the
last digit a check digit.
(i) What is the aim of including a check digit in the bar-codes number? [1]
(ii) Suggest an algorithm that would generate a check digit for a given bar-codes
number. [6]
(d) The personnel records for those employees who work in the shop are stored in a
linked list in alphabetic order of surname.
(ii) Using a second diagram, show how Thor would be added to the list. [6]
5. (a) Describe an appropriate application for each of the following input/output devices. In
each case, explain why the application is appropriate.
(b) With respect to a computer, suggest three hardware changes that would increase the
speed of execution of programs. [3]
TPJC 2007 Computing Prelim Paper 9754/1 Page 3 of 4
(b) In a particular computer system floating-point numbers are held in four 8-bit bytes.
The user has the option of storing numbers
using two bytes of the mantissa and two bytes for the exponent
or
using three bytes for the mantissa and one byte for the exponent.
Explain how these two methods differ with respect to
(i) accuracy,
(c) Using the two methods outlined in (b), write down for each method in binary, the
7. A prime number is any whole number (integer) which has only two factors, 1 and itself.
(That is the number is only divisible by 1 and itself, leaving no remainder.)
(a) A mathematician wishes to print out all the prime numbers up to 1000, and also print
the total number of prime numbers up to 1000. Write an algorithm which will allow the
mathematician to do this. [7]
(b) Explain how your algorithm will need to be changed if the mathematician wants to
print out the first 1000 prime numbers. [4]
TPJC 2007 Computing Prelim Paper 9754/1 Page 4 of 4
8. (a) The following diagrams show the syntax of a statement, a variable, a letter and an
operator in a particular language. Write the below syntax diagrams in Backus Naur
Form (BNF). [6]
Statement
Variable
Letter
Letter
Letter
Operator
A
+
B
–
C
*
D
/
E
(b) The programmer uses the interpreter to develop his program and when the program
is finally completed and tested, the program is compiled. Give some reasons why you
think the program is developed in this way. [4]
(e) Suggest a problem that can be solved by use of a declarative programming language,
justifying your answer. [2]