Question 11
The following pseudocode is executed using the "Scores" dataset. What will B represent at the end of the execution?
cityD = { }while (Table 1 has more rows) { Read the first row X in Table 1 if (isKey(cityD, X.CityTown)) { cityD[X.CityTown] = cityD[X.CityTown] ++ [X.Total] } else { cityD[X.CityTown] = [X.Total] } Move row X to Table 2}
A = 301, B = [ ]foreach i in keys(cityD) { P = doSomething(cityD[i]) / length(cityD[i]) if (P == A) { B = B ++ [i] } if (P < A) { A = P B = [i] }}
Procedure doSomething(L) if (length(L) == 1) { return(last(L)) } else { return(last(L) + doSomething(init(L))) }End doSomethingList of students who got minimum total marks
List of cities with minimum total marks
List of cities with minimum average total marks
List of cities with minimum average marks
None of these