Q28Single correct3 Marks29 Oct 2023
The given procedure is executed using the "Library" dataset (Table 1). `selected("Narayan", "Fiction", 10)` will return True if
```
Procedure selected(auth, gen, num)
countT = 0, countG = 0
while(Table 1 has more rows) {
Read the first row X from Table 1
if(X.Author == auth) {
countT = countT + 1
if(X.Genre == gen) {
countG = countG + 1
}
}
Move X to Table 2
}
if(countG / countT >= num / 100) {
return(True)
}
return(False)
End selected
```