ISRO Computer Science (CSE) 2015 - Question 76

All ISRO Computer Science (CSE) papers | ISRO Computer Science (CSE) 2015

Consider the following statements # define hypotenuse(a, b) $\sqrt{a * a + b * b}$...

  • A. Finds the hypotenuse of a triangle with sides a + 2 and b + 3
  • B. Finds the square root of (a + 2)^2 + (b + 3)^2
  • C. Is invalid
  • D. Find the square root of 3 * 2 + 4 * b + 5

Answer: D. Find the square root of 3 * 2 + 4 * b + 5

Explanation: Macro expansion: $\sqrt{a+2*a+2 + b+3*b+3}$ = $\sqrt{3a+4b+5}$.

| | All questions of ISRO Computer Science (CSE) 2015