Q22.The following pseudocode is executed using the "Words" dataset. At the end of the execution, `A` captures the number of nouns with letter count at least four and at most eight. Choose the correct code fragment(s) to complete the pseudocode. It is a Multiple Select Question (MSQ).
```
A = 0
while(Table 1 has more cards){
Read the first row X from Table 1
if(CheckSomething(X, 4, 8)){
A = A + 1
}
Move X to Table 2
}
Procedure CheckSomething(Y, C1, C2)
if(Y.PartOfSpeech == "Noun"){
************************
*****Fill the code******
************************
}
else{
return(False)
}
End CheckSomething
```
Save
Check
Details
Q22
7 Jul 2024
Q22.The following pseudocode is executed using the "Words" dataset. At the end of the execution, `A` captures the number of nouns with letter count at least four and at most eight. Choose the correct code fragment(s) to complete the pseudocode. It is a Multiple Select Question (MSQ).
```
A = 0
while(Table 1 has more cards){
Read the first row X from Table 1
if(CheckSomething(X, 4, 8)){
A = A + 1
}
Move X to Table 2
}
Procedure CheckSomething(Y, C1, C2)
if(Y.PartOfSpeech == "Noun"){
************************
*****Fill the code******
************************
}
else{
return(False)
}
End CheckSomething
```