NCC Education International Diploma IN Computer Studies Programming Methods March 2012 - Local Examination
NCC Education International Diploma IN Computer Studies Programming Methods March 2012 - Local Examination
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 2012
Final
QUESTION 2 Define the differences between variable length record and fixed variable length record.
QUESTION 5
Given the following numbers in ascending order. 67, 72, 77, 82, 87, 92, 97 Write a FOR loop pseudo-code to display the numbers.
QUESTION 7 Define the difference between user documentation and system documentation.
QUESTION 8 Define the difference between abstract class and concrete class.
QUESTION 9 What is the difference between argument and actual parameters in a subroutine? Give an example.
QUESTION 10
State TWO (2) advantages of using CRC (Class, Responsibility, Collaboration) card. 4 Total 40 Marks
Programming Methods
March 2012
Final
Explain FOUR (4) reasons for the need of robust and reliable software.
8 Total 30 Marks
QUESTION 2 a) Briefly explain THREE (3) pieces of information contained in the Requirements Analysis document. Draw a class diagram (without attributes and operations) to show the relationships involved in the following specification: A university restricts a full time student from enrolling a maximum of 4 subjects, while a part time student can enrol for a maximum of 2 subjects within a semester. The university also restricts the teaching staff to a maximum of 2 subjects within a semester. c) d) 6
b)
10
6 8
Total 30 Marks
Programming Methods
March 2012
Final
QUESTION 3 a) Given the following mobile chair records and field names: Make ArtWood GreeEarth LGYoung i. ii. Price 69.99 89.99 34.99 Colour Purple Red Yellow Flop Yes Yes No
Marks
Declare a chair record structure chairStruc, with Make, Price, Colour and Flop filed. Declare an array which contains 20 of chair records
3 1 6
iii. Base on your answer in Question 3a)ii), using loop, write a pseudo-code to input 20 records into the array and display the average price. b) c) Explain SIX (6) formatting techniques to consistently format the source code. State EIGHT (8) factors to be considered in problem tracking after implementation.
12 8 Total 30 Marks
Programming Methods
March 2012
Final