UNIVERSITY EXAMINATIONS: 2018/2019
EXAMINATION FOR THE DEGREE OF BACHELOR OF SCIENCE IN SOFTWARE
DEVELOPMENT/ BACHELOR OF SCIENCE IN APPLIED COMPUTING/ BACHELOR OF
SCIENCE IN INFORMATION SECURITY AND FOENSICS/BACHELOR OF SCIENCE IN
INFORMATION TECHNOLOGY/ BACHELOR OF BUSINESS INFORMATION
BIT 1303A/BBIT 105: INTRODUCTION TO PROGRAMMING / PROGRAMMING
FULL TIME/PART TIME/DISTANCE LEARNING
DATE: APRIL, 2019 TIME: 2 HOURS
INSTRUCTIONS: Answer Question One & ANY OTHER TWO questions.
QUESTION ONE [30 MARKS]
a) Define the following terms as used in programming methodology.
iii. Programming paradigms.
iv. Structured programming.
b) State TWO advantages of structured programming.
c) State and explain the stages of program development lifecycle(PDLC).
d) Name and explain THREE programming errors.
e) Write a pseudo code for a program that calculate the area and perimeter of a rectangle once given
length and width values.
f) With an aid of a C program explain how conditional operators work.
QUESTION TWO [20 MARKS]
a) Using examples, discuss various types of operators in programming 8Marks
b) Write a program that allows entering of students Marks and then determining the grade category
QUESTION THREE [20 MARKS]
a) Write a program that use factorial function in a recursive form 8Marks
b) Write a program that reads the noon day temperature for each day of a month and then reports
the month’s average temperature, as well as its hottest and coolest days. 8Marks
c) Discuss two types of variables 4Marks
QUESTION FOUR [20 MARKS]
a) Write a program that demonstrate the bubble sort 8Marks
b) Using Nested ‘for’ statements, write a program to Calculate the averages of several different lists
of number 8Marks
c) Discuss two classifications of functions 4Marks
QUESTION FIVE [20 MARKS]
a) Write a program to find the largest element in an array 5 Marks
b) Write a simple program that uses a for statement to print the numbers 1 through 20
c) Write a C program to reverse a string using pointers 6 Marks
d) Using integer and modulus operator write a c program to find out sum of digit of given number