WBCS.LIVE practice question

Suppose x * y = x + y, if x < y = x - y, if x > y = 2x, if x = y Evaluate 5 * (7 * 2) + (5 * 7) * 2

Solve this multiple-choice question and check the correct answer with its explanation below.

Answer options

  1. 20
  2. 21
  3. 22
  4. 19

Correct answer and explanation

Correct answer: 20

Explanation: āœ… Correct Answer: A) 20 šŸ“š Explanation: Working with the given rules: (7 * 2) = 7 - 2 = 5, and (5 * 7) = 5 + 7 = 12. The final expression becomes 5 * 5 + 12 * 2. 5 * 5 = 10 (since x=y, 2x=10) and 12 * 2 = 12 - 2 = 10. Adding these results together gives a total of exactly 20. This tests following a specific set of math rules.