Sunteți pe pagina 1din 3

NCC EDUCATION INTERNATIONAL DIPLOMA IN COMPUTER STUDIES PROGRAMMING METHODS JUNE 2012 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

June 2012

Final

NCC Education Ltd 2012

SECTION A ANSWER ALL QUESTIONS IN THIS SECTION


Marks QUESTION 1 Briefly explain the differences between Third Generation Language (3GL) and Fourth Generation Language (4GL). QUESTION 2 Explain with an example the difference between and and or logic operation. QUESTION 3 State the difference between queue and stack. QUESTION 4 Explain the difference between a compiler and interpreter? 4 4 4 4

QUESTION 5 State any TWO (2) Web programming languages and TWO (2) Object-Oriented programming languages. QUESTION 6 Give TWO (2) limitations of File Management Systems. QUESTION 7 Define the difference between public and private methods. 4 4 4

QUESTION 8 Rewrite the following CASE statements using IF..ELSE selection. DO CASE choice CASE choice = C Display Computing School CASE choice = E Display Engineering School ENDCASE
QUESTION 9 Explain with a diagram how a data structure diagram can be used to demonstrate sequence and iteration. QUESTION 10 What is the difference between a data manipulation language and a data description language? 4 Total 40 Marks
QUESTIONS CONTINUE ON NEXT PAGE Page 2 of 3
Programming Methods June 2012 Final NCC Education Ltd 2012

SECTION B ANSWER ANY TWO QUESTIONS IN THIS SECTION


QUESTION 11 a) b) Give FIVE (5) recommended commenting techniques for coding. Write a pseudo-code to solve the following problem: Your program needs to calculate the cost of painting ten wooden boxes (same size), given the dimensions of a box in feet and the cost of the paint as pence per square feet (80 pence per square feet). The result should be printed out in pound and pence. You can assume that the dimensions of the box are an exact number (integer) of feet. Your program should display the message invalid entry if the length and the width are the same. CostOfPaint = length * width * cost (for a box) c) You are going to implement an e-learning system for a university. Write down FOUR (4) actors that will interact with the system. Give NINE (9) reasons why software may contain bugs. 4 Marks 10 7

d)

9 Total 30 Marks

QUESTION 12

a) b) c)

State and briefly explain any FOUR (4) types of UML diagram. Name and draw the UML notation for TWO (2) use case elements. Draw a collaboration diagram for following specification: The student needs to log into the student system to enrol for modules at the beginning of every semester. After registration, the system will display a list of registered module names and their corresponding module codes

8 4 10

d)

List FOUR (4) key questions to ask when evaluating languages for use in a project.

8
Total 30 Marks

QUESTION 13 a) b) c) d) List and explain the FIVE (5) stages of the Software Development Lifecycle. Briefly explain the THREE (3) specifications included in the System Documentation. Write the Bubble sort algorithm to sort TEN (10) integers. Identify FOUR (4) record fields with appropriate field type available in a customer table. 10 6 10 4 Total 30 Marks

END OF PAPER

Page 3 of 3
Programming Methods June 2012 Final NCC Education Ltd 2012

S-ar putea să vă placă și