Q3Multiple correct5 Marks28 Apr 2024
The following pseudocode is executed using the "Library" dataset. At the end of execution, N captures the name of a book written in the "Non-Fiction" genre with the maximum number of pages, and A captures the number of pages in the book.
```
A = 0, N = "None"
while(Table 1 has more rows){
Read the first row X in Table 1
if(X.Genre == "Non-Fiction" and X.Pages > A){
A = X.Pages
N = X.Name
}
Move X to Table 2
}
```
Suppose that the rows of the table are shuffled. Choose the incorrect options.