Question 10
The given pseudocode is executed using the “Words” dataset. At the end of execution A captures the frequency count of the most frequent vowel in the dataset. But the pseudocode may have mistakes. Identify all such mistakes (if any). Assume that all statements not listed in the options below are free of errors. It is a Multiple Select Question (MSQ).
The given pseudocode is executed using the “Words” dataset. At the end of execution A captures the frequency count of the most frequent vowel in the dataset. But the pseudocode may have mistakes. Identify all such mistakes (if any). Assume that all statements not listed in the options below are free of errors. It is a Multiple Select Question (MSQ).
Line 1: Incorrect initialization of D
Line 8: Incorrect conditional expression
Line 9: A updated with wrong value
Line 13: Incorrect initialization of i
Line 16: Conditional expression should not use "not" operator
Line 22: i updated at wrong place