Question

Consider the operators ⋄\diamond and □\square defined by a⋄b=a+2b,  a□b=aba \diamond b = a + 2b, \; a \square b = ab, for positive integers. Which of the following statements is/are TRUE?

Choose every correct option
Official answer and solution
Official answer
B and D
From
Official GATE 2024 answer key

Solution

Test associativity and distributivity directly using the algebraic definitions a⋄b=a+2ba \diamond b = a + 2b and a□b=aba \square b = ab.

  • (A) is FALSE: (a⋄b)⋄c=(a+2b)+2c=a+2b+2c(a \diamond b) \diamond c = (a + 2b) + 2c = a + 2b + 2c, whereas a⋄(b⋄c)=a+2(b+2c)=a+2b+4c≠a+2b+2ca \diamond (b \diamond c) = a + 2(b + 2c) = a + 2b + 4c \neq a + 2b + 2c for positive integers.
  • (B) is TRUE: Standard integer multiplication a□b=aba \square b = ab is associative: (ab)c=a(bc)(ab)c = a(bc).
  • (C) is FALSE: a⋄(b□c)=a+2bca \diamond (b \square c) = a + 2bc, whereas (a⋄b)□(a⋄c)=(a+2b)(a+2c)=a2+2ab+2ac+4bc≠a+2bc(a \diamond b) \square (a \diamond c) = (a + 2b)(a + 2c) = a^2 + 2ab + 2ac + 4bc \neq a + 2bc.
  • (D) is TRUE: Checking both left and right distributivity of □\square over ⋄\diamond:
    a□(b⋄c)=a(b+2c)=ab+2ac=(ab)⋄(ac)=(a□b)⋄(a□c)a \square (b \diamond c) = a(b + 2c) = ab + 2ac = (ab) \diamond (ac) = (a \square b) \diamond (a \square c)
    (b⋄c)□a=(b+2c)a=ba+2ca=(b□a)⋄(c□a)(b \diamond c) \square a = (b + 2c)a = ba + 2ca = (b \square a) \diamond (c \square a)
Final answer

Options (B), (D)

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2024 Computer Science and Information Technology - Set 1 (CS1)
Question
52 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.