O Level - Sequence Data Types In Python
Questions No: 1/50

What will be the output of the following Python code snippet?

d = {"john":40, "peter":45}
print(d["john"])

Questions No: 2/50

Which of the following is the correct way to check if a value exists in a list?
किसी लिस्ट में कोई मान मौजूद है या नहीं इसकी जाँच करने का निम्नलिखित में से कौन सा सही तरीका है?

Questions No: 3/50

Which of the following is not a declaration of the dictionary?
निम्नलिखित में से कौन सा ड़िक्शनरी का डिक्लेरेशन नहीं है?

Questions No: 4/50

Which of the following functions cannot be used on heterogeneous sets?
निम्न में से किस फ़ंक्शन का यूज़ हेटरजीन्यस सेटों पर नहीं किया जा सकता है?

Questions No: 5/50

What is the output when we execute list(“hello”)?
जब हम लिस्ट ("हैलो") एक्सक्यूट करते हैं तो आउटपुट क्या है?

Questions No: 6/50

Which method is used to add an element to the end of a list?
किसी लिस्ट के एन्ड में कोई एलिमेंट्स जोड़ने के लिए किस मेथड का यूज़ किया जा

Questions No: 7/50

What will be the output of the following Python code?

string = "my name is x"
for i in string.split():
    print (i, end=", ")

Questions No: 8/50

What will be the output of the following Python code?

print('Hello!2@#World'.istitle())

Questions No: 9/50

Which of the following statements create a dictionary?
निम्नलिखित में से कौन सा स्टेट्मेंट एक ड़िक्शनरी बनाता है?

Questions No: 10/50

What will be the output of the following Python code?

a={1:5,2:3,3:4}
a.pop(3) 
print(a)

Questions No: 11/50

What will be the output of the following Python code?

print('1Rn@'.lower())

Questions No: 12/50

What will be the output of the following Python code?

print("xyyzxyzxzxyy".endswith("xyy", 0, 2))

Questions No: 13/50

What will be the output of the following Python code?

myList = [1, 2, 3, 4, 5, 6]
for i in range(1, 6):
    myList[i - 1] = myList[i]     
for i in range(0, 6): 
    print(myList[i], end = " ")

Questions No: 14/50

Which of the following Statement will create a Tuple:
निम्नलिखित में से कौन सा स्टेट्मेंट एक टपल क्रिएट करेगा:

Questions No: 15/50

What data type is the object below ?

L=[1, 23, 'hello', 1]

Questions No: 16/50

What will be the output of the following Python code snippet?

print('cd'.partition('cd'))

Questions No: 17/50

What will be the output of the following code snippet?

a=[1,2,3,4,5,6,7,8,9]
a[::2]=10,20,30,40,50,60
print(a)

Questions No: 18/50

What is the output of >>>’2’ +’3’
>>>'2' +'3' का आउटपुट क्या है

Questions No: 19/50

What will be the output of the following Python code snippet?

print('abcdefcdghcd'.split('cd', -1))

Questions No: 20/50

If a={5,6,7,8}, which of the following statements is false?
यदि a = {5,6,7,8}, निम्नलिखित में से कौन सा स्टेट्मेंट गलत है?

Questions No: 21/50

What is the output of the following statement ?

print ((2, 4) + (1, 5))

Questions No: 22/50

If no delimiter is given in split() function then words are separated by
यदि split () फंक्शन में कोई डेलीमीटर नहीं दिया गया है तो शब्दों को ____द्वारा अलग किया जाता है

Questions No: 23/50

What will be the output of following statement ?

>>>"m"+"n1"

Questions No: 24/50

Each individual character in a string can be accessed using a technique called _____ .
एक स्ट्रिंग में प्रत्येक इनडिविजुअल कैरेक्टर को ____ ...नामक तकनीक का उपयोग करके एक्सेस किया जा सकता है

Questions No: 25/50

What will be the output of the following Python code?

x = "abcdef"
i = "a"
while i in x:
    x = x[1:]
    print(i, end = " ")

Questions No: 26/50

