Q6.The following pseudocode is executed using the "Words" dataset. What will `count` represent at the end of execution?
```
count = 0
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
i = 1, A = False, B = False
while(i <= X.LetterCount){
if(ith letter of X.Word is a vowel){
if(A){
B = True
}
A = True
}
else{
A = False
}
i = i + 1
}
if(B){
count = count + 1
}
}
```
Save
Check
Details
Q6
25 Feb 2024
Q6.The following pseudocode is executed using the "Words" dataset. What will `count` represent at the end of execution?
```
count = 0
while(Table 1 has more rows){
Read the first row X in Table 1
Move X to Table 2
i = 1, A = False, B = False
while(i <= X.LetterCount){
if(ith letter of X.Word is a vowel){
if(A){
B = True
}
A = True
}
else{
A = False
}
i = i + 1
}
if(B){
count = count + 1
}
}
```