page-banner
Chapter-5 (Part-1) Sequence Data Types
Q21.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following Python code?<pre><code>t1 = (1, 2, 4, 3) t2 = (1, 2, 3, 4) t1 < t2</code></pre>
A. True
B. False
C. error in code
D. (1, 2, 4, 3)
View Answer
Q22.
निम्नलिखित में से कौन सा सेट बनाने के लिए सही सिंटैक्स नहीं है?<break-line><break-line>Which of the following is not the correct syntax for creating a set?
A. set([[1,2],[3,4]])
B. set([1,2,2,3,4])
C. set((1,2,3,4))
D. {1,2,3,4}
View Answer
Q23.
टपल में मानों तक पहुँचने के लिए स्क्वायर ब्रैकेट का उपयोग करें।<break-line><break-line>To access values in tuple, use square brackets for slicing along with index.
A. True
B. False
C. can’t say
D. None of these
View Answer
Q24.
अलग-अलग टपल एलिमेंट को हटाना संभव है।<break-line><break-line>Removing individual tuple elements is possible.
A. True
B. False
C. can’t say
D. None of these
View Answer
Q25.
दाईं ओर से नकारात्मक गिनती<break-line><break-line>Negative count from the right.
A. L[-2]
B. L[-1]
C. L[-end]
D. L[-10]
View Answer