Data Structures & AlgorithmsModerateTCS NQT · SSC CGL Tier 2

Problem: The array [4, 9, 16, 25] has its square roots summed. What is the sum of the square roots of these four numbers?

  1. A. 54
  2. B. 7
  3. C. 14
  4. D. 9

Correct answer: C. 14

√4 + √9 + √16 + √25 = 2 + 3 + 4 + 5 = 14. Adding the values gives 54, the square root of their sum is about 7, and missing √25 gives 9.

More Coding Interview Problems questions

Exams that ask this topic