A program contains an if statement followed by an else statement. When the condition in an if statement is met, what happens to the code in the else statement?

(1 point)
• It is a name error.
• It is a syntax error.
• It is ignored.
• It is executed.

1 answer

The correct answer is: It is ignored.

When the condition in an if statement is met, the code in the accompanying else statement is not executed.