Q16Single correct6 Marks28 Apr 2024
The following pseudocode is executed using the "Words" dataset. Assume that the rows in the table are sorted in ascending order of sequence number.
```
inList = [], count = 0
while(Table 1 has more rows){
Read the first row X in Table 1
inList = inList ++ [[X.Word, X.PartOfSpeech]]
Move X to Table 2
}
********************
* Fill the code *
********************
```
Choose the correct code fragment so that, after executing the pseudocode above, count represents the number of nouns in the paragraph and someVar represents the number of words in the paragraph.