The "Scores" table has the rows below (rows are numbered from 1 at the top).
| No | Name | City | Maths |
|---|---|---|---|
| 1 | Jay | Kochi | 88 |
| 2 | Chitra | Chennai | 71 |
| 3 | Kavya | Kochi | 91 |
| 4 | Lakshman | Chennai | 51 |
| 5 | Isha | Pune | 75 |
| 6 | Gita | Chennai | 87 |
Here n = 6 and T[k] is the k-th row. The following pseudocode is executed.
count = 0i = 1while (i <= n - 1) { j = i + 1 while (j <= n) { if (T[i].City == T[j].City) { count = count + 1 } j = j + 1 } i = i + 1}Print countWhat is printed?
The "Scores" table has the rows below (rows are numbered from 1 at the top). No Name City Maths 1 Jay Kochi 88 2 Chitra Chennai 71 3 Kavya Kochi 91 4 Lakshman Chennai 51 5 Isha Pune 75 6 Gita Chennai 87 Here n = 6 and T[k] is the k-th row. The following pseudocode is executed. count = 0 i = 1 while (i <= n - 1) { j = i + 1 while (j <= n) { if (T[i].City == T[j].City) { count = count + 1 } j = j + 1 } i = i + 1 } Print count What is printed? The "Scores" table has the rows below (rows are numbered from 1 at the top). No Name City Maths 1 Chitra Jaipur 51 2 Isha Chennai 84 3 Kavya Pune 45 4 Omkar Chennai 78 5 Esha Delhi 89 Here n = 5 and T[k] is the k-th row. The following pseudocode is executed. count = 0 i = 1 while (i <= n - 1) { j = i + 1 while (j <= n) { if (T[i].Maths > T[j].Maths) { count = count + 1 } j = j + 1 } i = i + 1 } Print count What is printed? The "Scores" table has the rows below (rows are numbered from 1 at the top). No Name City Maths 1 Farid Jaipur 38 2 Chitra Chennai 74 3 Isha Delhi 51 4 Gita Jaipur 85 5 Priya Kochi 88 Here n = 5 and T[k] is the k-th row. The following pseudocode is executed. count = 0 i = 1 while (i <= n - 1) { j = i + 1 while (j <= n) { if (T[i].Maths + T[j].Maths > 120) { count = count + 1 } j = j + 1 } i = i + 1 } Print count What is printed?