What will be the output of the following Python code?

print("xyyzxyzxzxyy".count('xyy', 2, 11))

Questions No: 27/50

Which of the following operations is NOT allowed on a tuple?
टपल पर निम्नलिखित में से किस ऑपरेशन की अनुमति नहीं है?

Questions No: 28/50

Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use?
मान लीजिए कि d = {"जॉन": 40, "पीटर": 45}, "जॉन" के लिए एंट्री डिलीट करने के लिए,हम किस कमांड का यूज़ करते हैं?

Questions No: 29/50

List is mutable and Tuple is immutable?
लिस्ट परिवर्तनशील है और टपल अपरिवर्तनीय है?

Questions No: 30/50

What type of data is : arr=[(1,1),(2,2),(3,3)]?
किस प्रकार का डेटा है: arr=[(1,1),(2,2),(3,3)]?

Questions No: 31/50

What will be the output of the following Python code?

print('xyyzxxyxyy'.lstrip('xyy'))

Questions No: 32/50

Choose the correct option with respect to Python..
पायथन के संबंध में सही विकल्प चुनें।

Questions No: 33/50

Suppose d = {“john”:40, “peter”:45}, what happens when we try to retrieve a value using the expression d[“susan”]?
मान लीजिए कि d = {"जॉन": 40, "पीटर": 45}, तब क्या होता है जब हम एक्सप्रेशन का यूज़ करते हुए value प्राप्त करने का प्रयास करते हैं d[“susan”]?

Questions No: 34/50

Which of the following function returns the index value of first occurrence of substring occurring in the given string.
निम्नलिखित में से कौन सा फंक्शन दिए गए स्ट्रिंग में होने वाली सबस्ट्रिंग के पहले अकरेन्स की इन्डेक्स वैल्यू देता है।

Questions No: 35/50

What will be the output of the following Python code?

print("xyyzxyzxzxyy".count('xyy', -10, -1))

Questions No: 36/50

which function is used to remove last item from a list?
किसी लिस्टसे अंतिम आइटम को हटाने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

Questions No: 37/50

What will be the output of the following Python code?

print("xyyzxyzxzxyy".count('yy', 1))

Questions No: 38/50

What will be the output of the following Python code?

points = [[1, 2], [3, 1.5], [0.5, 0.5]]
points.sort()
print(points)

Questions No: 39/50

What is “Hello”.replace(“l”, “e”)?
"हैलो" .replace ("l", "e") क्या है?

Questions No: 40/50

"hello,world".[-6], what value print?
"hello,world".[-6], का आउटपुट क्या होगा?

Questions No: 41/50

What will be the output of the following Python code?

a=[10,23,56,[78]]
b=list(a)
a[3][0]=95
a[1]=34
print(b)

Questions No: 42/50

What will be the output of the following Python code snippet?

print('ab cd ef'.title())

Questions No: 43/50

Set makes use of __________ Dictionary makes use of ____________
सेट __________ का यूज़ करता है शब्दकोश ____________ का यूज़ करता है

Questions No: 44/50

What is the output when we execute

list("hello") ? 

Questions No: 45/50

If we have two sets, s1 and s2, and we want to check if all the elements of s1 are present in s2 or not, we can use the function:
यदि हमारे पास दो सेट हैं, s1 और s2, और हम यह चेक करना चाहते हैं कि s1 के सभी एलिमेंट s2 में मौजूद हैं या नहीं, हम फ़ंक्शन का यूज़ कर सकते हैं:

Questions No: 46/50

What will be the output of the following Python code?

print('abcd'.partition('cd'))

Questions No: 47/50

What will be the output of the following Python code snippet?

print('a@ 1,'.islower())

Questions No: 48/50

What will be the output of the following Python code?

a={1:"A",2:"B",3:"C"}
for i in a: 
    print(i,end=" ")

Questions No: 49/50

What is the output of the following code?

a = set('dcma')
b = set('mlpc')
print(a^b)

Questions No: 50/50

What will be the output of the following Python code snippet?

print('1.1'.isnumeric())