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

Bbit 121:Introduction To Programming 1St Trimester 2014 Question Paper

Bbit 121:Introduction To Programming 1St Trimester 2014 

Course:Bachelor Of Business Information Technology

Institution: Kenya Methodist University question papers

Exam Year:2014



INTRODUCTION TO PROGRAMMING (CISY 110) (BBIT 121) 1ST TRIMESTER 2014
KENYA METHODIST UNIVERSITY

END OF 1'ST 'TRIMESTER 2014 (DAY) EXAMINATION

FACULTY : COMPUTING & INFORMATICS
DEPARTMENT : COMPUTER SCIENCE AND BUSINESS
INFORMATION
UNIT CODE : CISY 110/BBIT 121
UNIT TITLE : INTRODUCTION TO PROGRAMMING
TIME : 2 HOURS


INSTRUCTIONS

Answer question one and any other two questions

Question One (30 Marks) compulsory

Briefly describe the following terms as used in computer programming
Program
Pseudo code
Function
Array
Syntax error
(10 marks)

Consider the algorithm below. Draw a flowchart representation of the algorithm
Start
Let the first number be x
Let the second number be y
Get x
Get y
If x is greater than y
Add five to y
Otherwise
Add seven to x
End if
Display the values of x and y
Stop
(10 marks)

Distinguish between source program as target program as used in computer programming
(2 Marks)
Outline four rules that govern variable names in C++
(4 Marks)
List four data types in C++ programming
(4 marks)



Question Two (15 Marks)

Define an algorithm and briefly describe the four main characteristics of a good algorithm
(6 Marks)
With the help of an example, describe the general format of a while-loop
(4 Marks)
Write a C++ program that would take two numbers and display their sum and average
(5 Marks)

Question Three (15 Marks)
Using an example to illustrate, describe the four components of a C++ program
(8 marks)
Mr. Matano and his wife Mary have agreed to share the profit from their shop as follows:-
If the profit is less than 10,000 shillings nobody gets a share. All the amount is plowed back to the business
If the profit is more than 10,000 shillings half is plowed back while the remainder is shared in the ration of 60% for many and 40% for Matano.
Write an algorithm that would be used to determine the amount that is plowed back and the amount that each person gets (7 Marks)


Question Four (15 marks)
With the help of an example, show how you would declare an array of 100 integers
(3 marks)
A function header has three parts. State and briefly describe these parts.
(6 Marks)
Distinguish between high level languages and low level languages, giving one characteristics of each
(4 Marks)
What is a function call and what role does it play in a program?
(2 Marks)






More Question Papers


Popular Exams



Return to Question Papers