O Level Online Exam
Menu mobile
Home
MCQ Topic Wise
INFORMATION TECHNOLOGY TOOLS AND NETWORK BASICS
New
WEB DESIGNING AND PUBLISHING
New
PROGRAMMING AND PROBLEM SOLVING THROUGH PYTHON
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Online Mock Test
INFORMATION TECHNOLOGY TOOLS AND NETWORK BASICS
New
WEB DESIGNING AND PUBLISHING
New
PROGRAMMING AND PROBLEM SOLVING THROUGH PYTHON
New
INTERNET OF THINGS AND ITS APPLICATIONS
New
Old Papers
Practical Questions
Videos
Projects
MCQ : SEQUENCE DATA TYPES IN PYTHON For NIELIT O Level Exam
SEQUENCE DATA TYPES IN PYTHON For NIELIT O Level Exam
00:00:00
English
Hindi
Question No# :
01
out of 50
Report Bug
Bookmark
Suppose a list with name arr, contains 5 elements. You can get the 2nd element from the list using :
मान लीजिए arr नाम वाली एक सूची में 5 तत्व हैं। आप सूची से दूसरा तत्व प्राप्त कर सकते हैं:
A.
arr[-2]
arr[-2]
B.
arr[2]
arr[2]
C.
arr[-1]
arr[-1]
D.
arr[1]
arr[1]
Question No# :
02
out of 50
Report Bug
Bookmark
Which method is used to add an element to the end of a list?
किसी लिस्ट के एन्ड में कोई एलिमेंट्स जोड़ने के लिए किस मेथड का यूज़ किया जा
A.
insert()
insert()
B.
append()
append()
C.
extend()
extend()
D.
add()
add()
Question No# :
03
out of 50
Report Bug
Bookmark
Which method is used to access some part of a string or substring.
स्ट्रिंग या सबस्ट्रिंग के कुछ भाग को एक्सेस करने के लिए किस विधि का उपयोग किया जाता है।
A.
slicer
स्लाईसर
B.
Slicing
स्लाईसिंग
C.
Membership
मेंबरशिप
D.
None of these-
इनमें से कोई नहीं
Question No# :
04
out of 50
Report Bug
Bookmark
Which function returns the exact copy of the string with the first letter in uppercase.
कौन सा फंक्शन अपरकेस में पहले अक्षर के साथ स्ट्रिंग की सटीक प्रतिलिपि देता है।
A.
find()
find()
B.
copy()
copy()
C.
upper()
upper()
D.
capitalize()
capitalize()
Question No# :
05
out of 50
Report Bug
Bookmark
Which one the following is a mutable data type ?
निम्नलिखित में से कौन सा एक परिवर्तनशील डेटा प्रकार है?
A.
set
set
B.
tuple
tuple
C.
string
string
D.
None of These
None of These
Question No# :
06
out of 50
Report Bug
Bookmark
What type of data is : arr=[(1,1),(2,2),(3,3)]?
किस प्रकार का डेटा है: arr=[(1,1),(2,2),(3,3)]?
A.
List of tuple
List of tuple
B.
Tuple of List
Tuple of List
C.
Array of Tuples
Array of Tuples
D.
Invalid Type
Invalid Type
Question No# :
07
out of 50
Report Bug
Bookmark
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 क्या है।
A.
[3, 4, 5, 20, 5, 25, 1]
[3, 4, 5, 20, 5, 25, 1]
B.
[1, 3, 3, 4, 5, 5, 20, 25]
[1, 3, 3, 4, 5, 5, 20, 25]
C.
[3, 5, 20, 5, 25, 1, 3]
[3, 5, 20, 5, 25, 1, 3]
D.
[1, 3, 4, 5, 20, 5, 25]
[1, 3, 4, 5, 20, 5, 25]
Question No# :
08
out of 50
Report Bug
Bookmark
What function do you use to read a string?
एक स्ट्रिंग को रीड करने के लिए आप किस फ़ंक्शन का यूज़ करते हैं?
A.
input(“Enter a string”)
इनपुट(“Enter a string”)
B.
eval(input(“Enter a string”))
eval (इनपुट(“Enter a string”))
C.
enter(“Enter a string”)
एंटर(“Enter a string”)
D.
eval(enter(“Enter a string”))
eval(एंटर(“Enter a string”))
Question No# :
09
out of 50
Report Bug
Bookmark
Which of the following statements create a dictionary?
निम्नलिखित में से कौन सा स्टेट्मेंट एक ड़िक्शनरी बनाता है?
A.
d = {}
d = {}
B.
d = {“john”:40, “peter”:45}
d = {“john”:40, “peter”:45}
C.
d = {40:”john”, 45:”peter”}
d = {40:”john”, 45:”peter”}
D.
All of the mentioned
सभी का उल्लेख
Question No# :
10
out of 50
Report Bug
Bookmark
Which one of the following is immutable data type ?
निम्नलिखित में से कौन सा इम्म्यूटेबल डेटा टाइप है?
A.
list
लिस्ट
B.
set
सेट
C.
tuple
टपल
D.
dictionary
डिक्शनरी
Question No# :
11
out of 50
Report Bug
Bookmark
Suppose i is 5 and j is 4, i + j is same as ________
मान लीजिए कि i 5 है और j 4 है, i + j ________ के समान है
A.
i.__add(j)
i.__add(j)
B.
i.__add__(j)
i.__add__(j)
C.
i.__Add(j)
i.__Add(j)
D.
i.__ADD(j)
i.__ADD(j)
Question No# :
12
out of 50
Report Bug
Bookmark
To add a new element to a list we use which Python command?
लिस्ट में एक नया आइटम जोड़ने के लिए हम किस पायथन कमांड का उपयोग करते हैं?
A.
list1.addEnd (5)
list1.addEnd (5)
B.
list1.addLast (5)
list1.addLast (5)
C.
list1.append (5)
list1.append (5)
D.
list1.add(5)
list1.add(5)
Question No# :
13
out of 50
Report Bug
Bookmark
The data structure which is a mutable ordered sequence of elements is called
डेटा संरचना जो तत्वों का एक परिवर्तनशील क्रमबद्ध अनुक्रम है, कहलाती है
A.
Built in
Built in
B.
List
List
C.
Tuple
Tuple
D.
Derived data
Derived data
Question No# :
14
out of 50
Report Bug
Bookmark
What will tuple('abc') return?
tuple('abc') क्या रिटर्न करेगा ?
A.
('abc’)
('abc’)
B.
('a', 'b', 'c’)
('a', 'b', 'c’)
C.
['a', 'b', 'c’]
['a', 'b', 'c’]
D.
Error
एरर
Question No# :
15
out of 50
Report Bug
Bookmark
Which of these about a dictionary is false?
एक ड़िक्शनरी के बारे में इनमें से कौन गलत है?
A.
The values of a dictionary can be accessed using keys
एक ड़िक्शनरी के वैल्यूज की key का यूज़ करके पहुँचा जा सकता है
B.
The keys of a dictionary can be accessed using values
वैल्यूज का यूज़ करके एक ड़िक्शनरी की key तक पहुँचा जा सकता है
C.
Dictionaries aren’t ordered
डिक्शनरीज़ का ऑर्डर्ड नहीं दिया गया है
D.
Dictionaries are mutable
डिक्शनरीज़ परस्पर हैं
Question No# :
16
out of 50
Report Bug
Bookmark
If b is a dictionary, what does any(b) do?
यदि b एक डिक्शनरी है, तो कोई भी (b) क्या करता है?
A.
Returns True if any key of the dictionary is true
यदि डिक्शनरी की कोई भी key सही है, तो रिटर्न
B.
Returns False if dictionary is empty
यदि डिक्शनरी खाली है तो गलत है
C.
Returns True if all keys of the dictionary are true
यदि डिक्शनरी की सभी keys सही हैं, तो सही
D.
Method any() doesn’t exist for dictionary
मैथड किसी भी () शब्दकोश के लिए मौजूद नहीं है
Question No# :
17
out of 50
Report Bug
Bookmark
Which of the following statements is used to create an empty set?
एम्प्टी सेट क्रिएट करने के लिए निम्नलिखित में से किस स्टेट्मेंट का यूज़ किया जाता है?
A.
{ }
{ }
B.
set()
set()
C.
[ ]
[ ]
D.
( )
( )
Question No# :
18
out of 50
Report Bug
Bookmark
Which one is not a built in function
इनमें से कौन सा बिल्ट इन फंक्शन नहीं है?
A.
dictionary()
dictionary()
B.
set()
set()
C.
tuple()
tuple()
D.
list()
list()
Question No# :
19
out of 50
Report Bug
Bookmark
To remove string "hello" from list1, we use which command ?
लिस्ट 1 से स्ट्रिंग "हैलो" को हटाने के लिए, हम किस कमांड का उपयोग करते हैं?
A.
list1.remove("hello")
list1.remove("hello")
B.
list1.remove(hello)
list1.remove(hello)
C.
list1.removeAll("hello")
list1.removeAll("hello")
D.
list1.removeOne ("hello")
list1.removeOne ("hello")
Question No# :
20
out of 50
Report Bug
Bookmark
Which of the following function returns the index value of first occurrence of substring occurring in the given string.
निम्नलिखित में से कौन सा फंक्शन दिए गए स्ट्रिंग में होने वाली सबस्ट्रिंग के पहले अकरेन्स की इन्डेक्स वैल्यू देता है।
A.
index()
index()
B.
find()
find()
C.
Both of the above
उपरोक्त दोनो
D.
None of the above
उपर्युक्त मे से कोई नही ।
Question No# :
21
out of 50
Report Bug
Bookmark
In which of the following data type, duplicate items are not allowed ?
निम्नलिखित में से किस डेटा प्रकार में डुप्लीकेट आइटम की अनुमति नहीं है?
A.
List
List
B.
Dictionary
Dictionary
C.
Set
Set
D.
None of the Above
None of the Above
Question No# :
22
out of 50
Report Bug
Bookmark
To return the length of string s what command do we execute?
स्ट्रिंग की लेंथ रिटर्न करने के लिए हम किस कमांड को एक्सक्यूट करते हैं?
A.
s.__len__()
s.__len__()
B.
len(s)
len(s)
C.
size(s)
size(s)
D.
s.size()
s.size()
Question No# :
23
out of 50
Report Bug
Bookmark
Which of the following is the correct way to check if a value exists in a list?
किसी लिस्ट में कोई मान मौजूद है या नहीं इसकी जाँच करने का निम्नलिखित में से कौन सा सही तरीका है?
A.
list.contains(value)
list.contains(value)
B.
list.index(value)
list.index(value)
C.
list.contains(value)
list.contains(value)
D.
value in list
value in list
Question No# :
24
out of 50
Report Bug
Bookmark
A sequence of immutable objects is called
अपरिवर्तनीय वस्तुओं का क्रम कहलाता है
A.
Built in
Built in
B.
List
List
C.
Tuple
Tuple
D.
Derived data
Derived data
Question No# :
25
out of 50
Report Bug
Bookmark
Which one of the following is inmmutable data type?
A.
list
लिस्ट
B.
set
सेट
C.
tuple
tuple
D.
dict
dict
Question No# :
26
out of 50
Report Bug
Bookmark
Suppose list1 is [3, 4, 5, 20, 5], what is list1.index(5)?
मान लीजिए कि list1 [3, 4, 5, 20, 5] है, list1.index (5) क्या है?
A.
0
0
B.
1
1
C.
4
4
D.
2
2
Question No# :
27
out of 50
Report Bug
Bookmark
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 में मौजूद हैं या नहीं, हम फ़ंक्शन का यूज़ कर सकते हैं:
A.
s2.issubset(s1)
s2.issubset(s1)
B.
s2.issuperset(s1)
s2.issuperset(s1)
C.
s1.issuperset(s2)
s1.issuperset(s2)
D.
s1.isset(s2)
s1.isset(s2)
Question No# :
28
out of 50
Report Bug
Bookmark
Python allows ____ operations on string data type .
पायथन स्ट्रिंग डेटा प्रकार पर ____ऑपरेशन की अनुमति देता है।
A.
Concatenation
कॉनकैटनेशन
B.
Membership
मेंबरशिप
C.
Slicing
स्लाईसिंग
D.
All of the above
उपर्युक्त सभी
Question No# :
29
out of 50
Report Bug
Bookmark
How can you find the number of occurrences of an element in a tuple?
आप टपल में किसी एलिमेंट की अक्युरेन्सेस के नंबर को कैसे फाइंड कर सकते हैं?
A.
count()
count()
B.
len()
len()
C.
index()
index()
D.
find()
find()
Question No# :
30
out of 50
Report Bug
Bookmark
Which of these about a frozenset is not true?
फ्रोजेनसेट के बारे में इनमें से कौन सा सच नहीं है?
A.
Mutable data type
म्यूटेबल डेटा टाइप
B.
Allows duplicate values
डुप्लिकेट वैल्यूज की अनुमति देता है
C.
Data type with unordered values
अव्यवस्थित वैल्यूज के साथ डेटा टाइप
D.
Immutable data type
इम्यूटबल डेटा टाइप
Question No# :
31
out of 50
Report Bug
Bookmark
Which of the following commands will create a list?
निम्नलिखित में से कौन सी कमांड एक लिस्ट क्रिएट करेगी ?
A.
list1 = list()
list1 = list()
B.
list1 = []
list1 = []
C.
list1 = list([1, 2, 3])
list1 = list([1, 2, 3])
D.
all of the mentioned
सभी का उल्लेख है
Question No# :
32
out of 50
Report Bug
Bookmark
Which of the following functions cannot be used on heterogeneous sets?
निम्न में से किस फ़ंक्शन का यूज़ हेटरजीन्यस सेटों पर नहीं किया जा सकता है?
A.
pop
पॉप
B.
remove
रिमूव
C.
update
अपडेट
D.
sum
सम
Question No# :
33
out of 50
Report Bug
Bookmark
Which function is used to add an element (5) in the list1?
लिस्ट 1 में एक एलिमेंट (5 ) जोड़ने के लिए किस फंक्शन का प्रयोग किया जाता है ?
A.
list1.sum(5)
list1.sum(5)
B.
list1.add(5)
list1.add(5)
C.
listl.append(5)
listl.append(5)
D.
list1.addelement(5)
list1.addelement(5)
Question No# :
34
out of 50
Report Bug
Bookmark
Which of the following lines of code will result in an error?
कोड की निम्नलिखित लाइन्स में से कौन सा एरर होगा ?
A.
s={abs}
s={abs}
B.
s={4, ‘abc’, (1,2)}
s={4, ‘abc’, (1,2)}
C.
s={2, 2.2, 3, ‘xyz’}
s={2, 2.2, 3, ‘xyz’}
D.
s={san}
s={san}
Question No# :
35
out of 50
Report Bug
Bookmark
lstrip() method is used for :
lstrip () फंक्शन का उपयोग इसके लिए किया जाता है:
A.
delete all the trailing whitespace characters
delete all the trailing whitespace characters
B.
delete all the leading whitespace characters
delete all the leading whitespace characters
C.
delete all the leading and trailing whitespace characters
delete all the leading and trailing whitespace characters
D.
delete upper case characters
delete upper case characters
Question No# :
36
out of 50
Report Bug
Bookmark
To insert 5 to the third position in list1, we use which command?
लिस्ट 1 में 5 से थर्ड पोज़िशन पर इन्सर्ट करने के लिए, हम किस कमांड का यूज़ करते हैं?
A.
list1.insert(3, 5)
list1.insert(3, 5)
B.
list1.insert(2, 5)
list1.insert(2, 5)
C.
list1.add(3, 5)
list1.add(3, 5)
D.
list1.append(3, 5)
list1.append(3, 5)
Question No# :
37
out of 50
Report Bug
Bookmark
The ____________ function removes the first element of a set and the last element of a list.
____________ फ़ंक्शन सेट का फर्स्ट एलिमेंट् और किसी लिस्ट का लास्ट एलिमेंट निकालता है।
A.
remove
रिमूव
B.
pop
पॉप
C.
discard
डिस्कार्ड
D.
dispose
डिस्पोज़
Question No# :
38
out of 50
Report Bug
Bookmark
Which keyword is used to remove individual items or the entire dictionary itself.
अलग-अलग आइटम या पूरी डिक्शनरी को हटाने के लिए किस कीवर्ड का उपयोग किया जाता है।
A.
del
del
B.
remove
remove
C.
removeAll
removeAll
D.
None of these
इनमें से कोई नहीं
Question No# :
39
out of 50
Report Bug
Bookmark
What is the output of >>>’2’ +’3’
>>>'2' +'3' का आउटपुट क्या है
A.
23
23
B.
'2+3'
'2+3'
C.
'23'
'23'
D.
None of These
None of These
Question No# :
40
out of 50
Report Bug
Bookmark
What is the output of the following program ? print "Hello World".[::-1]
निम्नलिखित प्रोग्राम का आउटपुट क्या है? print "Hello World".[::-1]
A.
dlroWolleH
dlroWolleH
B.
Hello Worl
Hello Worl
C.
d
d
D.
Error
Error
Question No# :
41
out of 50
Report Bug
Bookmark
Suppose t = (1, 2, 4, 3), which of the following is incorrect?
मान लीजिए t = (1, 2, 4, 3), निम्न में से कौन गलत है?
A.
print(t[3])
print(t[3])
B.
t[3] = 45
t[3] = 45
C.
print(max(t))
print(max(t))
D.
print(len(t))
print(len(t))
Question No# :
42
out of 50
Report Bug
Bookmark
Which statement is correct??
कौन सा कथन सही है??
A.
. List is mutable & Tuple is immutable
. List is mutable & Tuple is immutable
B.
List is immutable & Tuple is mutable
List is immutable & Tuple is mutable
C.
Both are mutable
Both are mutable
D.
Both are immutable
Both are immutable
Question No# :
43
out of 50
Report Bug
Bookmark
What happens if you attempt to access an index that is out of range in a list?
यदि आप किसी ऐसे इंडेक्स तक पहुँचने का प्रयास करते हैं जो किसी लिस्ट के रेंज से बाहर है तो क्या होगा?
A.
It returns None.
यह कोई नहीं रिटर्न करता है।
B.
It raises an IndexError
यह एक IndexError उत्पन्न करता है
C.
It creates a new element at that index.
यह उस इंडेक्स पर एक नया एलिमेंट्स क्रिएट करता है।
D.
It returns an empty list.
यह एक एम्प्टी लिस्ट रिटर्न करता है।
Question No# :
44
out of 50
Report Bug
Bookmark
What will happen if you try to access a key that doesn’t exist in a dictionary?
यदि आप किसी ऐसी की तक पहुंचने का प्रयास करते हैं जो ड़िक्शनरी में मौजूद नहीं है तो क्या होगा?
A.
Returns None
Returns None
B.
Throws a KeyError
Throws a KeyError
C.
Creates a new key with a default value
Creates a new key with a default value
D.
Crashes the program
प्रोग्राम को क्रैश कर देता है
Question No# :
45
out of 50
Report Bug
Bookmark
Suppose d = {"john”:40, “peter":45}. To obtain the number of entries in dictionary which command do we use?
मान लीजिए d = {"john":40, “peter":45}| डिक्शनरी में प्रविष्टियों की संख्या प्राप्त करने के लिए हम किस कमांड का उपयोग करते हैं?
A.
d.size()
d.size()
B.
len(d)
len(d)
C.
size(d)
size(d)
D.
d.len ()
d.len ()
Question No# :
46
out of 50
Report Bug
Bookmark
Which of the following functions will return the symmetric difference between two sets, x and y?
निम्नलिखित में से कौन सा कार्य दो सेटों, x और y के बीच सिमेट्रिक डिफ्रेंस को रिटर्न करेगा ?
A.
x | y
x | y
B.
x ^ y
x ^ y
C.
x & y
x & y
D.
x – y
x – y
Question No# :
47
out of 50
Report Bug
Bookmark
Suppose list1 is [2445,133,12454,123], what is max(list1)?
मान लीजिए कि लिस्ट 1 है [2445,133,12454,123],Max (लिस्ट1) क्या है?
A.
2445
2445
B.
133
133
C.
12454
12454
D.
123
123
Question No# :
48
out of 50
Report Bug
Bookmark
If a={5,6,7,8}, which of the following statements is false?
यदि a = {5,6,7,8}, निम्नलिखित में से कौन सा स्टेट्मेंट गलत है?
A.
print(len(a))
print(len(a))
B.
print(min(a))
print(min(a))
C.
a.remove(5)
a.remove(5)
D.
a[2]=45
a[2]=45
Question No# :
49
out of 50
Report Bug
Bookmark
split( ) function returns the _____ of words delimited by the specified substring.
स्प्लिट() फंक्शन निर्दिष्ट सबस्ट्रिंग द्वारा सीमांकित शब्दों का ____ देता है।
A.
List
लिस्ट
B.
Tuple
टपल
C.
Dictionary
डिक्शनरी
D.
None
कोई नहीं
Question No# :
50
out of 50
Report Bug
Bookmark
Which of the following function of dictionary gets all the keys from the dictionary?
निम्नलिखित में से डिक्शनरी का कौन सा फंक्शन सभी कीज को डिक्शनरी से प्राप्त करता है?
A.
getkeys ()
getkeys ()
B.
key()
key()
C.
keys()
keys()
D.
None
कोई नहीं
Latest Current Affairs 2026
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Online MBA 2 years
Online MCA
Online BCA
Best Website and Software Company in Allahabad