Get premium membership and access questions with answers, video lessons as well as revision papers.

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


Next: Use binomial expansion to expand and simplify (1-3x)6 upto term in x3. Hence approximate the value of (0.97)6 correct to 4 significant figures.
Previous: A straight line through the points (4,6) and (2,4) meets the x-axis and y-axis and y –axis at points A and B respectively. Determine the...

View More Computer Studies Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions