Q48.Let `Y` be a card in the Shopping Bills dataset. Consider the following procedure.
```
Procedure findSomething(Y)
D = {}
foreach Z in Y.ItemList {
if(isKey(D, Z.Category)) {
return(Z.Category)
}
D[Z.Category] = True
}
return("None")
End findSomething
```
What will `findSomething(X)` return where `X` represents the given Shopping Bills card?
Save
Check
Details
Q48
2 Apr 2023
Q48.Let `Y` be a card in the Shopping Bills dataset. Consider the following procedure.
```
Procedure findSomething(Y)
D = {}
foreach Z in Y.ItemList {
if(isKey(D, Z.Category)) {
return(Z.Category)
}
D[Z.Category] = True
}
return("None")
End findSomething
```
What will `findSomething(X)` return where `X` represents the given Shopping Bills card?