Q34Single correct4 Marks30 Apr 2023
The following pseudocode is executed using the "Scores" dataset. What does L store at the end of the execution?
```
D = {}
L = []
while(Table 1 has more rows){
Read the first row X in Table 1
if(isKey(D, X.TownCity)){
if(not member(D[X.TownCity], X.Gender)){
D[X.TownCity] = D[X.TownCity] ++ [X.Gender]
}
}
else{
D[X.TownCity] = [X.Gender]
}
Move X to Table 2
}
foreach i in keys(D){
if(length(D[i]) > 1){
L = L ++ [i]
}
}
```