QuestionQ91

VerifiedControl Flow – Conditional Blocks and Loops

Which of the following expressions evaluates to a non-zero result?

Choose two
Explanation

Multiplication, division, and floor division take precedence over addition and subtraction; operators at the same precedence are evaluated from left to right. The expressions in B and D evaluate to 3 and 4, respectively, while A and C evaluate to 0.

Community Discussion

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