All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · December 2018

The number of substrings that can be formed from a string given by a d e f b g h n m p is

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. 56

Explanation

10 distinct characters give 10 × 11 / 2 = 55 non-empty substrings; with the empty string, 56.

More Theory of Computation and Compilers questions