page-banner
Chapter-5 (Part-1) Sequence Data Types
Q1.
निम्नलिखित में से कौन-सा अपरिवर्तनीय डेटा प्रकार है?<break-line><break-line>Which one of the following is immutable data type?
A. list
B. set
C. tuple
D. dict
View Answer
Q2.
किस प्रकार का डेटा है:<break-line><break-line>What type of data is:<pre><code>arr = [(1, 1), (2, 2), (3, 3)]</code></pre>
A. List of tuples
B. Tuples of lists
C. Array of tuples
D. Invalid type
View Answer
Q3.
किस डेटा प्रकार में इंडेक्सिंग मान्य नहीं है?<break-line><break-line>In which data type, indexing is not valid?
A. list
B. dictionary
C. string
D. none of the above
View Answer
Q4.
निम्नलिखित कोड का आउटपुट क्या है?<break-line><break-line>What is the output of following code?<pre><code>a = set('abc') b = set('cd') print(a ^ b)</code></pre>
A. {a,b,c,d}
B. {'c', 'b', 'a', 'd'}
C. {'b', 'a', 'd'}
D. None of these
View Answer
Q5.
टपल के 5वें एलिमेंट को 'Hello' कैसे सेट करें?<break-line><break-line>How can you set the 5th element of a tuple to 'Hello'?
A. arr[4] = 'Hello'
B. arr(4) = 'Hello'
C. Elements of tuple cannot be changed
D. arr[5] = 'Hello'
View Answer