Q43.The following pseudocode is executed using the "Words" dataset. What will `count` represent at the end of the execution?
```
count = 0, Flag = False
while(Table 1 has more rows){
Read the first row X in Table 1
if(X.PartOfSpeech == "Noun"){
Flag = True
}
else{
if(Flag and X.PartOfSpeech == "Verb"){
count = count + 1
}
}
Move X to Table 2
}
```
Save
Check
Details
Q43
16 Oct 2022
Q43.The following pseudocode is executed using the "Words" dataset. What will `count` represent at the end of the execution?
```
count = 0, Flag = False
while(Table 1 has more rows){
Read the first row X in Table 1
if(X.PartOfSpeech == "Noun"){
Flag = True
}
else{
if(Flag and X.PartOfSpeech == "Verb"){
count = count + 1
}
}
Move X to Table 2
}
```