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

Ics 2108: Programming Methodology Question Paper

Ics 2108: Programming Methodology 

Course:Bachelor Of Science In Computing And Information Technology

Institution: Kirinyaga University question papers

Exam Year:2016



KIRINYAGA UNIVERSITY
UNIVERSITY EXAMINATION 2016/2017
YEAR 1 SEMESTER 11 EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE IN COMPUTING AND INFORMATION TECHNOLOGY
ICS 2108:PROGRAMMING METHODOLOGY


INSTRUCTION
Answer question one [compulsory] and any other two

QUESTION ONE
a)Explain the main steps in program development life cycle 5mks
b)Write the pseudo code of a program that reads the age of a person and display adult or minor as compared to the age of 18 years. 3mks
c)Use the switch statement to implement the following table 6mks


score remark
5 Excellent
4 good
3 poor

Any other repeat

d)Explain four principles of oop 8mks
e)Describe the typical structure and working of any four data structures 8mks

QUESTION TWO
a.Differentiate the following terms
i.Syntax and logical errors
ii.Source code and object code
iii.Compiler and interpreter
b) Write switch statement to calculate annul union dues that belongs to class 1:$100 +2% of salary ,class 2 :$50+1% of salary 5mks
c) Distinguish between private,protected and public member of a class 3mks
d)create a class called student with the following members:
?Student id
?Student name
?Student age
?Course
?Get details method
?Display details method 6mks


QUESTION THREE
a.Explain any four advantages of partitioning a program into modules 4mks
b.Using arrays,write a program that reads 10 numbers and displays the numbers in a reverse order 6mks
c.Describe any five operations of the stack data structure 5mks
d.Using a pseudo code explain the push () operation of the stack data structure 5mks

QUESTION FOUR
a)Write a program that reads the average mark of 10 students in a class and then calculates the class average 6mks
b)Write a program that reads 10 numbers and displays all the numbers greater than 10 6mks
c)Write the code for enqueue ( ) operation of the queue data structure 4mks
d)Describe any 2 typical applications of the queue data structure 4mks

QUESTION FIVE
a.Write a program that calculate the number of seconds in month of January. 4mks
b.Use for loop to write a program that displays all the even numbers between x and y 7mks
c.Using a diagram to explain the structure of an node in a singly-linked list 4mks
d.Describe the procedure of inserting a node at end of singly-linked list 5mks






More Question Papers


Popular Exams



Return to Question Papers