Question 6
The following pseudocode is executed using the “Library” dataset. At the end of the execution, A captures the number of pairs of books which are published in the same genre and in the same year but in different languages. 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 following pseudocode is executed using the “Library” dataset. At the end of the execution, A captures the number of pairs of books which are published in the same genre and in the same year but in different languages. 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 9: B is updated with wrong value
Line 12: C is updated with wrong value
Line 15: D is updated in wrong place
No errors