Q24Single correct4 Marks30 Apr 2023
The following pseudocode is executed using the "Words" dataset. What will wList represent at the end of execution?
```
A = 0
wList = [], L = []
while(Table 1 has more rows){
Read the first row X in Table 1
L = findSomething(L, X)
if(length(L) == A){
wList = wList ++ [X.Word]
}
if(length(L) > A){
A = length(L)
wList = [X.Word]
}
L = []
Move X to Table 2
}
Procedure findSomething(M, Y)
i = 1, t = ''
while(i <= Y.LetterCount){
t = ith letter of Y.Word
if(not member(M, t)){
M = M ++ [t]
}
i = i + 1
}
return(M)
End findSomething
```