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
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# :
02
out of 50
Report Bug
Bookmark
Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?
मान लीजिए कि लिस्ट 1 है [4, 2, 2, 4, 5, 2, 1, 0], निम्न में से कौन सा स्लाइसिंग ऑपरेशन के लिए करेक्ट सिन्टैक्स है?
A.
print(list1[0])
print(list1[0])
B.
print(list1[:2])
print(list1[:2])
C.
print(list1[:-2])
print(list1[:-2])
D.
all of the mentioned
सभी का उल्लेख है
Question No# :
03
out of 50
Report Bug
Bookmark
Which of the following is not a declaration of the dictionary?
निम्नलिखित में से कौन सा ड़िक्शनरी का डिक्लेरेशन नहीं है?
A.
{1: ‘A’, 2: ‘B’}
{1: ‘A’, 2: ‘B’}
B.
dict([[1,”A”],[2,”B”]])
dict([[1,”A”],[2,”B”]])
C.
{1,”A”,2”B”}
{1,”A”,2”B”}
D.
{ }
{ }
Question No# :
04
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# :
05
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# :
06
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# :
07
out of 50
Report Bug
Bookmark
Which of the following methods is used to check if a string starts with a specific prefix?
निम्नलिखित में से किस मेथड का यूज़ यह चेक करने के लिए किया जाता है कि कोई स्ट्रिंग किसी स्पेसिफ़िक प्रीफ़िक्स से स्टार्ट होती है या नहीं?
A.
startswith()
startswith()
B.
startswith_prefix()
startswith_prefix()
C.
startswithwith()
startswithwith()
D.
startswiths()
startswiths()
Question No# :
08
out of 50
Report Bug
Bookmark
Suppose list1 is [1, 5, 9], what is sum(list1)?
मान लीजिए कि लिस्ट1 है [1, 5, 9],sum (लिस्ट1) क्या है?
A.
1
1
B.
9
9
C.
15
15
D.
Error
एरर
Question No# :
09
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# :
10
out of 50
Report Bug
Bookmark
Suppose list1 is [1, 3, 2], What is list1 * 2?
मान लीजिए लिस्ट 1 [1, 3, 2] है,लिस्ट 1 * 2 क्या है?
A.
[2, 6, 4]
[2, 6, 4]
B.
[1, 3, 2, 1, 3]
[1, 3, 2, 1, 3]
C.
[1, 3, 2, 1, 3, 2]
[1, 3, 2, 1, 3, 2]
D.
[1, 3, 2, 3, 2, 1]
[1, 3, 2, 3, 2, 1]
Question No# :
11
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# :
12
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# :
13
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# :
14
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# :
15
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# :
16
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# :
17
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= {"जॉन": 40, "पीटर": 45}। ड़िक्शनरी में एंट्रीज के नंबर्स प्राप्त करने के लिए हम किस कमांड का यूज़ करते हैं?
A.
d.size()
d.साइज़()
B.
len(d)
लेन (d)
C.
size(d)
साइज़(d)
D.
d.len()
d.लेन()
Question No# :
18
out of 50
Report Bug
Bookmark
Which of the following is not a valid set operation in python?
निम्नलिखित में से कौन सा पायथन में वैध सेट ऑपरेशन नहीं है?
A.
Union
Union
B.
Intersection
Intersection
C.
Difference
Difference
D.
None of the above
None of the above
Question No# :
19
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# :
20
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# :
21
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# :
22
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# :
23
out of 50
Report Bug
Bookmark
Which of the following operations is NOT allowed on a tuple?
टपल पर निम्नलिखित में से किस ऑपरेशन की अनुमति नहीं है?
A.
Slicing
स्लाइसिंग
B.
Concatenation
कंकटेनशन
C.
Deletion of elements
एलिमेंट्स का विलोपन
D.
Iteration
इट्रेशन
Question No# :
24
out of 50
Report Bug
Bookmark
If wd="Hello World" then which of the following statements will display last five characters of the string object?
A.
wd[4:]
wd[4:]
B.
wd[:4]
wd[:4]
C.
wd[-5:]
wd[-5:]
D.
wd[:-4]
wd[:-4]
Question No# :
25
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# :
26
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# :
27
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# :
28
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# :
29
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# :
30
out of 50
Report Bug
Bookmark
Which of the following statements given below is/are true?
नीचे दिए गए कथनों में से कौन सा/से सत्य है/हैं?
A.
Tuples have structure; lists have an order
Tuples have structure; lists have an order
B.
Tuples are homogeneous, lists are heterogeneous.
Tuples are homogeneous, lists are heterogeneous.
C.
Tuples are immutable, lists are mutable.
Tuples are immutable, lists are mutable.
D.
All of them
All of them
Question No# :
31
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# :
32
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# :
33
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# :
34
out of 50
Report Bug
Bookmark
Suppose d = {“john”:40, “peter”:45}, to delete the entry for “john” what command do we use?
मान लीजिए कि d = {"जॉन": 40, "पीटर": 45}, "जॉन" के लिए एंट्री डिलीट करने के लिए,हम किस कमांड का यूज़ करते हैं?
A.
d.delete(“john”:40)
d.delete ( "जॉन": 40)
B.
d.delete(“john”)
d.delete ( "जॉन")
C.
del d[“john”]
डेल डी ["जॉन"]
D.
del d(“john”:40)
डेल डी ("जॉन": 40)
Question No# :
35
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# :
36
out of 50
Report Bug
Bookmark
If no delimiter is given in split() function then words are separated by
यदि split () फंक्शन में कोई डेलीमीटर नहीं दिया गया है तो शब्दों को ____द्वारा अलग किया जाता है
A.
space
स्पेस
B.
colon
कोलन
C.
semi colon
सेमी कोलन
D.
None
कोई नहीं
Question No# :
37
out of 50
Report Bug
Bookmark
List is mutable and Tuple is immutable?
लिस्ट परिवर्तनशील है और टपल अपरिवर्तनीय है?
A.
Yes, list mutable and tuple immutable
Yes, list mutable and tuple immutable
B.
No, list and tuple both are mutable
No, list and tuple both are mutable
C.
No, list and tuple both are in immutable
No, list and tuple both are in immutable
D.
No, just opposite, list immutable and tuple mutable
No, just opposite, list immutable and tuple mutable
Question No# :
38
out of 50
Report Bug
Bookmark
What is a Python dictionary?
पायथन डिक्शनरी क्या है?
A.
A collection of ordered and mutable data
ऑर्डर्ड और म्युटेबल डेटा का कलेक्शन
B.
A collection of unordered and mutable data with key-value pairs
की-वैल्यू पेयर्स के साथ अनऑर्डर्ड और म्युटेबल डेटा का कलेक्शन
C.
A collection of immutable key-value pairs
म्म्यूटेबल की-वैल्यू पेयर्स का कलेक्शन
D.
A collection of values only
केवल वैल्यूज का कलेक्शन
Question No# :
39
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# :
40
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# :
41
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# :
42
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# :
43
out of 50
Report Bug
Bookmark
To shuffle the list(say list1) what function do we use?
लिस्ट में शफल (फेरबदल) करने के लिए (say list1) हम किस फ़ंक्शन का यूज़ करते हैं?
A.
list1.shuffle()
list1.shuffle()
B.
shuffle(list1)
shuffle(list1)
C.
random.shuffle(list1)
random.shuffle(list1)
D.
random.shuffleList(list1)
random.shuffleList(list1)
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 the following are valid string manipulation function in python
निम्नलिखित में से कौन सा पायथन में मान्य स्ट्रिंग मैनिपुलेशन फ़ंक्शन है
A.
count()
count()
B.
strip()
strip()
C.
upper()
upper()
D.
उपरोकà¥à¤¤ सà¤à¥€
All of the above
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
Which of the following will return reverse string str1?
निम्नलिखित में से कौन रिवर्स स्ट्रिंग str1 रिटर्न करेगा?
A.
str1[ : : -1 ]
str1[ : : -1 ]
B.
str1[ : : 1 ]
str1[ : : 1 ]
C.
str1[ : -1 : -1 ]
str1[ : -1 : -1 ]
D.
None
कोई नहीं
Question No# :
48
out of 50
Report Bug
Bookmark
which function is used to remove last item from a list?
किसी लिस्टसे अंतिम आइटम को हटाने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
A.
pop()
pop()
B.
delete()
delete()
C.
remove_last()
remove_last()
D.
delete_last()
delete_last()
Question No# :
49
out of 50
Report Bug
Bookmark
Which of these about a set is not true?
इनमें से कौन सा एक सेट के बारे में सही नहीं है?
A.
Mutable data type
म्यूटेबल डेटा टाइप
B.
Allows duplicate values
डुप्लिकेट वैल्यूज की अनुमति देता है
C.
Data type with unordered values
अव्यवस्थित वैल्यूज के साथ डेटा प्रकार
D.
Immutable data type
अपरिवर्तनीय डेटा टाइप
Question No# :
50
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
कोई नहीं
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