page-banner
Python M3-R5.1 MCQs SET-16
Q11.
निम्नलिखित में से किस की अभिव्यक्ति में सर्वोच्च प्राथमिकता है?<break-line><break-line>Which one of the following has the highest precedence in the expression?
A. Division
B. Subtraction
C. Power
D. Parentheses
View Answer
Q12.
डेटाटाइम में कनवर्ट करने के लिए उपयोग किया जाने वाला फ़ंक्शन है:<break-line><break-line>The function used to convert to datetime is :
A. Convert_todatetime()
B. To_datetime()
C. Datetime_to()
D. Todate()
View Answer
Q13.
कौन सी List Index उपरोक्त List से 'red' मान का चयन करेगी<break-line><break-line>Which list index would select the value 'red' from the above list<pre><code>colors = ["red", "green", "burnt sienna", "blue"]</code></pre>
A. "red"
C. 1
D. -4
View Answer
Q14.
आउटपुट क्या होगा<break-line><break-line>What will be the output of<pre><code>squares = {x: x*x for x in range(6)}</code></pre>
A. [0, 1, 4, 9, 16, 25]
B. [0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25]
C. {0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
D. Error 59. x = [10, [3.141, 20, [30, 'baz', 2.718]], 'foo']
View Answer
Q15.
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code snippet?<pre><code>a = [0, 1, 2, 3] for a[0] in a: print(a[0])</code></pre>
A. 0 1 2 3
B. 0 1 2 2
C. 3 3 3 3
D. error
View Answer