page-banner
Chapter-5 (Part-2) Sequence Data Types
Q1.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following statements?<pre><code>x = ['25', 'Today', '53', 'Sunday', '15'] x.sort() print(x)</code></pre>
A. ['Today', 'Sunday', '15', '25', '53']
B. ['Sunday', 'Today', '15', '25', '53']
C. ['15', '25', '53', 'Sunday', 'Today']
D. ['15', '25', '53', 'Today', 'Sunday']
View Answer
Q2.
निम्नलिखित का आउटपुट क्या होगा ?<break-line><break-line>What is the output of the following?<pre><code>d = {0: 'a', 1: 'b', 2: 'c'} for i in d: print(i)</code></pre>
A. 0 1 2
B. a b c
C. 0 a 1 b 2 c
D. none of the mentioned
View Answer
Q3.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following statements?<pre><code>x = [25, 'Today', 53, 'Sunday', 15] x.reverse() print(x)</code></pre>
A. ['Today', 'Sunday', 15, 25, 53]
B. [15, 'Sunday', 53, 'Today', 25]
C. [15, 25, 53, 'Sunday', 'Today']
D. [15, 25, 53, 'Today', 'Sunday']
View Answer
Q4.
निम्न्लिखित्ब में कौन सी कमांड लिस्ट बनाता है<break-line><break-line>Which of the following commands will create a list?
A. list1 = list()
B. list1 = []
C. list1 = list([1, 2, 3])
D. all of the
View Answer
Q5.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output after the following statements?<pre><code>m = {'Listen' :'Music', 'Play' : 'Games'} n = list(m.items()) print(n)</code></pre>
A. [('Listen', 'Music'), ('Play', 'Games')]
B. [('Listen', 'Music')]
C. [('Play', 'Games')]
D. ('Play', 'Games'), ('Listen', 'Music')
View Answer