page-banner
Chapter-5 (Part-1) Sequence Data Types
Q16.
q.pop(1) के बाद सूची में क्या आइटम होंगे?<break-line><break-line>What will be the items of list q after q.pop(1) if<pre><code>q = [3, 4, 5, 20, 5, 25, 1, 3]</code></pre>
A. [3, 4, 5, 20, 5, 25, 1, 3]
B. [1, 3, 3, 4, 5, 5, 20, 25]
C. [3, 5, 20, 5, 25, 1, 3]
D. [1, 3, 4, 5, 20, 5, 25]
View Answer
Q17.
निम्नलिखित में से किस डेटा प्रकार में डुप्लीकेट आइटम की अनुमति नहीं है?<break-line><break-line>In which of the following data types are duplicate items not allowed?
A. list
B. dictionary
C. set
D. None of these
View Answer
Q18.
निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><code>a = set('dcma') b = set('mlpc') print(a ^ b)</code></pre>
A. {'d', 'c', 'm', 'a', 'm', 'l', 'p', 'c'}
B. {'m', 'l', 'p', 'c'}
C. {'d', 'c', 'm', 'a'}
D. None of these
View Answer
Q19.
निम्नलिखित कथन का आउटपुट क्या है?<break-line><break-line>What is the output of the following statement?<pre><code>print((2, 4) + (1, 5))</code></pre>
A. (2, 4), (4, 5)
B. (3, 9)
C. (2, 4, 1, 5)
D. Invalid Syntax
View Answer
Q20.
निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><code>dict = {"Joey": 1, "Rachel": 2} dict.update({"Phoebe": 2}) print(dict)</code></pre>
A. {"Joey":1,"Rachel":2,"Phoebe":2}
B. {"Joey":1,"Rachel":2}
C. {"Joey":1,"Phoebe":2}
D. Error
View Answer