Q24Single correct5 Marks28 Apr 2024
The following pseudocode is executed using the "Scores" dataset. At the end of execution of below pseudocode, first(D[c]) - last(D[c]) will represent the difference between highest and lowest Mathematics marks of the city c. Choose the correct code fragment.
```
D = {}
while(Table 1 has more rows){
Read the first row X in Table 1
if(isKey(D, X.Town/City)){
********************
* Fill the code *
********************
}
else{
D[X.Town/City] = [X.Mathematics, X.Mathematics]
}
Move X to Table 2
}
```