BIT1303A  BBIT105  INTRODUCTION TO PROGRAMMING  PROGRAMMING METHODOLOGY.

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
TECHNOLOGY
BIT 1303A/BBIT 105: INTRODUCTION TO PROGRAMMING / PROGRAMMING
METHODOLOGY
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.
i. Pseudocode.
ii. Algorithm.
iii. Programming paradigms.
iv. Structured programming.
4 Marks
b) State TWO advantages of structured programming.
2 Marks
c) State and explain the stages of program development lifecycle(PDLC).
6 Marks
d) Name and explain THREE programming errors.
6 Marks
e) Write a pseudo code for a program that calculate the area and perimeter of a rectangle once given
length and width values.
6 Marks
f) With an aid of a C program explain how conditional operators work.
6 Marks
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
12Marks
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
4 Marks
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
5 Marks

(Visited 121 times, 1 visits today)
Share this:

Written by