Q33.What will `Count` represent at the end of execution? The following pseudocode is executed using the "Words" dataset.
```
Count = 0
while(Table 1 has more rows) {
Read the first row X from Table 1
Move X to Table 2
Letter = "i", C = 0
i = 1, A = False
while(i <= X.LetterCount) {
if(ith letter of X.Word is a vowel) {
if(A and Letter == ith letter of X.Word) {
C = 1
}
Letter = ith letter of X.Word
A = True
}
else {
A = False
}
i = i + 1
}
if(C == 1) {
Count = Count + 1
}
}
```
Save
Check
Details
Q33
29 Oct 2023
Q33.What will `Count` represent at the end of execution? The following pseudocode is executed using the "Words" dataset.
```
Count = 0
while(Table 1 has more rows) {
Read the first row X from Table 1
Move X to Table 2
Letter = "i", C = 0
i = 1, A = False
while(i <= X.LetterCount) {
if(ith letter of X.Word is a vowel) {
if(A and Letter == ith letter of X.Word) {
C = 1
}
Letter = ith letter of X.Word
A = True
}
else {
A = False
}
i = i + 1
}
if(C == 1) {
Count = Count + 1
}
}
```