Q20Single correct5 Marks24 Dec 2023
The following pseudocode is executed using the 'Words' dataset. What will count represent at the end of the execution?
```
count = 0
vList = [], nList = []
while(Table 1 has more rows){
Read the first row X in Table 1
if(X.PartOfSpeech == "Noun"){
nList = nList ++ [X.SeqNum]
}
if(X.PartOfSpeech == "Verb"){
vList = vList ++ [X.SeqNum]
}
Move X to table 2
}
foreach i in nList{
if(member(vList, i - 1) or member(vList, i + 1)){
count = count + 1
}
}
```