Question 16
The given pseudocode is executed using the “Words” dataset. What will A represent at the end of execution?
D = { }, A = 0while (Table 1 has more rows) { Read the first row X in Table 1 D = updateDictionary(D, X) Move X to Table 2}
foreach C in keys(D) { if (C is a vowel and D[C] > A) { A = D[C] }}
Procedure updateDictionary(D, Y) i = 1 while (i ≤ Y.LetterCount) { B = ith letter in Y.Word if (isKey(D, B)) { D[B] = D[B] + 1 } else { D[B] = 1 } i = i + 1 } return (D)End updateDictionaryFrequency count of a vowel which occurs in maximum number of words in the dataset
Frequency count of a vowel which occurs maximum times in a single word
Frequency count of a vowel which occurs in maximum number of sentences in the dataset
Frequency count of the most frequent vowel in the dataset