QuestionQ125

VerifiedData Manipulation

Which one of the following expressions is equivalent to the If activity shown?

Question Image

Explanation

An If activity executes its Then branch when its Boolean condition is true and its Else branch when it is false. Since number mod 2 = 0 identifies an even number, the conditional expression must assign "Even number" when true and "Odd number" when false.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!