Professional Documents
Culture Documents
Time: 2 hours
Clearly cross out surplus answers. Failure to do this in Section B will result in only the first two answers being marked.
Any reference material brought into the examination room must be handed to the invigilator before the start of the examination.
Programming Methods
March 2011
Final
QUESTION 5 Describe TWO (2) reports that would be included in a Requirement Analysis Specification. 4
QUESTION 7 Given test data 45, 132, 74, 23 and 59, sort the test data in ascending order using straight selection sort. Provide the answer in a table format and show the elements in the array at each pass. 4
QUESTION 8 Define the difference between deployment and statechart diagrams in UML.
Marks QUESTION 9 Explain the difference between a program library and a dynamic link library. 4
QUESTION 10 Give TWO (2) advantages of using a report generator. 4 Total 40 Marks
iii) Write the pseudocode for the iTune registration process. The registration system will prompt the
user to enter a valid serial number before entering additional details. Each user is given three attempts to provide a valid iPhone serial number. If the user did not enter a valid serial number after the third attempt, the system will display Sorry unable to register error message. If the user provides a correct serial number within three attempts the system will proceed to prompt the user to input additional details and send a confirmation email to the user. b) c) Give FOUR (4) disadvantages of using a hierarchy database. List SIX (6) steps in the spiral model.
8 6 Total 30 Marks
QUESTION 2 a) Suggest FOUR (4) formatting techniques use to emphasise the logical organisation in program coding. Describe the information that should be included in test documentation. A system was developed to store the customers name, company name and telephone number. This system allows users to search, modify, add and update their customers records. Draw a class diagram for the system. Draw a collaboration diagram for an ATM withdrawal process and show how a customer withdraws money from the ATM machine. 8
b) c)
8 5
d)
Total 30 Marks
Marks QUESTION 3 a) Write the Binary Search algorithm to search an array for records based on the id field. Note: assume there are 10 records in the array
10
b)
List and explain the FIVE (5) stages of Software Development Lifecycle.
10
c)
List FIVE (5) key questions to ask when evaluating programming languages for use in a project.
10
Total 30 Marks
Page 5 of 5
Programming Methods March 2011 Final NCC Education Ltd 2011