Report Bug

Qus

What will be the output of the following Python code?

import time

time.asctime()

Qusनिम्नलिखित Python कोड का आउटपुट क्या होगा?


A. Current date only
B. UTC time
C. Current date and time
D. Current time only


Solution
C. Current date and time



Explanation
The function time.asctime(), present if the time module can be used to return the current date and time. It can also accept a parameter and return the date and time in a particular format. However in the above code, since we have not passed any parameters in the above code, the current date and time is returned.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad