Consider the date '2026-02-27'. What will be the output of the following…

2026

Consider the date '2026-02-27'. What will be the output of the following query?
SELECT DAYNAME('2026-02-27');

  1. A.

    27

  2. B.

    February

  3. C.

    Friday

  4. D.

    02

Attempted by 425 students.

Show answer & explanation

Correct answer: C

The SQL function DAYNAME() returns the name of the weekday for a given date. To find the output, calculate the day of the week for February 27, 2026. Since January 1, 2026 is a Thursday, February 27 falls on a Friday. Thus, the query returns 'Friday'.

Explore the full course: Up Lt Grade Assistant Teacher 2025