What are the various types of control structures in programming?
- Primarily there are 3 types of control structures in programming: Sequence, Selection and Repetition.
- Sequential control follows a top- down flow in executing a program. This means that step 1 is executed first, followed by step 2 and so on.
- Selection means dealing with conditional statements. This means that code is executed depending on evaluation of conditions a FALSE or TRUE. It means that not all codes may be executed and there are alternative flows within.
- Repetitions are also known as loop structures. They will repeat one or two program statements as set by a counter.