DBIT 303 – COMPUTER PROGRAMMING CONCEPTS

UNIVERSITY EXAMINATIONS: 2019/2020
EXAMINATION FOR THE DIPLOMA BUSINESS INFORMATION
TECHNOLOGY
DBIT 303: COMPUTER PROGRAMMING CONCEPTS
DATE: MAY 2020 TIME: 6 HOURS
INSTRUCTIONS: ANSWER ALL THE QUESTIONS.
SECTION TWO

QUESTION ONE (20 Marks)
a) List three types of errors in programming giving a suitable examples in each case
(3MARKS)
b) Write a C program that would output the statements below as they are:
(7MARKS)
Hello World
Welcome to C programming
c) Distinguish between the following terms:- (4MARKS)
i. Program & programming language

ii. Testing & debugging
d) List and briefly explain three types of control structures supported by C language.
(6MARKS)
SECTION THREE
QUESTION TWO (20 MARKS)
a) Explain the following terms as used in C programming:- (10MARKS)
i. Coding
ii. Variable
iii. Array
iv. Programming language
v. Function
b) Explain four data types supported by C language. (8MARKS)
c) Write a C program that counts the values 1 to 10 using For Loop. (2MARKS)

(Visited 140 times, 1 visits today)
Share this:

Written by