Free Web Site - Free Web Space and Site Hosting - Web Hosting - Internet Store and Ecommerce Solution Provider - High Speed Internet
Search the Web

August 1999
CP103 : COMPUTER PROGRAMMING

SECTION A [40 Marks]

Click here to access other sections
Section B
Front Cover

Click to access
SUGGESTED SOLUTIONS
for Section A

 

Answer ALL questions in this section
Write your answers on this Question Paper

 

1. State two design tools that are used in :

(a) system design

(b) program design

 

 

[2]

[2]

2. (a) List the four main activities involved in pre-implementation.

(b) List the two main activities involved in post-implementation.

 

[4]

[2]

3.

(a) Who prepares a program specification?

(b) Who should carry out a system review at the end of the SDLC? Justify your answer.

 

[1]

[2]

4. Program development tools can be grouped into three categories: design tools, development tools and debugging tools. Three program development tools are described below. Identify each one, and decide which category it comes from :

 

(a) This tool allows a programmer to monitor the execution of a program interrupting whenever desired, so as to enable the contents of storage locations to be examined or changed.

 

[2]
(b) This tool is used to help design screen layouts for on-line systems, which it can then convert into code.

 

[2]
(c) This tool can be used to support prototyping. The tool user specifies the various inputs needed and their valid ranges, and the tool will produce the data validation checks.

 

[2]
5. For each of the following statements, indicate whether they are True or False:

 

[5]
(a) Dry run is one method of off-line testing.

 

[1]
(b) During software reviews, the programmer is also being evaluated.

 

[1]
(c) The factors that affect the software quality can be categorized as either tangible or intangible factors.

 

[1]
(d) All programs must always achieve absolute correctness during program testing.

 

[1]
(e) Transaction files and direct-access are two types of Data Processing Files.

 

[1]
6. Complete the following sentences by choosing words from the following list:

 

JCL C++ Forth Algol Cobol
Assembly C Fortran Foxpro RPG
Lisp Ada SQL Basic DOS

 

(a) ________________ is a suitable language for teaching programming to beginners.

(b) ________________ was created for the UNIX system.

(c) In commercial areas, ________________ is used as it offers strong file-handling capabilities.

(d) Many AI applications are written in ________________.

(e) ________________ is an example of an object-oriented language.

(f) ________________ is used to instruct an OS on job requirements.

 

[6]
7. At InfoExperts Computer School, students are awarded a diploma if they pass both coursework and examination. If they fail the coursework, they are categorized under 'reunit' status. If the pass the coursework but fail the examination, they are categorized under 'refer' status.

Complete the following decision table based on this information.

  R1 R2 R3 R4
Passed coursework
Passed examination
       
Refer
Reunit
Diploma
       

 

[4]
8. For each of the following programming errors, state whether they are syntax, semantic,logic or runtime errors:

 

(a) num = num + 1, where num is a constant.

 

[1]
(b) reading from a file that is not open.

 

[1]
(c) a loop that executes an extra step.

 

[1]
(d) passing the wrong parameter to a procedure.

 

[1]
(e) including a space in a variable name declaration.

 

[1]
(f) a user inputs a character to a variable that is expecting an integer.

 

[1]