Get premium membership and access revision papers, questions with answers as well as video lessons.
Got a question or eager to learn? Discover limitless learning on WhatsApp now - Start Now!

Dbit 303 Computer Programming Concepts Question Paper

Dbit 303 Computer Programming Concepts 

Course:Diploma In Business Information Technology

Institution: Kca University question papers

Exam Year:2012




UNIVERSITY EXAMINATIONS: 2011/2012
EXAMINATION FOR THE DIPLOMA IN BUSINESS INFORMATION
TECHNOLOGY
DBIT 303 COMPUTER PROGRAMMING CONCEPTS
DATE: MARCH, 2012 TIME: 1½ HOURS
INSTRUCTIONS: Answer Any Three Questions
QUESTION ONE
a) list and briefly describe any five factors that should be considered when selecting a programming
language [10 Marks]
b) With the aid of examples, list and describe the three types of program errors [10 Marks]
QUESTION TWO
a) With the aid of examples, briefly describe the following programming languages
i. Low level programming language
ii. High level programming language [6 Marks]
b) Write a C program that calculates and output the sum of two entered integers [10 Marks]
c) Differentiate between source code and object code as used in programming [4 Marks]
QUESTION THREE
a) Write a C program that calculates and outputs the area of a rectangle [6 Marks]
2
b) List and briefly describe the three control structures used in C programs [6 Marks]
c) Differentiate between a compiler and interpreter [4 Marks]
d) With the aid of an example, write the general syntax of declaring a multidimensional array in C
programming [4 Marks]
QUESTION FOUR
a) With the aid of an example, describe the structure of a C program [6 Marks]
b) Using an example, illustrate how you can insert a comment in a C program [3 Marks]
c) Why are comments necessary in a program? [2 Marks]
d) Explain the purpose of the following functions as used in C program:
i. printf()
ii. scanf()
iii. return 0
iv. void main() [4 Marks]
e) Define the term’ programming language’ [1 Mark]
f) Explain the functions of the following C programming language data types:-
i. int
ii. float
iii. char
iv. void [4 Marks]
QUESTION FIVE
a) List and briefly describe the major phases followed when developing computer programs
[10 Marks]
b) Write a pseudocode that prompts the user to enter two numbers; calculates the sum of the entered
numbers and displays the results [8 Marks]
c) Define the term ‘programming’ [2 Marks]






More Question Papers


Popular Exams



Return to Question Papers