page-banner
Chapter-6 (Part-2) Python Function
Q41.
निम्नलिखित स्टेटमेंट के बाद आउटपुट क्या होगा ?

What will be the output of the following statements?
import math
print(math.pow(3,2))
A. 6
B. 9
C. 6.0
D. 9.0
View Answer
Q42.
निम्नलिखित कथन क्या करते हैं?

What does the following statements do?
import datetime
print(datetime.datetime.today())
A. Displays current date and time
B. Displays a list of all the hours remaining till midnight
C. Displays a random time from today's date
D. Displays today's weekday name
View Answer
Q43.
निम्नलिखित कथन क्या करते हैं?

What does the following statements do?
from datetime import *
print(getattr(datetime.today(),'hour'))
A. Displays current date and time
B. Displays a list of all the hours remaining till midnight
C. Displays current hour of the day
D. Displays the number of hours in a day
View Answer
Q44.
निम्नलिखित कथन क्या करते हैं?

What does the following statements do?
from datetime import *
print(getattr(datetime.today(),'year'))
A. Displays current date and year
B. Displays current year
C. Displays the number of months in a year
D. Displays the number of days in a year
View Answer
Q45.
निम्नलिखित कथन क्या करते हैं?

What does the following statements do?
from datetime import *
print(datetime.today().strftime('%A'))
A. Displays the full month name
B. Displays the abbreviated month name
C. Displays the abbreviated day name
D. Displays the full weekday name
View Answer

Create Account