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

Which of the statements about dictionary values if false?
ड़िक्शनरी वैल्यूज में से कौन सा स्टेट्मेंट यदि गलत है?

Questions No: 2/50

Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.pop()?
मान लीजिए सूची है। [3, 4, 5, 20, 5, 25, 1, 3], listExample.pop() के बाद लिस्ट1 क्या है।

Questions No: 3/50

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

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

Questions No: 4/50

Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
मान लीजिए कि लिस्ट 1 है [3, 5, 25, 1, 3],मिनट (लिस्ट 1)क्या है ?

Questions No: 5/50

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

test = {1:'A', 2:'B', 3:'C'}
test = {} 
print(len(test))

Questions No: 6/50

What will be the output of the following Python code?

d = {0, 1, 2}
for x in d:
    print(x)

Questions No: 7/50

What is the output of following code

a = [5,2,3]
print(a[5:])

Questions No: 8/50

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

Questions No: 9/50

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

Questions No: 10/50

Which symbol is used to access list elements?
सूची के तत्वों तक पहुँचने के लिए किस प्रतीक का उपयोग किया जाता है?

Questions No: 11/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: 12/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: 13/50

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

Questions No: 14/50

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)

Questions No: 15/50

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

Questions No: 16/50

What will be the output of the following Python code?

a={1:"A",2:"B",3:"C"}
b=a.copy()
b[2]="D" 
print(a)

Questions No: 17/50

What is the correct way to create a tuple with a single element?
किसी सिंगल एलिमेंट से टपल क्रिएट करने का सही तरीका क्या है?

Questions No: 18/50

What will be the output of the following Python code?

d1={"abc":5,"def":6,"ghi":7}
print(d1[0])

Questions No: 19/50

Which of the following methods will create a copy of a list?
निम्नलिखित में से कौन सा मेथड किसी लिस्ट की एक कॉपी क्रिएट करेगी ?

Questions No: 20/50

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

Questions No: 21/50

What will the output of following code?

a={1,2,3}
b={1,2,3,4}
c=a.issuperset(b)
print(c)

Questions No: 22/50

What is the output of the following code:

L=['a','b','c','d']
print ( "".join(L))

Questions No: 23/50

What will be the output of the following Python code?

a={}
a[2]=1
a[1]=[2,3,4]
print(a[1][1])

Questions No: 24/50

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

a = {}
a[1] = 1
a['1'] = 2
a[1]=a[1]+1
count = 0
for i in a: 
    count += a[i]
print(count)

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?

d = {0: 'a', 1: 'b', 2: 'c'}
for x in d.values():
    print(x)

Questions No: 27/50

What will be the output of the following ?

print((range(4)))

Questions No: 28/50

What is a Python dictionary?
पायथन डिक्शनरी क्या है?

Questions No: 29/50

Python allows ____ operations on string data type .
पायथन स्ट्रिंग डेटा प्रकार पर ____ऑपरेशन की अनुमति देता है।

Questions No: 30/50

Which of the following is a valid way to create an empty tuple?
निम्नलिखित में से कौन सा एक एम्प्टी टपल क्रिएट करने का वैध तरीका है?

Questions No: 31/50

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

Questions No: 32/50

What will be the output of the following Python code?

example = "helle"
print(example.find("e"))

Questions No: 33/50

What will be the output of following statement ?

>>>"m"+"n1"

Questions No: 34/50

What will be the output of the following Python code?

example = "snow world"
example[3] = 's'
print (example)

Questions No: 35/50

The data structure which is a mutable ordered sequence of elements is called
डेटा संरचना जो तत्वों का एक परिवर्तनशील क्रमबद्ध अनुक्रम है, कहलाती है

Questions No: 36/50

What will be the output of the following Python code?

list1 = [11, 2, 23]
list2 = [11, 2, 2]
print(list1 < list2)

Questions No: 37/50

What will be the output of the following Python code?

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

Questions No: 38/50

What does the strip() method do in Python?
पायथन में स्ट्रिप() विधि क्या करती है?

Questions No: 39/50

What will be the output of the following Python code?

print("abc DEF".capitalize())

Questions No: 40/50

Which keyword is used to remove individual items or the entire dictionary itself.
अलग-अलग आइटम या पूरी डिक्शनरी को हटाने के लिए किस कीवर्ड का उपयोग किया जाता है।

Questions No: 41/50

Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1.count(5)?
मान लीजिए कि लिस्ट1 है [3, 4, 5, 20, 5, 25, 1, 3], list1.count (5) क्या है?

Questions No: 42/50

What will be the output of the following Python code?

print('ab'.isalpha())

Questions No: 43/50

What will be the output of the following Python code?

d = {0, 1, 2}
for x in d:
    print(d.add(x))

Questions No: 44/50

Which of the following statements is used to create an empty set?
एम्प्टी सेट क्रिएट करने के लिए निम्नलिखित में से किस स्टेट्मेंट का यूज़ किया जाता है?

Questions No: 45/50

In which of the following data type, duplicate items are not allowed ?
निम्नलिखित में से किस डेटा प्रकार में डुप्लीकेट आइटम की अनुमति नहीं है?

Questions No: 46/50

Which method is used to access some part of a string or substring.
स्ट्रिंग या सबस्ट्रिंग के कुछ भाग को एक्सेस करने के लिए किस विधि का उपयोग किया जाता है।

Questions No: 47/50

What will be the output of the following Python code?

d = {0: 'a', 1: 'b', 2: 'c'}
for i in d:
    print(i)

Questions No: 48/50

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

x = 'abcd'
for i in range(len(x)):
    x[i].upper()
print (x)

Questions No: 49/50

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

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

 

Questions No: 50/50

What will be the output of the following Python code?

list1 = [1, 3]
list2 = list1
list1[0] = 4
print(list2)