Q41.
निम्नलिखित कोड का परिणाम क्या है?
What is the output of the following code?a = {1: "A", 2: "B", 3: "C"}
b = {4: "D", 5: "E"}
a.update(b)
print(a)
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
Correct Answer: {1: 'A', 2: 'B', 3: 'C', 4: 'D', 5: 'E'}
Q43.
पायथन में सूचियों के संबंध में निम्नलिखित में से कौन सा सही है?
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
Correct Answer: Elements of lists are stored in contagious memory location.
Q44.
लिस्ट 1 [4, 2, 2, 4, 5, 2, 1, 0] है, कौन सा स्लाइसिंग ऑपरेशन सही है?
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
Correct Answer: all of the mentioned