Differentiate between sequence, selection, and iteration in programming.

Sequence refers to the straightforward execution of statements in a program from top to bottom, in the order they are written. Selection, also known as decision-making, allows the program to make choices based on conditions (e.g., “if-else” statements) and execute different code blocks based on the condition being true or false. Iteration involves repeating a set of instructions (e.g., using loops) multiple times until a specific condition is met. While sequence ensures ordered execution, selection and iteration control the flow based on dynamic conditions and repetitive tasks, respectively.