Q47.The following pseudocode is executed using the Library dataset. `P` is a list of authors who have written books in English. `dict[X]` stores the number of books having at least 100 pages and written on or before 2000 by author `X`. 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
Q47
6 Aug 2023
Q47.The following pseudocode is executed using the Library dataset. `P` is a list of authors who have written books in English. `dict[X]` stores the number of books having at least 100 pages and written on or before 2000 by author `X`. 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
}
```