page-banner
Chapter-5 (Part-2) Sequence Data Types
Q11.
निम्नलिखित पीस ऑफ़ कोड का आउटपुट क्या होगा ?<break-line><break-line>What is the output of the following piece of code?<pre><code>a=list((45,)*4) print(a)</code></pre>
A. [(45),(45),(45),(45)]
B. (45,45,45,45)
C. [45,45,45,45]
D. Syntax error
View Answer
Q12.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following Python code?<pre><code>list1 = [1, 2, 3, 4] list2 = [5, 6, 7, 8] print(len(list1 + list2))</code></pre>
A. 2
B. 4
C. 5
D. 8
View Answer
Q13.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following Python code?<pre><code>a=[14,52,7] b=a.copy() b is a</code></pre>
A. True
B. False
C. Can’t say
D. None of these
View Answer
Q14.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following statements?<pre><code>x = [5, 4, 3, 2, 1] x.extend(x) print(x)</code></pre>
A. [5, 4, 3, 2, 1]
B. []
C. [1, 2, 3, 4, 5]
D. [5, 4, 3, 2, 1, 5, 4, 3, 2, 1]
View Answer
Q15.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output after the following statements?<pre><code>m = {'Listen' :'Music', 'Play' : 'Games'} n = m['Play'] print(n)</code></pre>
A. Listen
B. Music
C. Play
D. Games
View Answer