QP_SoftwareDevelopment_L4_AlgorithmFundametals
QP_SoftwareDevelopment_L4_AlgorithmFundametals
SECTOR: ICT
DURATION : 3HOURS
INSTRUCTIONS TO CANDIDATE:
Page 1 of 6
QUESTION 5: Draw the flowchart to show the use of for loop. /2marks
QUESTION 6: Differentiate while loop from do while loop /5marks
QUESTION 7.
I. How can we define an array? Defend your answer /2.5marks
A. The Array shows a hierarchical structure.
B. Arrays are immutable.
C. Container that stores the elements of similar types
D. The Array is not a data structure
Page 2 of 6
QUESTION9:
Different algorithms play different roles in programming. You
only
need to define your problem then select the right algorithm to
use.
Write at least 5 types of algorithm you know
/5marks
factorial. /5marks
Page 3 of 6
Start/Stop
Decision
Page 4 of 6
Step 1: Start
Step 4: If a > b
If a > c
Else
Else
If b > c
Page 5 of 6
Else
Step 5: Stop
Page 6 of 6