1.

What Are The Different Types Of Control Structures In Programming?

Answer»

There are 3 main control structures in programming:

Sequence, Selection and Repetition.

SEQUENTIAL control follows a TOP to bottom flow in executing a program, such that STEP 1 is first perform, followed by step 2, all the way until the last step is PERFORMED.

Selection deals with conditional statements, which mean codes, are executed DEPENDING on the evaluation of conditions as being TRUE or FALSE. This also means that not all codes may be executed, and there are alternative flows within.

Repetitions are also known as loop structures, and will repeat one or two program statements set by a counter.

There are 3 main control structures in programming:

Sequence, Selection and Repetition.

Sequential control follows a top to bottom flow in executing a program, such that step 1 is first perform, followed by step 2, all the way until the last step is performed.

Selection deals with conditional statements, which mean codes, are executed depending on the evaluation of conditions as being TRUE or FALSE. This also means that not all codes may be executed, and there are alternative flows within.

Repetitions are also known as loop structures, and will repeat one or two program statements set by a counter.



Discussion

No Comment Found