You are on page 1of 5

NCC EDUCATION INTERNATIONAL DIPLOMA IN COMPUTER STUDIES PROGRAMMING METHODS MARCH 2011 LOCAL EXAMINATION

SECTION A Answer all questions in this section.

SECTION B Answer any two questions in this section.

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

NCC Education Ltd 2011

SECTION A ANSWER ALL QUESTIONS IN THIS SECTION


Marks QUESTION 1 Explain Object in object-oriented programming and give TWO (2) things an object is NOT. 4

QUESTION 2 Given the following array: 64 nos[0] 14 36 28 50 35 56 4

Write the pseudo-code to display the highest number.

QUESTION 3 Explain the difference between Scripting and Multiparadigm languages. 4

QUESTION 4 Give FOUR (4) characteristics of a good specification. 4

QUESTION 5 Describe TWO (2) reports that would be included in a Requirement Analysis Specification. 4

QUESTION 6 What is the Jackson Structure Programming technique? 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.

QUESTIONS CONTINUE ON NEXT PAGE Page 2 of 5


Programming Methods March 2011 Final NCC Education Ltd 2011

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

QUESTIONS CONTINUE ON NEXT PAGE Page 3 of 5


Programming Methods March 2011 Final NCC Education Ltd 2011

SECTION B ANSWER ANY TWO QUESTIONS


QUESTION 1 Marks a) Provide the solution for the iTune new phone registration system: i) Design the record structure for the iTune new phone registration. There are FOUR (4) fields in this record structure. The iPhone user has to provide a SEVEN (7) digit iPhone serial number, username, password and email. ii) Refer to your solution in Question 1a) i) to declare an array with the size of 100 to hold the records. 5 2

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

QUESTIONS CONTINUE ON NEXT PAGE Page 4 of 5


Programming Methods March 2011 Final NCC Education Ltd 2011

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

You might also like