Prasnya
Prasnya
Prasnya
Continue with Google
Question 28 - Week 3 Practice | Prasnya
Q28
00:00
29 Oct 2023
Q28.
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 ```
A
At least 10 percent of the books written by Narayan are in the genre Fiction.
B
At most 10 percent of the books written by Narayan are in the genre Fiction.
C
At least 10 books written by Narayan are in the genre Fiction.
D
At most 10 books written by Narayan are in the genre Fiction.
Save
Check
Details
Q28
00:00
29 Oct 2023
Q28.
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 ```
A
At least 10 percent of the books written by Narayan are in the genre Fiction.
B
At most 10 percent of the books written by Narayan are in the genre Fiction.
C
At least 10 books written by Narayan are in the genre Fiction.
D
At most 10 books written by Narayan are in the genre Fiction.
Save
Check
Details