Q67Comprehension4 Marks20 Nov 2022
Passage
Let `Z` be a row in the Words table and `D` be a dictionary. Use the procedure below for the subquestions.
```
Procedure updateDict(Z, Dict)
i = 1, x = ""
while(i <= Z.LetterCount) {
x = ith letter of Z.Word
if(not isKey(Dict, x)) {
Dict[x] = 1
}
else {
Dict[x] = Dict[x] + 1
}
i = i + 1
}
return(Dict)
End updateDict
```
Consider the dictionary `commonDict` created in the previous question. What will be the value of `commonDict['i']`?
Press Enter to check.