Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

State and explain the three basic types of program control structures.

State and explain the three basic types of program control structures.

Answers


william
(a) Sequence: This is a control structure in which program statements are executed line by line in the order in which they are written.

(b) Selection: It is a conditional control structure where logical expression or boolean expression is evaluated and the execution program statement(s) depends on whether the expression returns TRUE or FALSE.
There are four types of selection controls namely:
(i) IF. .THEN

(ii) IF. .THEN. .ELSE

(iii) NESTED IF

(iv) CASE Selection

(c) Iteration or Looping: This refers to repetition during program execution.
There are basically three types of loops namely:
(i) WHILE. .LOOP

(ii) REPEAT. .UNTIL LOOP.

(iii) FOR. . LOOP
steve williams answered the question on November 16, 2017 at 01:41

Answer Attachments

Exams With Marking Schemes

Related Questions