page-banner
Chapter-5 (Part-2) Sequence Data Types
Q16.
list1 के तीसरे पोजीशन पर 5 इन्सर्ट करने के लिए कौन से कमांड का प्रयोग करेंगे

To insert 5 to the third position in list1, we use which command?
A. list1.insert(3, 5)
B. list1.insert(2, 5)
C. list1.add(3, 5)
D. list1.append(3, 5)
View Answer
Q17.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?

What will be the output of the following statements?
x = [5, 3, 6, 2, 4, 0, 1]
del x[2:3]
print(x)
A. [5, 3, 6, 4, 0, 1]
B. [5, 3, 2, 4, 0, 1]
C. [5, 6, 2, 4, 0, 1]
D. [5, 4, 0, 1]
View Answer
Q18.
निम्नलिखित पाइथन कोड का आउटपुट क्या होगा ?

What will be the output of the following Python code?
num = [1, 2, 3, 4] 
num.append([5,6,7,8]) 
print(len(num))
A. 4
B. 5
C. 8
D. 12
View Answer
Q19.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?

What will be the output after the following statements?
m = [n*4 for n in range(3)]
print(m)
A. [0, 0, 0]
B. [0, 4, 8]
C. [0, 4, 8, 12]
D. [0, 4, 8, 12, 16]
View Answer
Q20.
निम्नलिखित स्टेटमेंट्स का आउटपुट क्या होगा ?

What will be the output of the following statements?
x = [24, 50, 37]
y = 24 in x
print(y)
A. x[0]
B. [24]
C. True
D. False
View Answer

Create Account