page-banner
Chapter-5 (Part-1) Sequence Data Types
Q36.
list1 में एक तत्व (5) जोड़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?<break-line><break-line>Which function is used to add an element (5) in the list1?
A. list1.sum(5)
B. list1.add(5)
C. list1.append(5)
D. list1.addelement(5)
View Answer
Q37.
की वैल्यू पेअर होता है .............. में.<break-line><break-line>Key-value pair is found in __________.
A. list
B. set
C. tuple
D. dictionary
View Answer
Q38.
__________ ऑपरेटर दिए गए आइटम्स की संख्या के लिए एक सूची को दोहराता है<break-line><break-line>__________ operator repeats a list for the given number of items.
A. pow
B. *
C. repeat
D. None of these
View Answer
Q39.
निम्नलिखित पायथन कोड का आउटपुट क्या है?<break-line><break-line>What is the output of the following Python code?<pre><code>tuple1 = (5, 1, 7, 6, 2) tuple1.pop(2) print(tuple1)</code></pre>
A. (5, 1, 6, 2)
B. (5, 1, 7, 6)
C. (5, 1, 7, 6, 2)
D. Error
View Answer
Q40.
जब हम list("hello") निष्पादित करते हैं तो आउटपुट क्या होता है?<break-line><break-line>What is the output when we execute list("hello")?
A. ['h', 'e', 'l', 'l', 'o']
B. [' hello']
C. ['llo']
D. ['olleh']
View Answer