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

Program Methodology Question Paper

Program Methodology 

Course:Bachelor Of Science In Computer Science

Institution: Karatina University question papers

Exam Year:2012



SCHOOL OF PURE AND APPLIED SCIENCES
PROGRAMMING METHODOLOGY EXAM
TIME: 1 HOUR


QUESTION ONE (20 MARKS)
a. Write a pseudo code and flowchart program to calculate the value of money at the end of each year over a period of 10 years assuming an interest of 12 percent and the initial amount was 10,000. The program should print the year and its corresponding amount in two columns. [10mks].
b. Distinguish between high level programming language and machine level programming language [4mks]
c. Syntax errors occurs when a program is compiled.
i) Define Syntax [2mks]
ii) Differentiate between Syntax error and logical error. [4mks]
QUESTION TWO (20 MARKS)
a. Describe the following as applied in Programming language and provide an example where appropriate:
i) Desk checking
ii) Semantic errors
iii) Compiler
iv) Arithmetic operator
v) The do… while loop [10mks]
b. Draw a flowchart and a pseudo code for a program that determines whether a year is a leap year or not as entered by the user. [6mks]
c. List four advantages of using a flowchart.
QUESTION THREE (20 MARKS)
a. Write short notes on the following:
i) Sequential input/output operators
ii) Operator overloading (Recursion)
iii) Structures
iv) Control structures. [8mks]
b. Draw a flowchart and a pseudo code for a program that inputs the subjects, marks of students and tell him/her the grade that he/she has obtained in the subject. The grading criteria is as follows;
Marks Grade
90 and above A
80-89 B
70-79 C
60-69 D
Below 60 Fail

If the student fails specify that the student will be required to sit for a Supplementary examination. [10mks]
QUESTION FOUR (20 MARKS)
a. Using the switch statement, create a program that prints the name of an input number if it’s a digit. If it’s not it informs the user that the number is not a digit.
Use numbers 0 to 3 in the program [8mks]
b. Describe the importance of program documentation. [6mks]
c. Describe the advantages of structured programming. [6mks]






More Question Papers


Popular Exams



Return to Question Papers