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.

Study the flowchart below and answer the questions that follow.

Study the flowchart below and answer the questions that follow.

product.png

(i) State the main type of control structure used in the flowchart.

(ii). Dry run the flowchart and give the expected output.

(iii) What will be the value of product when printed in the following flow chart? Show how you arrive at your answer.

(b). Explain what happens when the expression A = A+1 is changed to A = A-1

c) Give two benefits of structured programming.

Answers


Martin
a)
(i) Iteration (looping)
term.png

ii final.png

(b)Indefinite loop –execution will not come to an end since the value of A will never be greater 2

c)
-highly legible code
-easy maintenance
-re-usability of code
-faster program development
-easy to identify errors and debug
-each sub program can be tested separately
marto answered the question on September 18, 2019 at 06:44

Answer Attachments

Exams With Marking Schemes

Related Questions