page-banner
Chapter-6 (Part-2) Python Function
Q41.
निम्नलिखित स्टेटमेंट के बाद आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following statements?<pre><code>import math print(math.pow(3,2))</code></pre>
A. 6
B. 9
C. 6.0
D. 9.0
View Answer
Q42.
निम्नलिखित कथन क्या करते हैं?<break-line><break-line>What does the following statements do?<pre><code>import datetime print(datetime.datetime.today())</code></pre>
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.
निम्नलिखित कथन क्या करते हैं?<break-line><break-line>What does the following statements do?<pre><code>from datetime import * print(getattr(datetime.today(),'hour'))</code></pre>
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.
निम्नलिखित कथन क्या करते हैं?<break-line><break-line>What does the following statements do?<pre><code>from datetime import * print(getattr(datetime.today(),'year'))</code></pre>
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.
निम्नलिखित कथन क्या करते हैं?<break-line><break-line>What does the following statements do?<pre><code>from datetime import * print(datetime.today().strftime('%A'))</code></pre>
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