Computing (Modular) 
CP1
June, 2001
(2 Hours)

 

1(a) Describe one desirable feature of a programming language used in a scientific or technical application. [1]
   
(b) Describe one desirable feature of a programming language used in a commercial application [1]
   
(c) Describe one desirable feature of a programming language used in the development of web pages. [1]
   
 
2(a) Explain the difference between a real number and an integer, giving an example of each data type. [2]
   
(b) Explain the difference between a character and a string, giving one example of each data type. [2]
   
(c) Describe the kind of data which is held in a boolean data type. [1]
   
(d) Explain why the record is a useful data structure, giving an example. [2]
   
 
3(a) Many software packages include features such as mail-merge and macros.  
(i) Explain the term mail-merge, giving an example of its use. [2]
 
(ii) Explain the term macro, giving an example of its use. [2]
     
(b) Explain what is meant by the term data portability. [1]
     
 
4.(a) A small sports club keeps a list of its members in alphabetical order of their surnames. Currently a linear search is used to find a member's name.  
(i) Name a search method which would normally be more efficient than a linear search. [1]
   
(ii) State the advantage of this search method over a linear search and explain why it would have this advantage. [2]
   
(b) The sports club has a shop which sells many items of sporting equipment. Data held about each item include:
  • a 4 digit item code
  • monthly sales figures for the item in the last twelve months
 
(i) State the most suitable type of data structure to hold these data, using a diagram to show how it would be used. [2]
   
(ii) These data can sensibly be ordered on several different data items.
Describe one way in which they might be ordered in this case.
[1]
     
 
5.(a) A programming team often writes programs in small clearly documented sections.  
(i) Describe three advantages of writing programs in this way. [3]
   
(ii) The team also use a number of other techniques when developing software. These include the use of self-documenting identifiers and self-documenting code.

Explain each of the following terms, giving an example in each case:

 
I self-documenting identifiers; [2]
   
II self-documenting code. [2]
   
(iii) The team use standard modules. Explain what is meant by the term standard module, and explain how the use of standard modules might help the team. [2]
   
(b) Various types of error often occur during software development.
Describe each of the following types of error, giving an example in each case:
 
(i) syntax error [2]
   
(ii) execution error [2]
   
(c) Explain why careful version control is important when developing computer programs. [1]
   
(d) Explain the difference between systems software and applications software, giving an example in each case. [4]
   
 
6 In a certain college course, each student submits one assignment and takes one examination.  
  To pass the course, the student has to achieve a certain minimum mark in both the assignment and in the examination. If either component has a very low mark, the course is failed. In all other cases the student is allowed to do a special retrieval assignment.  
  The following algorithm is used to output a result for each student.  
 
Line  
1 input assignment_mark;
2 input exam_mark;
3  
4 if (assignment_mark >= 40 AND exam_mark >= 40) then output "Pass"
5   else if (assignment_mark < 20 OR exam_mark < 20) then output "Fail"
6       else output "Retrieval Assignment"
 
(i) State what the output would be if the two inputs are:
I 50 and 45 [1]
II 70 and 18 [1]
III 38 and 38 [1]
IV 38 and 50 [1]
(ii) The word OR is correctly used in line 5 of the algorithm above. If it were replaced by the word AND, the algorithm would not produce the correct output. Give an example to show how this would happen. [1]
 
7(a) A program currently being developed uses both local and global variables.
(i) Describe the difference between local and global variables. [2]
(ii) Describe one advantage of using local variables.
(b) The same program will need to be maintained. Describe two types of maintenance, giving an example of when it might be necessary in each case. [4]
 
8. An insurance company has a call centre, where a number of sales staff answer customers' enquiries by telephone. The staff are able to access information held in a computer system.  
The following diagram shows the situation described so far.

(i) What is the name of this type of diagram? [1]
(ii) Why are diagrams of this type particularly useful? [1]
(iii) What type of object does a rounded rectangle (for instance "Make enquiry") in the above diagram represent? [1]
(iv) What type of object does a shadow rectangle (for instance "Customer") in the above diagram represent? [1]
(v) What type of object does an arrow (for instance "Enquiry") in the above diagram represent? [1]
(vi) Give a suitable name for the object shown as X in the above diagram [1]
 
9(a) Give two reasons why any computer system needs to be well documented. [2]
(b) In the following part-question, additional credit (up to 3 marks) will be given if your answer demonstrates skill in written communication.
A systems analyst is employed to assist a small business which is trying to make its business computer systems more efficient.
The systems analyst carries out a number of tasks, including a requirements analysis, requirements specification and design. Consideration is also given to the human computer interface and the changeover.
  Describe in detail the tasks undertaken by the systems analyst. [8+3]