Question 14
The given pseudocode is executed using the “Words” dataset. At the end of execution A captures the frequency count of the most frequent letter 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.
The given pseudocode is executed using the “Words” dataset. At the end of execution A captures the frequency count of the most frequent letter 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.
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: Incorrect expression
Line 23: i updated at wrong place