QuestionQ91Verified/Control Flow – Conditional Blocks and LoopsCopy linkReport a problemAsk AstroTutorSave questionWhich of the following expressions evaluates to a non-zero result?Choose twoA2 – 2 * 2 + 2B2 + – 2 / 2 + 2C2 // 2 * 2 – 2D2 + 2 * 2 // 2Show AnswerAnswerExplanationMultiplication, 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.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion