MCQ Practice Single Best Answer Topic: Python Module MCQ

Q What does the following statements do?


from datetime import *
print(datetime.today().strftime('%X'))

Question ID
#3587
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 current year as 0001 to 9999
  • B Displays the timezone name
  • C Displays the time appropriate for locale
  • D Displays the current year as 00 to 99
Correct Answer: C

Explanation

Displays the time appropriate for locale

Share This Question

Share this MCQ with your friends or study group.