C - onditional Statements
Which of the following best describes the purpose of an
else block in an if-else statement?else block in an if-else statement?if blockif block runs when the condition is true.else blockelse block runs only when the if condition is false.if condition is false -> Option Belse runs if if condition false [OK]else runs only if if condition is false [OK]else with ifelse runs when condition is trueelse repeats the condition15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions