Table 1 holds the "Scores" dataset.
| Name | City | Maths | Physics |
|---|---|---|---|
| Nikhil | Jaipur | 96 | 91 |
| Dev | Kochi | 95 | 48 |
| Farid | Chennai | 81 | 32 |
| Asha | Kochi | 39 | 65 |
| Omkar | Kochi | 30 | 91 |
| Meena | Pune | 98 | 90 |
| Kavya | Kochi | 98 | 86 |
The following pseudocode is executed.
max = 0while (Table 1 has more rows) { Read the first row X in Table 1 if (X.Maths > max) { max = X.Maths } Move X to Table 2}count = 0while (Table 2 has more rows) { Read the first row Y in Table 2 if (Y.Maths == max) { count = count + 1 } Move Y to Table 3}Print countWhat is printed?
Table 1 holds the "Scores" dataset. Name City Maths Physics Nikhil Jaipur 96 91 Dev Kochi 95 48 Farid Chennai 81 32 Asha Kochi 39 65 Omkar Kochi 30 91 Meena Pune 98 90 Kavya Kochi 98 86 The following pseudocode is executed. max = 0 while (Table 1 has more rows) { Read the first row X in Table 1 if (X.Maths > max) { max = X.Maths } Move X to Table 2 } count = 0 while (Table 2 has more rows) { Read the first row Y in Table 2 if (Y.Maths == max) { count = count + 1 } Move Y to Table 3 } Print count What is printed? Table 1 holds the "Scores" dataset. Name City Maths Physics Priya Chennai 89 81 Gita Delhi 34 34 Isha Chennai 40 75 Bhavin Chennai 40 30 Omkar Pune 69 61 Jay Pune 68 41 The following pseudocode is executed. total = 0 while (Table 1 has more rows) { Read the first row X in Table 1 total = total + X.Physics Move X to Table 2 } count = 0 while (Table 2 has more rows) { Read the first row Y in Table 2 if (Y.Physics * 4 > total) { count = count + 1 } Move Y to Table 3 } Print count What is printed? Table 1 holds the "Scores" dataset. Name City Maths Physics Nikhil Chennai 74 53 Esha Kochi 98 95 Hari Delhi 41 31 Meena Pune 86 95 Asha Chennai 42 90 Gita Jaipur 94 41 The following pseudocode is executed. best = 0 while (Table 1 has more rows) { Read the first row X in Table 1 if (X.Maths + X.Physics > best) { best = X.Maths + X.Physics } Move X to Table 2 } count = 0 while (Table 2 has more rows) { Read the first row Y in Table 2 if (Y.Maths + Y.Physics >= best - 10) { count = count + 1 } Move Y to Table 3 } Print count What is printed?