Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

DBIT

Beoordeling
-
Verkocht
-
Pagina's
2
Cijfer
A
Geüpload op
11-10-2022
Geschreven 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

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

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)

Geschreven voor

Vak

Documentinformatie

Geüpload op
11 oktober 2022
Aantal pagina's
2
Geschreven in
2022/2023
Type
Tentamen (uitwerkingen)
Bevat
Antwoorden

Onderwerpen

€12,16
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kan je een ander document kiezen. Je kan het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
mamacittah

Maak kennis met de verkoper

Seller avatar
mamacittah PSYCHOLOGY
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
3
Lid sinds
3 jaar
Aantal volgers
2
Documenten
21
Laatst verkocht
1 jaar geleden

0,0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo eenvoudig kan het zijn.”

Alisha Student

Veelgestelde vragen