page-banner
Chapter-3 Introduction to Python
Q46.
यदि arr नाम की एक सूची में 5 तत्व हैं, तो दूसरा तत्व कैसे प्राप्त करें?<break-line><break-line>Suppose a list with name arr contains 5 elements. You can get the 2nd element from the list using:
A. arr[-2]
B. arr[2]
C. arr[-1]
D. arr[1]
View Answer
Q47.
key और value के रूप में data store करने के लिए कौन सा data type प्रयोग किया जाता है?<break-line><break-line>In order to store values in terms of key and value we use what core data type.
A. list
B. tuple
C. class
D. dictionary
View Answer
Q48.
निम्न में से किस data type में duplicate items की अनुमति नहीं होती?<break-line><break-line>In which of the following data type, duplicate items are not allowed?
A. list
B. dictionary
C. set
D. None of above
View Answer
Q49.
निम्न कोड का आउटपुट क्या होगा?<break-line><break-line>What is the output of the following code?<pre><code>ms = ('A', 'D', 'H', 'U', 'N', 'I', 'C') print( ms[1:4] )</code></pre>
A. ('D', 'H', 'U')
B. ('A', 'D', 'H', 'U', 'N', 'I', 'C')
C. ('D', 'H', 'U', 'N', 'I', 'C')
D. None of these
View Answer
Q50.
>>> “2” + “3” का आउटपुट क्या होगा?<break-line><break-line>What is the output of >>> “2” + “3”
A. 2 3
B. 2+3
C. '23'
D. None of these
View Answer