page-banner
Chapter-5 (Part-2) Sequence Data Types
Q21.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output after the following statements?<pre><code>m = [-5, -2, 0, 3, 4] print([n*2 for n in m])</code></pre>
A. [-10, -4, 0, 6, 8]
B. [10, 4, 0, 6, 8]
C. [-10, -4, 0, 6]
D. [-10, -4, 0]
View Answer
Q22.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following Python code?<pre><code>a={1:5,2:3,3:4} a.pop(3) print(a)</code></pre>
A. {1: 5}
B. {1: 5, 2: 3}
C. Error
D. pop() function not exist in dict
View Answer
Q23.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output after the following statements?<pre><code>m = list(range(7,10)) print(m)</code></pre>
A. [7, 8, 9, 10]
B. list([7, 8, 9])
C. [7, 8, 9]
D. 789
View Answer
Q24.
निम्नलिखित पाइथन कोड स्निपेट का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following Python code snippet?<pre><code>a = [0, 1, 2, 3] for a[0] in a: print(a[0])</code></pre>
A. 0 1 2 3
B. 0 1 2 2
C. 3 3 3 3
D. error
View Answer
Q25.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following statements?<pre><code>x = [5, 4, 3, 2] x.insert(1, 0) print(x)</code></pre>
A. [5, 1, 3, 2, 0]
B. [5, 0, 4, 3, 2]
C. [0, 5, 4, 3, 2]
D. [1, 5, 4, 3, 2]
View Answer