...
Web-Technologies
October 9, 2023
UGC NET JRF November 2020 Paper-2
October 9, 2023
Web-Technologies
October 9, 2023
UGC NET JRF November 2020 Paper-2
October 9, 2023

GATE 1994

Question 15

The number of substrings (of all lengths inclusive) that can be formed from a character string of length n is

A
n
B
n2
C
n(n-1)/2
D
n(n+1)/2
Question 15 Explanation: 
No. of substrings of length
n = 1
(n-1) = 2
(n-2) = 3
So, Total = n(n+1)/2
Correct Answer: D
Question 15 Explanation: 
No. of substrings of length
n = 1
(n-1) = 2
(n-2) = 3
So, Total = n(n+1)/2

Leave a Reply

Your email address will not be published. Required fields are marked *