• S
    SwaseekhGATE Preparation
General
  • Dashboard
  • Syllabus
  • Questions
  • Aptitude
  • Mock Tests
  • TCS NQT 2026
Account
  • Pricing
  • Contact
  1. GATE CS
  2. PYQs
  3. General Aptitude

F(a, b) and G(a, b) are defined as follows: F(a, b) = (a - b)^2 G(a, b) = |a - b|, where |x| represents the absolute value of x. What would be the value of G(F(1, 3), G(1, 3))? A. 2 B. 4 C. 6 D. 36

GATE 2018 · General Aptitude · Functions · easy

Answer: G(F(1,3), G(1,3)) = 2, so the answer is A. 2.

  1. Evaluate F(1, 3): F(1, 3) = (1 - 3)^2 = (-2)^2 = 4
  2. Evaluate G(1, 3): G(1, 3) = |1 - 3| = |-2| = 2
  3. Evaluate the outer G with the computed values: G(F(1,3), G(1,3)) = G(4, 2) = |4 - 2| = |2| = 2