100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

DBIT

Rating
-
Sold
-
Pages
2
Grade
A
Uploaded on
11-10-2022
Written in
2022/2023

1. Distinguish two differences between high-level languages and low-level languages. (4 marks) 2. Explain the following types of feasibility study. (6 marks) i. Technical feasibility study. ii. Economic feasibility study. iii. Legal feasibility study. 3. Explain two types of documentation as used in programming concepts. (4 marks) 4. Explain the following structure of program based on their function. (4 marks) i. #includestdio.h ii. Main () 5. Discuss two difference between printf() and scanf() functions. (4 marks) 6. Explain the following terms as used in programing; (6 marks) i. Variable. ii. Global variable. iii. Local variable. iv. Data type. v. Literals. vi. Constant. 7. Define the term structured programming. (2 marks) SECTION B QUESTION TWO (20 MARKS) 1. Highlight two differences between top-down and bottom-up design approach. (4 marks) 2. State and explain three advantages of modular approach. (6 marks) 3. Outline four functions of a compiler in a c program. (4 marks) 4. Write a C program that would prompt a user to enter the number of acres of land to be bought. If the number is greater than five, the price per acre is KSH. 1.0 million else the price is KSH. 1.2 million. The program then computes and displays the total cost of the land purchased. (6 marks

Show more Read less
Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
October 11, 2022
Number of pages
2
Written in
2022/2023
Type
Exam (elaborations)
Contains
Answers

Subjects

Content preview

SECTION A: COMPULSORY
QUESTION ONE (30 MARKS)
1. Distinguish two differences between high-level languages and low-level languages. (4 marks)
2. Explain the following types of feasibility study. (6 marks)
i. Technical feasibility study.
ii. Economic feasibility study.
iii. Legal feasibility study.
3. Explain two types of documentation as used in programming concepts. (4 marks)
4. Explain the following structure of program based on their function. (4 marks)
i. #include<stdio.h>
ii. Main ()
5. Discuss two difference between printf() and scanf() functions. (4 marks)
6. Explain the following terms as used in programing; (6 marks)
i. Variable.
ii. Global variable.
iii. Local variable.
iv. Data type.
v. Literals.
vi. Constant.
7. Define the term structured programming. (2 marks)




SECTION B
QUESTION TWO (20 MARKS)
1. Highlight two differences between top-down and bottom-up design approach. (4 marks)
2. State and explain three advantages of modular approach. (6
marks)
3. Outline four functions of a compiler in a c program. (4 marks)
4. Write a C program that would prompt a user to enter the number of acres of land to be bought. If
the number is greater than five, the price per acre is KSH. 1.0 million else the price is KSH. 1.2
million. The program then computes and displays the total cost of the land purchased. (6 marks)
QUESTION THREE (20 MARKS)
1. Anderson is developing a program for his client. Explain three methods that he would use to
detect errors in the program. (6 marks)
2. State two sorting methods that use the swapping techniques. (2 marks)
3. With the aid of a diagram in each case, distinguish between a stack and a queue as used in
programming. (6 marks)
$13.59
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
mamacittah

Get to know the seller

Seller avatar
mamacittah PSYCHOLOGY
Follow You need to be logged in order to follow users or courses
Sold
3
Member since
3 year
Number of followers
2
Documents
21
Last sold
1 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions