Q12.The following pseudocode is executed using the "Library" dataset. Let `P` be a list of authors. After the execution of the pseudocode below, `dict[X]` should store the number of books having at least 200 pages and written in or after year 2000 by author `X` from the list `P`. Choose the correct code fragment(s) to complete the pseudocode.
```
dict = {}
foreach author in P {
dict[author] = 0
}
while(Table 1 has more rows) {
Read the first row X from Table 1
************************
**** Fill the Code *
************************
Move X to Table 2
}
```
Save
Check
Details
Q12
3 Aug 2025
Q12.The following pseudocode is executed using the "Library" dataset. Let `P` be a list of authors. After the execution of the pseudocode below, `dict[X]` should store the number of books having at least 200 pages and written in or after year 2000 by author `X` from the list `P`. Choose the correct code fragment(s) to complete the pseudocode.
```
dict = {}
foreach author in P {
dict[author] = 0
}
while(Table 1 has more rows) {
Read the first row X from Table 1
************************
**** Fill the Code *
************************
Move X to Table 2
}
```