Skip to main contentSkip to solution

Consider the following table 'Student'.

Student

RollNoMarks
1013
2013
3013

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.

FunctionWorkingOutput
MAX(Marks)largest of 3, 3, 33
MIN(Marks)smallest of 3, 3, 33
AVG(Marks)3+3+33\dfrac{3+3+3}{3}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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question