Which of the following are aggregate functions?
(A). max( )
(B). sum( )
(C). count( )
(D). std( )
Which of the following are aggregate functions?
(A). max( )
(B). sum( )
(C). count( )
(D). std( )
Solution
✅ Correct Option: 3
An aggregate function works on a set of values (a column or a group of rows) and returns a single value. All four given functions do this:
| Function | Returns |
|---|---|
| max( ) | largest value |
| sum( ) | total of the values |
| count( ) | number of values/rows |
| std( ) | standard deviation of the values |
Option 2: leaves out std( ), which students often skip because it feels like a statistics function and not a "basic" aggregate. It still reduces a column to one value, so it is an aggregate function.
Related questions:
2025: 16 May Shift 1
2026: 29 May Shift 1
2026: 13 May Shift 2