Question 1
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?