The section of code you described, which executes lines of code in the exact order they are written, uses the sequence structure.
In programming, the sequence structure refers to the straightforward flow of control where statements are executed one after the other. Here's a brief overview of the other structures for clarity:
- Selection: This structure allows the program to make decisions based on certain conditions (e.g.,
if
statements). - Iteration: This involves executing a block of code multiple times, usually through loops (e.g.,
for
orwhile
loops). - Condition Controlled Loops: These are a type of iteration where the looping continues based on a specific condition being true.
Since your description specifies executing code in order, the correct answer is sequence.