Section A (Answer all the questions in this section. Each question carries 30 marks)
1.
(a)i. Define Software Construction. (2.5 marks)
ii. Briefly describe its importance in Software Engineering. (5 marks)
(b)Briefly discuss the following Software Engineering activities, and also explain how each is related to Software Construction: (10 marks)
i. Coding and Debugging
ii. Construction Planning
iii. Integration Testing
iv. Problem Definition
v. Requirements Analysis
(c)Give 3 terms that are sometimes used in place of Software Construction. Describe how suitable they are as synonyms for Software Construction and explain why Software Construction is more suitable. (7.5 marks)
(d)What is Software Architecture? What is the relationship between Software Architecture and Software Construction? (5 marks)
2.
(a)As a professional software engineer, list and briefly explain 3 important external and 2 internal characteristics (3 marks) of software quality that you should be aware of to write code that is consistent with good software construction practice. (7.5 marks)
Carefully study the code below and answer (b) and (c):
OpenFile( inputFile, start )
If ( start = Status_Error ) Then
ERRORTYPE = FileOpenError
Else
readFile( inputFile, fileData, start )
If ( start = Status_Success ) Then
SummarizeFileData( fileData, sum, start )
If ( start = Status_Error ) Then
ERRORTYPE = ErrorType_DataSummaryError
Else
PrintSum( sum )
SaveSummaryData( sum, start )
If ( start = Status_Error ) Then
ERRORTYPE = ErrorType_SummarySaveError
Else
UpdateAllAccounts()
eraseUndoFile()
ERRORTYPE = ErrorType_None
End If
End If
Else
ERRORTYPE = ErrorType_FileReadError
End If
End If
(b)i. What, in your opinion, is the main task that this code segment is doing? (2 marks)
ii. What approach is it using? (3 marks)
(c)Point out the parts of the code that are not consistent with good software construction practice, clearly explaining your reasons. (Hint: there are at least 5.) (10 marks)
(d)Rewrite the code so that you address the issues pointed out in (c) above. (7.5 marks)
Section B (Answer any two (2) questions in this section. Each question carries 20 marks)
3.
(a)Briefly discuss five desirable design characteristics. (5 marks)
(b)What are the five levels of design? Briefly describe them. (5 marks)
(c)i. What is the difference between design heuristics and design practices? (2.5 marks)
ii. Briefly describe three design heuristics and two design practices. (7.5 marks)
4.
(a)i. What do you understand by an Abstract Data Type (ADT)? (1.5 marks)
ii. List and briefly explain 5 benefits of using ADTs. (5 marks)
(b)Give three examples of ADTs that may be useful when considering educational software. Also provide at least 3 operations on each ADT. (6 marks)
(c)i. List and describe three Fundamental Data Types (FDT) showing the major differences amongst them. (3 marks)
ii. For each FDT, briefly explain 2 tips/guidelines on its proper usage to avoid programming pitfalls. (4.5 marks)
5.
(a)Briefly explain five benefits that routines offer in Software Construction. (5 marks)
(b)i. Why is it important to have good variable names? (2 marks)
ii. Give three benefits of using naming conventions during Software Construction. (6 marks)
(c)Briefly illustrate the advantages of table-driven methods by writing some code (in any suitable language) for a function CalculateAllowance(gradeLevel, monthNo) that calculates the hazard allowance for a given month for an employee given his/her grade level and the month. Assume that the allowance is based on the grade level of an employee. (7 marks)
6.
(a)With the help of diagrams, briefly describe how to create classes and routines. (6 marks)
(b)What are the major steps of the Pseudocode Programming Process (PPP)? (6 marks)
(c)Consider any simple proposed system such as the one you did in your assignment. Illustrate how the PPP system works by showing the steps of the PPP including some of the programming code generated. (8 marks)

