Home »
MCQs »
Python MCQs
In a Python program, Nested if Statements denotes?
28. In a Python program, Nested if Statements denotes?
- if statement inside another if statement
- if statement outside the another if statement
- Both A and B
- None of the mentioned above
Answer: A) if statement inside another if statement
Explanation:
Nesting an if statement within another if statement is referred to as nesting in the programming community. It is not always necessary to use a simple if statement; instead, you can combine the concepts of if, if-else, and even if-elif-else statements to create a more complex structure.