Q42.The following pseudocode is executed using the "Words" dataset. What will `count` represent at the end of the execution?
```
count = 0
while(Table 1 has more rows){
Read the first row X in Table 1
count = count + checkSomething(X)
Move X to Table 2
}
Procedure checkSomething(Z)
i = Z.LetterCount
while(i > 0){
if(ith letter of Z.Word is vowel){
return(0)
}
i = i - 1
}
return(1)
End checkSomething
```
Save
Check
Details
Q42
10 Jul 2022
Q42.The following pseudocode is executed using the "Words" dataset. What will `count` represent at the end of the execution?
```
count = 0
while(Table 1 has more rows){
Read the first row X in Table 1
count = count + checkSomething(X)
Move X to Table 2
}
Procedure checkSomething(Z)
i = Z.LetterCount
while(i > 0){
if(ith letter of Z.Word is vowel){
return(0)
}
i = i - 1
}
return(1)
End checkSomething
```