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

Bbit 121:Introduction To Programming 3Rd Trimester 2014 Question Paper

Bbit 121:Introduction To Programming 3Rd Trimester 2014 

Course:Bachelor Of Business Information Technology

Institution: Kenya Methodist University question papers

Exam Year:2014



INTRODUCTION TO PROGRAMMING (BBIT 121) 3RD TRIMESTER 2014
KENYA METHODIST UNIVERSITY

END OF 3'rd 'TRIMESTER 2014 (PT) EXAMINATION

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


INSTRUCTIONS

Answer question one and any other two questions

Question One
Define the following term sin context to programming;
(6 Marks)
Program
Algorithm
Pseudo code
Flow chart
Problem solving process involves six stages list and explain them.
(12 Marks)
Explain any six C++ library routines.
(6 Marks)
Variables are commonly used in C++ programming
Define the term variable
(2 Marks)
Give the syntax for variable
(2 Marks)
Give the general format to show how variables are assigned value, use example.
(2 Marks)


Question Two
Describe the C++ programming components using a program.
(5 Marks)
Write a program to compute and display the sum of n numbers
(5 Marks)
List and explain the input and output operation in C++
(5 Marks)


Question Three
Give the syntax for if-------- else statement.
Illustrate the same with a program example that will grade the average marks as students enter via the keyboard as shown below. (7 Marks)
80 – 100 grade A

70 – 79 grade B

60 – 69 grade C

66 – 59 grade D

40 – 49 grade E

0 – 39 grade F

Define the term data type. Describe the four basic data types.
(5 marks)
Highlight the rules to be followed when naming a variable.
(3 marks)


Question Four
Describe the four steps that have to be followed when writing an iteration statement.
(5 Marks)
What are the three qualities of a good algorithm?
(3 marks)
Rewrite the following code by filling in the blacks
(5 Marks)
include < iostream.h>

__________ main ( )

{

int a, b, c;

cout<< "In enter a numberic value"

cin>> _________ ;

________ = ______* _______;

cout<< "In the product of "<<____<< "and" << ______,<<

"is"
<< _________<< endl:

}

Explain three types of operators in programming.
(3 marks)






More Question Papers


Popular Exams


Mid Term Exams

End Term 1 Exams

End Term 3 Exams

Opener Exams

Full Set Exams



Return to Question Papers