Consider the following table 'Student'.
Student
RollNo Marks 101 3 201 3 301 3
Which of the following statements will give the same output?
(A) MAX(Marks)
(B) MIN(Marks)
(C) AVG(Marks)
(D) COUNT(Marks)
Consider the following table 'Student'.
Student
| RollNo | Marks |
|---|---|
| 101 | 3 |
| 201 | 3 |
| 301 | 3 |
Which of the following statements will give the same output?
(A) MAX(Marks)
(B) MIN(Marks)
(C) AVG(Marks)
(D) COUNT(Marks)
Solution
✅ Correct Option: 1
All three Marks values are 3, so each function returns 3.
| Function | Working | Output |
|---|---|---|
| MAX(Marks) | largest of 3, 3, 3 | 3 |
| MIN(Marks) | smallest of 3, 3, 3 | 3 |
| AVG(Marks) | 3 | |
| COUNT(Marks) | number of non-NULL values in Marks (3 rows) | 3 |
Option 3: COUNT returns the number of values, not their size. It gives 3 here only because the table has 3 rows, and it still equals the other outputs.
Related questions:
2025: 20 May Shift 1
2025: 27 May Shift 2
2026: 24 May Shift 1