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
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
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# :
02
out of 50
Report Bug
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# :
03
out of 50
Report Bug
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# :
04
out of 50
Report Bug
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# :
05
out of 50
Report Bug
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# :
06
out of 50
Report Bug
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# :
07
out of 50
Report Bug
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# :
08
out of 50
Report Bug
What does the strip() method do in Python?
पायथन में स्ट्रिप() विधि क्या करती है?
A.
Removes all spaces from the string.
स्ट्रिंग से सभी स्पेसेस को रिमूव कर देती है.
B.
Removes the first and last character of the string.
स्ट्रिंग का फर्स्ट और लास्ट कैरेक्टर को रिमूव कर देता है।
C.
Removes whitespace from the beginning and end of the string.
स्ट्रिंग के बिगनिंग और एन्ड से वाइटस्पेस को रिमूव करता है।
D.
Converts the string into a list of characters.
स्ट्रिंग को कैरेक्टर्स की लिस्ट में कन्वर्ट करता है।
Question No# :
09
out of 50
Report Bug
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# :
10
out of 50
Report Bug
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# :
11
out of 50
Report Bug
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# :
12
out of 50
Report Bug
What is “Hello”.replace(“l”, “e”)?
"हैलो" .replace ("l", "e") क्या है?
A.
Heeeo
Heeeo
B.
Heelo
Heelo
C.
Heleo
Heleo
D.
None
कोई नहीं
Question No# :
13
out of 50
Report Bug
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# :
14
out of 50
Report Bug
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# :
15
out of 50
Report Bug
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# :
16
out of 50
Report Bug
What is the output of the following code? print(len("Python\nProgramming"))
निम्नलिखित कोड का आउटपुट क्या है? print(len("Python\nProgramming"))
A.
19
19
B.
18
18
C.
17
17
D.
Error
एरर
Question No# :
17
out of 50
Report Bug
Which of the following methods can be used with a tuple?
निम्नलिखित में से किस मेथड का यूज़ टपल के साथ किया जा सकता है?
A.
append()
append()
B.
insert()
insert()
C.
index()
index()
D.
remove()
remove()
Question No# :
18
out of 50
Report Bug
To retrieve the character at index 3 from string s=”Hello” what command do we execute (multiple answers allowed)?
स्ट्रिंग 3 = "हैलो" से इंडेक्स 3 पर character को रिट्रीव करने के लिए हम किस कमांड को एक्सक्यूट करते हैं (multiple answers allowed)?
A.
s[]
s[]
B.
s.getitem(3)
s.getitem(3)
C.
s.__getitem__(3)
s.__getitem__(3)
D.
s.getItem(3)
s.getItem(3)
Question No# :
19
out of 50
Report Bug
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# :
20
out of 50
Report Bug
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# :
21
out of 50
Report Bug
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# :
22
out of 50
Report Bug
Python allows ____ operations on string data type .
पायथन स्ट्रिंग डेटा प्रकार पर ____ऑपरेशन की अनुमति देता है।
A.
Concatenation
कॉनकैटनेशन
B.
Membership
मेंबरशिप
C.
Slicing
स्लाईसिंग
D.
All of the above
उपर्युक्त सभी
Question No# :
23
out of 50
Report Bug
What is the correct way to create a tuple with a single element?
किसी सिंगल एलिमेंट से टपल क्रिएट करने का सही तरीका क्या है?
A.
(1)
(1)
B.
(1,)
(1,)
C.
[1]
[1]
D.
{1}
{1}
Question No# :
24
out of 50
Report Bug
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# :
25
out of 50
Report Bug
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# :
26
out of 50
Report Bug
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”]?
A.
Since “susan” is not a value in the set, Python raises a KeyError exception
चूँकि "सुसान" सेट में कोई वैल्यू नहीं है,Python एक की एरर एक्सेप्शन्स को उठाता है
B.
It is executed fine and no exception is raised, and it returns None
इसे एक्सक्यूट किया जाता है और कोई एक्सेप्शन्स नहीं उठाया जाता है, और यह कोई भी नहीं रिटर्न करता है
C.
Since “susan” is not a key in the set, Python raises a KeyError exception
चूँकि "सुसान" सेट में कोई की नहीं है,Python एक की एरर एक्सेप्शन्स को उठाता है
D.
Since “susan” is not a key in the set, Python raises a syntax error
चूंकि "सुसान" सेट में एक की नहीं है,Python एक सिंटेक्स एरर उठाता है
Question No# :
27
out of 50
Report Bug
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# :
28
out of 50
Report Bug
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# :
29
out of 50
Report Bug
Which one of the following is inmmutable data type?
A.
list
लिस्ट
B.
set
सेट
C.
tuple
tuple
D.
dict
dict
Question No# :
30
out of 50
Report Bug
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# :
31
out of 50
Report Bug
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
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# :
33
out of 50
Report Bug
Which predefined Python function is used to find length of String()
किस पूर्वनिर्धारित पायथन फंक्शन का उपयोग लंबाई को फाइन्ड के लिए किया जाता है।
A.
length
length
B.
length()
length()
C.
len()
len()
D.
None
कोई नहीं
Question No# :
34
out of 50
Report Bug
Which of the following operations is NOT allowed on a tuple?
टपल पर निम्नलिखित में से किस ऑपरेशन की अनुमति नहीं है?
A.
Slicing
स्लाइसिंग
B.
Concatenation
कंकटेनशन
C.
Deletion of elements
एलिमेंट्स का विलोपन
D.
Iteration
इट्रेशन
Question No# :
35
out of 50
Report Bug
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# :
36
out of 50
Report Bug
Choose the correct option with respect to Python..
पायथन के संबंध में सही विकल्प चुनें।
A.
In Python, a tuple can contain only integers as its elements.
पायथन में, एक टपल में इसके एलीमेंट के रूप में केवल इंटीजर हो सकते हैं।
B.
In Python, a tuple can contain only strings as its elements.
पायथन में, एक टपल में इसके एलीमेंट के रूप में केवल स्ट्रींग हो सकते हैं।
C.
In Python, a tuple can contain both integers and strings as its elements.
पायथन में, एक टपल में इसके एलीमेंट के रूप में इंटीजर और स्ट्रिंग दोनों हो सकते हैं ।
D.
In Python, a tuple can contain either string or integer but not both at a time.
पायथन में, एक टपल में या तो स्ट्रिंग हो सकते हैं, या तो इंटीजर, लेकिन एक समय में दोनों नहीं हो सकते हैं।
Question No# :
37
out of 50
Report Bug
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# :
38
out of 50
Report Bug
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
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
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# :
41
out of 50
Report Bug
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# :
42
out of 50
Report Bug
What is the output when we execute list("hello")?
जब हम list ( "hello") निष्पादित करते हैं तो आउटपुट क्या है?
A.
['llo']
['llo']
B.
['hello']
['hello']
C.
['h', 'e', T', '1', 'o']
['h', 'e', T', '1', 'o']
D.
None of the above
इनमें से कोई नहीं
Question No# :
43
out of 50
Report Bug
When we open file in append mode the file pointer is at the of the file?
जब हम फाइल को एपेंड मोड में खोलते हैं तो फाइल पॉइंटर फाइल के ____ पर होता है?
A.
anywhere in between the file
फ़ाइल के बीच में कही भी
B.
End
अंत
C.
beginning
आरम्भ में
D.
second line of the file
फ़ाइल की दूसरी पंक्ति
Question No# :
44
out of 50
Report Bug
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
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# :
46
out of 50
Report Bug
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# :
47
out of 50
Report Bug
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# :
48
out of 50
Report Bug
Which of the statements about dictionary values if false?
ड़िक्शनरी वैल्यूज में से कौन सा स्टेट्मेंट यदि गलत है?
A.
More than one key can have the same value
एक से अधिक key की वैल्यू समान हो सकती है
B.
The values of the dictionary can be accessed as dict[key]
ड़िक्शनरी के वैल्यूज को एक्सेस्सड के रूप में देखा जा सकता है [key]
C.
Values of a dictionary must be unique
एक ड़िक्शनरी की वैल्यूज यूनिक होनी चाहिए
D.
Values of a dictionary can be a mixture of letters and numbers
एक ड़िक्शनरी की वैल्यूज लेटर्स और नंबर्स का मिक्चर हो सकता है
Question No# :
49
out of 50
Report Bug
"hello,world".[-6], what value print?
"hello,world".[-6], का आउटपुट क्या होगा?
A.
White Space
White Space
B.
,
,
C.
e
e
D.
S
S
Question No# :
50
out of 50
Report Bug
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()
Latest Current Affairs 2025
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