Skip to main contentSkip to solution

Which of the following statements are correct?

A. SELECT DAY("2003-03-24"); ------ will return 24

B. SELECT MONTHNAME("2003-03-24"); ------ will return 03

C. SELECT YEAR(“2003-10- 03”); ------ will return 2003

D. SELECT DATE(NOW()); ------ will return date part of current system date

Solution

✅ Correct Option: 1

A, C and D are correct. DAY() returns the day of the month, so A gives 24. YEAR() returns the year part, so C gives 2003. DATE(NOW()) strips the time from the current date and time, leaving only the date part, so D is correct.


Statement B is wrong because MONTHNAME("2003-03-24") returns the name March, not the number 03.

MONTH("2003-03-24") returns the number 3.

Keyboard Shortcuts

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