Chapter 3: Problem 1
What is a control structure?
Short Answer
Expert verified
Answer: A control structure is a block of code that enables the flow of a program's execution, making it more efficient, organized, and easier to read. The three basic types of control structures are sequential, selection, and iteration control structures. Sequential control structure is the default flow of control, executing instructions in sequence. Selection control structure allows the program to make decisions based on conditions using "if", "else", and "elif" statements. Iteration control structure involves looping through a block of code multiple times using "while" and "for" loops.