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

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

Bbit 121:Introduction To Programming 1St Trimester 2016 

Course:Bachelor Of Business Information Technology

Institution: Kenya Methodist University question papers

Exam Year:2016



INTRODUCTION TO PROGRAMMING (BBIT 121) (CISY 110) (DCIS 110) (DBIT 121) (BSIS 113) (MISC 431) 1st trimester 2016
KENYA METHODIST UNIVERSITY

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

SCHOOL : SCIENCE & TECHNOLOGY
DEPARTMENT : COMPUTING AND INFORMATION SCIENCE
UNIT CODE : BBIT 121/ CISY 110/DCIS 110/DBIT 121/MISC 431
UNIT TITLE : INTRODUCTION TO PROGRAMMING
TIME : 2 HOUR


INSTRUCTIONS

Answer question ONE and any other TWO questions

QUESTION ONE (30mks)
a) Explain the following types of programming errors

Run time error (1mk)
Syntax error (1mk)
Logical error (1mk)
b) Explain the following concepts as used in programming (5mks)
Algorithm
Inheritance
Classes
Program
Polymorphism
c) Explain the six stages involved in the program development life cycle (12mks)

d) Explain the basic data types used in C++ programming (4mks)
e i)Describe the main components of a C++ programming with a program example (5mks)
ii) What is the role of the compiler in programming (1mk)



QUESTION TWO (15mks)
a) Explain the following types of operators in C++ with examples (5mks)
Relational operators
Arithmetic operators
Conditional operators
Assignment operators
Increment and decrement operators
b) Outline five rules to be followed when declaring a variable in C++ programming (5mks)
c) Distinguish between while- loop and do-while looping structures. Use an example to illustrate (5mks)


QUESTION THREE (15mks)
a) State five qualities of a good algorithm (5mks)
b) Write a C++ program to read an integer number and print the name of the day in the week using the switch case structure (5mks)
c) Design an algorithm that would be used for a program to add two numbers and display the results (5mks)



QUESTION FOUR (15mks)
a) A function header has three parts. State and briefly describe these parts (6mks)
b) With an example, describe the general format of the if…..else statement (5mks)
c) Suppose that a=2,b=3 and c=6, give the output of the following expressions (2mks)
(a==5)
((b=2)==a)
d) Explain any two flowchart symbols (2mks)






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