Q42Comprehension2 Marks6 Aug 2023
Passage
The following pseudocode is executed using the Words dataset. Answer the subquestions based on this pseudocode.
```
sList = [], wList = [], flag = 0, count = 0
while(Table 1 has more rows) {
Read the first row X from Table 1
if(X.PartOfSpeech == "Adjective") {
count = count + 1
}
wList = wList ++ [X.Word]
if(X.Word ends with a full stop) {
flag = count
sList = sList ++ [wList]
wList = []
count = 0
}
Move row X to Table 2
}
```
The value of `length(sList)` will be the same as the number of sentences in the Words dataset at the end of execution of the given pseudocode.