Get premium membership and access revision papers, questions with answers as well as video lessons.

Comp 003: Introduction To Programming And Algorithms Question Paper

Comp 003: Introduction To Programming And Algorithms 

Course:Certificate In Computer Science

Institution: Chuka University question papers

Exam Year:2013






CHUKA UNIVERSITY




UNIVERSITY EXAMINATIONS

FIRST YEAR EXAMINATION FOR THE AWARD OF
CERTIFICATE IN COMPUTER SCIENCE

COMP 003: INTRODUCTION TO PROGRAMMING AND ALGORITHMS

STREAM: CERT COMP (SCI) Y1S1 TIME: 2 HOURS

DAY/DATE: THURSDAY 8/8/2013 8.30 A.M – 10.30 A.M.

INSTRUCTIONS:

1. Answer Questions ONE and any other TWO Questions.
2. This is a CLOSED BOOK exam. No reference materials are allowed in the exam room.
3. No mobile phone is allowed in the exam room ( make sure to switch it off and leave it with the invigilator if you carried one)
4. Write your answers legibly and use your time wisely.

Question ONE-Compulsory- (30 Marks)

1. (a) Define the following terms (6mks)

i. Programming language
ii. Algorithm
iii. program
b. Explain two types of programming errors (4mks)

c. state Four advantages of High level language (4mks)

d. List Four features of programming languages (4mks)

e. Differentiate the following terms
i. pseudo code and flowchart (4mks)

ii. translators and compilers (4mks)

f. explain TWO major types of program testing (4mks)
Question TWO - (20 marks)

a. With an aid of a diagram explain the four major program execution stages (12mks)

b. Explain four major principles of a good programming style (8mks)


Question THREE-(20 MARKS)

a. An algorithm is a tool that assists in programming. Explain four considerations in the design of an algorithm (8mks)

b. Design a pseudocode that accepts the two sides of a rectangle; calculate the area and the perimeter. The program should display the area and the perimeter. (6mks)

c. Program control structures dictate the flow and execution of the program. explain the following types of control structures (6mks)

i. Sequence
ii. Selection
iii. Iteration

QUESTION FOUR (20MARKS)

a. explain the five major steps involved in developing an efficient program (15mks)

b. List to reasons for program documentation (2mks)

c. Identify the data types that can be assigned to the following variables (3mks)
a. marks
b. sex
c. date

QUESTION FIVE (20MARKS)

a.
i. Explain three levels of programming languages (9mks)

ii. State three disadvantages of machine language (3mks)


b. Develop a flow chart that accepts marks scored by a student in three units; calculate the total marks and average marks. Depending on average marks the grades are assigned as follows:

Grade average marks
A 80 100
B 65 - 80
C 50 – 65
Refer below 50 (8mks)
________________________________________________________________________






More Question Papers


Popular Exams



Return to Question Papers