Q8.The following pseudocode is executed using the Words dataset. What will `Count` represent at the end of execution?
```
A = 0, MinVowelRatio = 2
while(Table 1 has more rows){
Read the first row X from Table 1
Ratio = CountVowels(X) / X.LetterCount
if(Ratio < MinVowelRatio){
MinVowelRatio = Ratio
}
Move X to Table 2
}
Count = 0
while(Table 2 has more rows){
Read the first row X from Table 2
if(CountVowels(X) / X.LetterCount == MinVowelRatio){
if(X.Word ends with a full stop){
Count = Count + 1
}
}
Move X to Table 3
}
Procedure CountVowels(Y)
i = 1
B = 0
while(i <= Y.LetterCount){
if(ith letter of Y.Word is a vowel){
B = B + 1
}
i = i + 1
}
return(B)
End CountVowels
```
Save
Check
Details
Q8
13 Jul 2025
Q8.The following pseudocode is executed using the Words dataset. What will `Count` represent at the end of execution?
```
A = 0, MinVowelRatio = 2
while(Table 1 has more rows){
Read the first row X from Table 1
Ratio = CountVowels(X) / X.LetterCount
if(Ratio < MinVowelRatio){
MinVowelRatio = Ratio
}
Move X to Table 2
}
Count = 0
while(Table 2 has more rows){
Read the first row X from Table 2
if(CountVowels(X) / X.LetterCount == MinVowelRatio){
if(X.Word ends with a full stop){
Count = Count + 1
}
}
Move X to Table 3
}
Procedure CountVowels(Y)
i = 1
B = 0
while(i <= Y.LetterCount){
if(ith letter of Y.Word is a vowel){
B = B + 1
}
i = i + 1
}
return(B)
End CountVowels
```