Q49.The following pseudocode is executed using the "Library" dataset. At the end of the execution, `N` captures the name of a book written in a language other than English 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.Language != "English" and X.Pages > A){
A = X.Pages
N = X.Name
}
Move X to Table 2
}
```
Assume that the rows of the table are shuffled in any random order. Choose the correct option(s).
Save
Check
Details
Q49
5 Jun 2022
Q49.The following pseudocode is executed using the "Library" dataset. At the end of the execution, `N` captures the name of a book written in a language other than English 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.Language != "English" and X.Pages > A){
A = X.Pages
N = X.Name
}
Move X to Table 2
}
```
Assume that the rows of the table are shuffled in any random order. Choose the correct option(s).