Q14Single correct5 Marks13 Apr 2025
The following pseudocode is executed using the "Scores" dataset. At the end of execution, what does studentCount represent?
```
studentCount = {}
while(Table 1 has more rows){
Read the first row X in Table 1
if(isKey(studentCount, X.City)){
if(isKey(studentCount[X.City], X.Gender)){
studentCount[X.City][X.Gender] = studentCount[X.City][X.Gender] + 1
}
else{
studentCount[X.City][X.Gender] = 1
}
}
else{
studentCount[X.City] = {}
studentCount[X.City][X.Gender] = 1
}
Move X to Table 2
}
```
―――――――――――――――――――――――――――――――――――――――――――――――――――――――