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

Introduction To Computer Programming(Dcis 110) (Dbit 121) Question Paper

Introduction To Computer Programming(Dcis 110) (Dbit 121) 

Course:Computer Science & Business Information

Institution: Kenya Methodist University question papers

Exam Year:2013



TIME : 2 HOURS

INSTRUCTIONS
Answer question one and two other questions
Question One (30 marks)
Define the following terms
(10 Marks)
Objects
Classes
Program
Polymosphism
Inheritance
Explain the basic program components of C++ with an example.
(5 marks)
Highlight the rules to be followed when naming a variable.
(4 Marks)
Write the syntax of Do----- while loop structure. Illustrate the concept using a sample program.
(7 marks)
Explain the input and output operations used in C++.
(4 Marks)

Question Two (15 marks)
Write a C++ program that will display the average of two numbers. (5 Marks)
What is a data type? Explain the basic data types used in programming.
(5 marks)
The features of object oriented programming.
(5 Marks)

Question Three (15 Marks)
What are the control structures used in C++? Explain with an example in each.
(5 marks)
Explain the various types of C++ library routines
(7 Marks)
Explain how variables are assigned values using the assignment statement.
(3 marks)

Question Four (15 Marks)
Write a brief note on the main function.
(4 Marks)
Explain the two types of comments used in programming with examples.
(5 Marks)
Explain the following C++ concepts
(6 Marks)
Algorithms
Flow charts
Pseudo code

Question Five (15 marks)
Write a C++ program to illustrate the concept of recussion.
(5 marks)
What are the steps to be followed when executing a program? Explain.
(3 marks)
Explain the benefits of using C++ language.
(7 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