MCQ Practice Single Best Answer Topic: Python Module MCQ

Q What does the following statements do?
from datetime import *
print(datetime.today().strftime('%d'))

Question ID
#3574
Subchapter
Python Module MCQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A Displays the hour number of 12-hour clock
  • B Displays the date and time appropriate for locale
  • C Displays the day of the month number (from 01 to 31)
  • D Displays the microsecond number (from 0 to 999999)
Correct Answer: C

Explanation

Displays the day of the month number (from 01 to 31)

Share This Question

Share this MCQ with your friends or study group.