The answer is correct because an 'if-else' statement is indeed a common branching structure used in programming. It allows a program to choose between two pathways: one that is taken if the condition evaluates to true ('if' part), and another if the condition evaluates to false ('else' part). This is a basic concept of control flow in programming languages.
Learn More
AI Generated Content may display inaccurate information, always double-check anything important.
What are the main components of an 'if-else' statement?
Can you give an example of an 'if-else' statement?
How does the 'if-else' statement relate to control flow in programming?