O Level Exam : Student Portal
Email address
Password
Remember me
Forgot password?
Sign In
Google
Facebook
Don't have an account?
Register now
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
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# :
02
out of 50
Report Bug
Bookmark
Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?
मान लीजिए कि लिस्ट-एग्जाम्पल [‘h’,, e ’,, l’,, l ’,’ o ’] है, तो len (listExample) क्या है?
A.
5
5
B.
4
4
C.
None
कोई नहीं
D.
Error
एरर
Question No# :
03
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# :
04
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# :
05
out of 50
Report Bug
Bookmark
"hello,world".[-6], what value print?
"hello,world".[-6], का आउटपुट क्या होगा?
A.
White Space
White Space
B.
,
,
C.
e
e
D.
S
S
Question No# :
06
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# :
07
out of 50
Report Bug
Bookmark
What does the function re-search do?
फंक्शन re-search क्या करता है?
A.
matches a pattern at the start of the string.
स्ट्रिंग की शुरुआत में एक पैटर्न से मेल खाता है
B.
matches a pattern at any position in the string.
स्ट्रिंग में किसी भी स्थिति में एक पैटर्न से मेल खाता है
C.
such a function does not exist
ऐसा कोई फंक्शन मौजूद नहीं है
D.
none of the mentioned.
उल्लिखित कोई नहीं ।
Question No# :
08
out of 50
Report Bug
Bookmark
Each individual character in a string can be accessed using a technique called _____ .
एक स्ट्रिंग में प्रत्येक इनडिविजुअल कैरेक्टर को ____ ...नामक तकनीक का उपयोग करके एक्सेस किया जा सकता है
A.
indexing
इन्डेक्सिंग
B.
Replication
रेप्लिकेशन
C.
concatenation
कॉन्केटनेशन
D.
None of the Above
उपर्युक्त में से कोई नहीं
Question No# :
09
out of 50
Report Bug
Bookmark
What is the output when we execute list(“hello”)?
जब हम लिस्ट ("हैलो") एक्सक्यूट करते हैं तो आउटपुट क्या है?
A.
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
B.
[‘hello’]
[‘hello’]
C.
[‘llo’]
[‘llo’]
D.
[‘olleh’]
[‘olleh’]
Question No# :
10
out of 50
Report Bug
Bookmark
Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
मान लीजिए कि लिस्ट 1 है [3, 5, 25, 1, 3],मिनट (लिस्ट 1)क्या है ?
A.
3
3
B.
5
5
C.
25
25
D.
1
1
Question No# :
11
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# :
12
out of 50
Report Bug
Bookmark
What type of data is: a=[(1,1),(2,4),(3,9)]?
किस प्रकार का डेटा है: a = [(1,1), (2,4), (3,9)]?
A.
Array of tuples
Tuples का ऐरे
B.
List of tuples
Tuples की लिस्ट
C.
Tuples of lists
लिस्ट्स के Tuples
D.
Invalid type
इनवैलिड टाइप
Question No# :
13
out of 50
Report Bug
Bookmark
Which predefined Python function is used to find length of String()
किस पूर्वनिर्धारित पायथन फंक्शन का उपयोग लंबाई को फाइन्ड के लिए किया जाता है।
A.
length
length
B.
length()
length()
C.
len()
len()
D.
None
कोई नहीं
Question No# :
14
out of 50
Report Bug
Bookmark
Which of the following are valid string manipulation functions in python?
निम्नलिखित में से कौन से पायथन में वैध स्ट्रिंग मैनिपुलेशन फ़ंक्शन हैं?
A.
count()
count()
B.
upper()
upper()
C.
strip()
strip()
D.
All the above
ऊपर के सभी
Question No# :
15
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# :
16
out of 50
Report Bug
Bookmark
To remove string “hello” from list1, we use which command?
लिस्ट1 से स्ट्रिंग "हैलो" को रिमूव करने के लिए, हम किस कमांड का यूज़ करते हैं?
A.
list1.remove(“hello”)
लिस्ट1.रिमूव("हैलो")
B.
list1.remove(hello)
लिस्ट1.रिमूव(हैलो)
C.
list1.removeAll(“hello”)
लिस्ट1.रिमूव ऑल("हैलो")
D.
list1.removeOne(“hello”)
लिस्ट1.रिमूववन("हैलो")
Question No# :
17
out of 50
Report Bug
Bookmark
Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.extend([34, 5])?
मान लीजिए लिस्ट है [3, 4, 5, 20, 5, 25, 1, 3] ,listExample.extend([34, 5]) के बाद की लिस्ट1 क्या है।
A.
[3, 4, 5, 20, 5, 25, 1, 3, 34, 5]
[3, 4, 5, 20, 5, 25, 1, 3, 34, 5]
B.
[1, 3, 3, 4, 5, 5, 20, 25, 34, 5]
[1, 3, 3, 4, 5, 5, 20, 25, 34, 5]
C.
[25, 20, 5, 5, 4, 3, 3, 1, 34, 5]
[25, 20, 5, 5, 4, 3, 3, 1, 34, 5]
D.
[1, 3, 4, 5, 20, 5, 25, 3, 34, 5]
[1, 3, 4, 5, 20, 5, 25, 3, 34, 5]
Question No# :
18
out of 50
Report Bug
Bookmark
Which of the following isn’t true about dictionary keys?
निम्नलिखित में से कौन ड़िक्शनरी keys के बारे में सही नहीं है?
A.
More than one key isn’t allowed
एक से अधिक key की अनुमति नहीं है
B.
Keys must be immutable
keys इम्यूटबल होनी चाहिए
C.
Keys must be integers
keys इन्टिजर होनी चाहिए
D.
When duplicate keys encountered, the last assignment wins
जब डुप्लिकेट keys का सामना करना पड़ा, तो लास्ट असाइनमेंट जीत गया
Question No# :
19
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# :
20
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# :
21
out of 50
Report Bug
Bookmark
Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1]?
मान लीजिए कि लिस्ट 1 है [2, 33, 222, 14, 25], लिस्ट 1 [-1] क्या है?
A.
Error
एरर
B.
None
कोई नहीं
C.
25
25
D.
2
2
Question No# :
22
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# :
23
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# :
24
out of 50
Report Bug
Bookmark
Which of the following methods will create a copy of a list?
निम्नलिखित में से कौन सा मेथड किसी लिस्ट की एक कॉपी क्रिएट करेगी ?
A.
copy = list(original)
copy = list(original)
B.
copy = original[:]
copy = original[:]
C.
copy = original.copy()
copy = original.copy()
D.
All of the above
ऊपर के सभी
Question No# :
25
out of 50
Report Bug
Bookmark
Set makes use of __________ Dictionary makes use of ____________
सेट __________ का यूज़ करता है शब्दकोश ____________ का यूज़ करता है
A.
keys, keys
keys, keys
B.
key values, keys
key values, keys
C.
keys, key values
keys, key values
D.
key values, key values
key values, key values
Question No# :
26
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
कोई नहीं
Question No# :
27
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# :
28
out of 50
Report Bug
Bookmark
Which of the following Statement will create a Tuple:
निम्नलिखित में से कौन सा स्टेट्मेंट एक टपल क्रिएट करेगा:
A.
t1=1,2,4
t1=1,2,4
B.
t1=(1,)
t1=(1,)
C.
t1=tuple(“123”)
t1=tuple(“123”)
D.
All of these
ये सब
Question No# :
29
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# :
30
out of 50
Report Bug
Bookmark
Assume q= [3, 4, 5, 20, 5, 25, 1, 3], then what will be the items of q list after q.pop(1) ?
मान लीजिए q= [3, 4, 5, 20, 5, 25, 1, 3], तो q.pop(1) के बाद q सूची में क्या आइटम होंगे?
A.
[3, 4, 5, 20, 5, 25, 1, 3]
[3, 4, 5, 20, 5, 25, 1, 3]
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# :
31
out of 50
Report Bug
Bookmark
How can we create an empty list in Python ?
हम पायथन में एक खाली लिस्ट कैसे बना सकते हैं?
A.
list=()
list=()
B.
list.null
list.null
C.
null.list
null.list
D.
list=[]
list=[]
Question No# :
32
out of 50
Report Bug
Bookmark
Which of the following methods is not a string method in Python?
निम्नलिखित में से कौन सा मेथड पायथन में एक स्ट्रिंग मेथड नहीं है?
A.
capitalize()
capitalize()
B.
startswith()
startswith()
C.
pop()
pop()
D.
find()
find()
Question No# :
33
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# :
34
out of 50
Report Bug
Bookmark
Which of the following is a mapping datatype?
निम्न में से कौन एक मैपिंग डेटाटाइप है?
A.
String
स्ट्रिंग
B.
List
लिस्ट
C.
Tuple
टपल
D.
Dictionary
डिक्शनरी
Question No# :
35
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# :
36
out of 50
Report Bug
Bookmark
Which of the following function returns True if the string is non empty and has all uppercase alphabets.
यदि स्ट्रिंग नॉन-इम्पटी है और सभी अपरकेस अक्षर हैं, तो निम्न में से कौन सा फंक्शन सही है।
A.
islower()
islower()
B.
isupper()
isupper()
C.
Islower()
Islower()
D.
None
कोई नहीं
Question No# :
37
out of 50
Report Bug
Bookmark
If a is a dictionary with some key-value pairs, what does a.popitem() do?
यदि कुछ की-वैल्यू वाले पेअर के साथ एक ड़िक्शनरी है,तो a.popitem () क्या करता है?
A.
Removes an arbitrary element
एक आर्बिट्रेरी एलिमेंट्स रिमूव करता है
B.
Removes all the key-value pairs
सभी की-वैल्यू पेयर्स रिमूव करता है
C.
Removes the key-value pair for the key given as an argument
आर्ग्यमन्ट के रूप में दी गई key के लिए की-वैल्यू पेयर्स को रिमूव करती है
D.
Invalid method for dictionary
ड़िक्शनरी के लिए इनवैलिड मैथड
Question No# :
38
out of 50
Report Bug
Bookmark
What is the output when we execute list("hello")?
जब हम list ( "hello") निष्पादित करते हैं तो आउटपुट क्या है?
A.
['llo']
['llo']
B.
['hello']
['hello']
C.
['h', 'e', l', 'l', 'o']
['h', 'e', 'l', 'l', 'o']
D.
None of the above
इनमें से कोई नहीं
Question No# :
39
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# :
40
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 of the mentioned
none of the mentioned
Question No# :
41
out of 50
Report Bug
Bookmark
Which method is used to get all keys from a dictionary?
डिक्शनरी से सभी कीज़ प्राप्त करने के लिए किस मेथड का यूज़ किया जाता है?
A.
keys()
keys()
B.
getkeys()
getkeys()
C.
allkeys()
allkeys()
D.
keyvalues()
keyvalues()
Question No# :
42
out of 50
Report Bug
Bookmark
If a=(1,2,3,4), a[1:-1] is _________
यदि a = (1,2,3,4), एक [1: -1] _________ है
A.
Error, tuple slicing doesn’t exist
एरर,टप्पल स्लाइसिंग मौजूद नहीं है
B.
[2,3]
[2,3]
C.
(2,3,4)
(2,3,4)
D.
(2,3)
(2,3)
Question No# :
43
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# :
44
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# :
45
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# :
46
out of 50
Report Bug
Bookmark
What does the update() method do in a dictionary?
अपडेट() मेथड किसी ड़िक्शनरी में क्या करती है?
A.
Clears all key-value pairs
सभी की-वैल्यू पेयर्स क्लियर करता है
B.
Updates a specific key
किसी स्पेसिफ़िक कीज़ को अपडेट्स करता है
C.
Merges another dictionary into the current one
किसी अन्य ड़िक्शनरी को प्रेजेंट ड़िक्शनरी में मर्ज कर देता है
D.
Removes all values
सभी वैल्यूज रिमूव कर देता है
Question No# :
47
out of 50
Report Bug
Bookmark
Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.pop(1)?
मान लीजिए लिस्ट [3, 4, 5, 20, 5, 25, 1, 3], है, listExample.pop(1) के बाद की लिस्ट1 क्या है।
A.
[3, 4, 5, 20, 5, 25, 1, 3]
[3, 4, 5, 20, 5, 25, 1, 3]
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# :
48
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# :
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
A sequence of immutable objects is called
अपरिवर्तनीय वस्तुओं का क्रम कहलाता है
A.
Built in
Built in
B.
List
List
C.
Tuple
Tuple
D.
Derived data
Derived data
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