page-banner
Chapter-5 (Part-2) Sequence Data Types
Q31.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output after the following statements?<pre><code>m = {'Listen' :'Music', 'Play' : 'Games'} print(m.values())</code></pre>
A. dict_keys(['Listen', 'Play'])
B. dict_values(['Music', 'Games'])
C. dict_values({'Listen' :'Music', 'Play' : 'Games'})
D. dict_values({'Listen' : 'Games'})
View Answer
Q32.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output after the following statements?<pre><code>m = ['Play'] n = ['Games', 'in', 'Python'] o = m + n print(o)</code></pre>
A. ['Games', 'in', 'Python', 'Play']
B. ['Play Games', 'in', 'Python']
C. ['Play', 'Games', 'in', 'Python']
D. ['PlayGames', 'in', 'Python']
View Answer
Q33.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following statements?<pre><code>x = [[0.0, 1.0, 2.0],[4.0, 5.0, 6.0]] y = x[1][2] print(y)</code></pre>
A. 0.0
B. 1.0
C. 5.0
D. 6.0
View Answer
Q34.
इसका आउटपुट क्या होगा ?<break-line><break-line>What will be the output?<pre><code>t = (1, 2) 2 * t</code></pre>
A. (1, 2, 1, 2)
B. [1, 2, 1, 2]
C. (1, 1, 2, 2)
D. [1, 1, 2, 2]
View Answer
Q35.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following Python code?<pre><code>t1 = (1, 2, 3, 4) t1.append( (5, 6, 7) ) print(len(t1))</code></pre>
A. 1
B. 2
C. 5
D. Error
View Answer