page-banner
Python M3-R5.1 MCQs SET-8
Q1.
निम्नलिखित में से कौन सी फाइल किसी टेक्स्ट एडिटर में खोली जा सकती है?<break-line><break-line>Which of the following file can be opened in any text editor?
A. Binary
B. text
C. Both of the above
D. None of the above
View Answer
Q2.
निम्नलिखित में से कौन सा एक सही है?<break-line><break-line>Which one of the following is correct?
A. Dictionary can have two same keys with different values
B. Dictionary can have two same values with different keys
C. Dictionary can have two same keys or same values but cannot have two same key-value pair
D. Dictionary can neither have two same keys nor two same values
View Answer
Q3.
Function के लिए किस कीवर्ड का प्रयोग किया जाता है?<break-line><break-line>Which keyword is used for function?
A. fun
B. def
C. define
D. function
View Answer
Q4.
निम्नलिखित कोड का उद्देश्य क्या है?<break-line><break-line>What is the purpose of the following code?<pre><code>import numpy as np z=[1,2,3] y=np.array(z)</code></pre>
A. to convert z to array
B. to convert z to list
C. Both of the above
D. None of the above
View Answer
Q5.
निम्न में से कौन सा आइटम फंक्शन हेडर में मौजूद है?<break-line><break-line>Which of the following items are present in the function header?
A. function name
B. parameter list
C. return value
D. Both (A) and B
View Answer