page-banner
Chapter-5 (Part-2) Sequence Data Types
Q26.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following Python code?<pre><code>names = ['Amir', 'Bear', 'Charlton', 'Daman'] print(names[-1][-1])</code></pre>
A. A
B. Daman
C. Error
D. n
View Answer
Q27.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output after the following statements?<pre><code>m = [] for n in range(6): m.append(n*3) print(m)</code></pre>
A. [3, 6, 9, 12, 15]
B. [0, 3, 6, 9, 12]
C. [0, 3, 6, 9, 12, 15]
D. []
View Answer
Q28.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<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[0][1] + x[1][0] print(y)</code></pre>
A. 1.0
B. 4.0
C. 5.0
D. 6.0
View Answer
Q29.
निम्नलिखित पाइथन कोड स्निपेट का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following Python code snippet?<pre><code>a={1:"A",2:"B",3:"C"} del a</code></pre>
A. method del doesn’t exist for the dictionary
B. del deletes the values in the dictionary
C. del deletes the entire dictionary
D. del deletes the keys in the dictionary
View Answer
Q30.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?<break-line><break-line>What will be the output of the following statements?<pre><code>x = [5, 4, 3, 2] x.append(1) print(x)</code></pre>
A. [5, 4, 3, 2]
B. 5, 4, 3, 2, 1
C. 5432
D. [5, 4, 3, 2, 1]
View Answer