142k views
0 votes
A nested "if" statement only executes if the "if" statement in which it is nested evaluates to True. a. True

b. False

1 Answer

7 votes
True. A nested "if" statement is embedded inside another "if" statement. The nested "if" statement is only executed if the outer "if" statement evaluates to True. This is because the nested "if" statement is dependent on the condition of the outer "if" statement. If the outer "if" statement is False, then the nested "if" statement is not evaluated, and the code skips over it.
User Squadrons
by
7.7k points