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

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


Next: State the function of the following commands on web browsers software. i. Refresh button ii. Home button iii. History button
Previous: Differentiate between Analogue and Digital data.

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


Learn High School English on YouTube

Related Questions