page-banner
Chapter-5 (Part-1) Sequence Data Types
Q41.
निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><code>a = {1: "A", 2: "B", 3: "C"} b = {4: "D", 5: "E"} a.update(b) print(a)</code></pre>
A. {1: 'A', 2: 'B', 3: 'C'}
B. {1: 'A', 2: 'B', 3: 'C', 4: 'D', 5: 'E'}
C. {4: 'D', 5: 'E'}
D. Error in Code
View Answer
Q42.
निम्नलिखित पाइथन कोड का परिणाम क्या है?<break-line><break-line>What will be the output of the following Python code?<pre><code>len(["hello", 2, 4, 6])</code></pre>
A. Error
B. 6
C. 4
D. 3
View Answer
Q43.
पायथन में सूचियों के संबंध में निम्नलिखित में से कौन सा सही है?<break-line><break-line>Which of the following is True regarding lists in Python?
A. Lists are immutable.
B. Size of the lists must be specified before its initialization
C. Elements of lists are stored in contagious memory location.
D. size(list1) command is used to find the size of lists.
View Answer
Q44.
लिस्ट 1 [4, 2, 2, 4, 5, 2, 1, 0] है, कौन सा स्लाइसिंग ऑपरेशन सही है?<break-line><break-line>Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], which of the following is correct syntax for slicing?
A. print(list1[2:])
B. print(list1[:2])
C. print(list1[:-2])
D. all of the mentioned
View Answer
Q45.
निम्नलिखित पाइथन कोड का परिणाम क्या है?<break-line><break-line>What will be the output of the following Python code?<pre><code>d1 = { "abc" : 5, "def" : 6, "ghi" : 7 } print(d1[0])</code></pre>
A. abc
B. 5
C. { "abc" : 5 }
D. Error
View Answer