The following pseudocode is executed using the “Scores” dataset to grade the students by total marks. Also, the pseudocode counts number of male students in each grade. But the pseudocode may have mistakes in one or more lines. Identify all such lines (if any). It is a Multiple Select Question (MSQ).
a)Error in Line 1
b)Error in Line 19
c)Error in Line 20
d)Error in Line 23
e)Error in Line 26
f)Error in Line 30
g)No error
Attachments:
Answers
Answered by
3
Answer:
option b is the correct ok
Answered by
19
Explanation:
options b and f both are correct, because in line no 19 it gives the condition of female not male due to which whole program will count the female number
and in line number 30 group D is not increased
and one more thing pile1 and pile2 are not defined.
Similar questions
Math,
2 months ago
Math,
5 months ago
English,
5 months ago
Social Sciences,
10 months ago
Social Sciences,
10 months ago
Chemistry,
10 months ago