Home »
MCQs »
Python MCQs
The if statement is the most fundamental decision-making statement?
22. The if statement is the most fundamental decision-making statement?
- True
- False
Answer: A) True
Explanation:
The if statement is the most fundamental decision-making statement, and it determines whether or not the code should be executed based on whether or not the condition is met. If the condition in the if statement is met, a code body is executed, and the code body is not otherwise executed. The statement can be as simple as a single line of code or as complex as a block of code.