Q20.The following pseudocode is executed using the "Words" dataset. What will `Count` represent at the end of execution?
```
A = 0, Flag = True
while(Table 1 has more cards){
Read the first row X from Table 1
if(X.LetterCount > A){
A = X.LetterCount
}
Move X to Table 2
}
B = 0, Count = 0
while(Table 2 has more cards){
Read the first row X from Table 2
if(X.LetterCount == A){
B = B + 1
}
if(X.Word ends with a full stop and B >= 2){
Count = Count + 1
B = 0
}
Move X to Table 3
}
```
Save
Check
Details
Q20
27 Oct 2024
Q20.The following pseudocode is executed using the "Words" dataset. What will `Count` represent at the end of execution?
```
A = 0, Flag = True
while(Table 1 has more cards){
Read the first row X from Table 1
if(X.LetterCount > A){
A = X.LetterCount
}
Move X to Table 2
}
B = 0, Count = 0
while(Table 2 has more cards){
Read the first row X from Table 2
if(X.LetterCount == A){
B = B + 1
}
if(X.Word ends with a full stop and B >= 2){
Count = Count + 1
B = 0
}
Move X to Table 3
}
```