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

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

Bbit 121: Introduction To Programming 1St Trimester 2015 

Course:Bachelor Of Business Information Technology

Institution: Kenya Methodist University question papers

Exam Year:2015



Introduction to programming (CISY 110) (BBIT 121) (BSIS 113) (DBIT 121) (DCIS 110) 1ST TRIMESTER 2015
KENYA METHODIST UNIVERSITY

END OF 1'st 'TRIMESTER 2015 (PT) EXAMINATION

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


INSTRUCTIONS:

Answer question One and any Other Two questions.

Question One (30 marks)
Write brief notes to the following means of representing algorithms.
Flow charts
Pseudo Code
(4 marks)
Using Pseudo Codes write an algorithm that read in exchange values and display the result.
(4 marks)
Write a program to compute and display the sum of ā€™nā€™ numbers. (5 marks)
Compare and contrast machine language, assembly language, and higher level languages.
(3 marks)
Using the FOR Loop statement, write a program that will find the square of ten numbers.
(4 marks)
Briefly describe the role of compute and the translator in programming environment.
(4 marks)
Write a C++ program for computing area and the circumference of a circle with a global constant variable P1=3.14.
(6 marks)


Question Two (15 marks)
List four features of a good program.
(4 marks)
Write a program using a function total cost that computes price per item and number of items and returns the bill of items bought.
(7 marks)
Discuss passing arguments by reference and passing arguments by values in functions.
(4 marks)


Question Three (15 marks)

The "if - else" and "switch ā€“ case" statements provide a way of performing decision/selection in C++. Clearly explain when to use them.
(4 marks)
What is bracing mechanism in C++ programming?
(1 mark)
With the aid of relevant code segments, give one similarity and one difference between a "do-while" "loop and a while" loop.
(4 marks)
Compare global variable, local variables and static variables.
(6 marks)


Question Four (15 marks)

What is procedural programming and list two advantages of procedural programming.
(4 marks)
Explain any two limitations that using Cin while inputting a string.
(3 marks)
Give three basic control structure of C++ program
(3 marks)
What are the five general steps that should be used by a programmer to come with a computer.






More Question Papers


Popular Exams



Return to Question Papers