Data Structures & AlgorithmsVery hardTCS NQT · Accenture

What is the digital root of 98765 (repeatedly sum the digits until one digit remains)?

  1. A. 9
  2. B. 8
  3. C. 10
  4. D. 12

Correct answer: B. 8

The digit sum is 35, then 8. The digital root equals n mod 9 when n mod 9 is not 0, which gives 98765 mod 9 = 8.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic