Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please help : The if . . else statement uses the result of boolean expression to

ID: 3764806 • Letter: P

Question

Please help :

The if . . else statement uses the result of boolean expression to decide which one is next statement. Which of the following is NOT correct?

A- When the boolean expression is true the if block is executed

B- When the boolean expression is false the if block is skipped

C- When the boolean expression is false the else block is executed

D- When the boolean expression is false the else is skipped

A- When the boolean expression is true the if block is executed

B- When the boolean expression is false the if block is skipped

C- When the boolean expression is false the else block is executed

D- When the boolean expression is false the else is skipped

Explanation / Answer

D- When the boolean expression is false the else is skipped