Online Exam Quiz
Menu mobile
Home
GK Today
Subject
CCC Online Test
O Level Online Test
Coding
Python
: Modules in Python
<p>18 जून, 2017 (रविवार) को सिस्टम की तारीख के बाद निम्न पायथन कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import datetime<br></span><span style="font-size: 14px;">tday=datetime.date.today() <br></span><span style="font-size: 14px;">print(tday)</span></pre> , <p>What will be the output of the following Python code if the system date is 18th June, 2017 (Sunday)?</p><pre><span style="font-size: 14px;">import datetime<br></span><span style="font-size: 14px;">tday=datetime.date.today() <br></span><span style="font-size: 14px;">print(tday)</span></pre><div><br></div>
<p>18 जून, 2017 (रविवार) को सिस्टम की तारीख के बाद निम्न पायथन कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import datetime<br></span><span style="font-size: 14px;">tday=datetime.date.today() <br></span><span style="font-size: 14px;">print(tday)</span></pre>
<p>What will be the output of the following Python code if the system date is 18th June, 2017 (Sunday)?</p><pre><span style="font-size: 14px;">import datetime<br></span><span style="font-size: 14px;">tday=datetime.date.today() <br></span><span style="font-size: 14px;">print(tday)</span></pre><div><br></div>
A. 18-06-2017
B. 06-18-2017
C. 2017-06-18
D. एरर
(Error)
Correct Answer :
C. 2017-06-18
Explanation
The code shown above prints the system date in the format yyyy-mm-dd. Hence the output of this code is: 2017-06-18.
Latest Current Affairs 2026
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test , CCC MCQ
Python Coding Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Website development Company in Allahabad