Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : python - SEQUENCE DATA TYPES IN PYTHON
SEQUENCE DATA TYPES IN PYTHON
00:00:00
English
Hindi
Question No# :
01
out of 50
<p><span style="font-size: 14px;">What is the output of the following code?</span><br></p><pre>list1=[2, 33, 222, 14, 25]<br>print(list1[ : -1 ])</pre>
<p>मान लीजिए कि लिस्ट 1 है [2, 33, 222, 14, 25], लिस्ट 1 [ : - 1 ] क्या है?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">list1=[2, 33, 222, 14, 25]<br>print(list1[ : -1 ])</pre>
A.
[2, 33, 222, 14]
[2, 33, 222, 14]
B.
Error
एरर
C.
25
25
D.
[25, 14, 222, 33, 2]
[25, 14, 222, 33, 2]
Question No# :
02
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">print('ab cd-ef'.title())</span></pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('ab cd-ef'.title())</span></pre>
A.
Ab cd-ef
Ab cd-ef
B.
Ab Cd-ef
Ab Cd-ef
C.
Ab Cd-Ef
Ab Cd-Ef
D.
None of the mentioned
उल्लेखित कोई नहीं
Question No# :
03
out of 50
<p>What will be the output of the following Python code snippet?</p> <pre><font color="#333333">numbers = {}<br></font><font color="#333333">letters = {}<br></font><font color="#333333">comb = {}<br></font><font color="#333333">numbers[1] = 56<br></font><font color="#333333">numbers[3] = 7<br></font><font color="#333333">letters[4] = 'B'<br></font><font color="#333333">comb['Numbers'] = numbers <br></font><font color="#333333">comb['Letters'] = letters<br></font><font color="#333333">print(comb)</font></pre><div><br></div>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><font color="#333333">numbers = {}<br></font><font color="#333333">letters = {}<br></font><font color="#333333">comb = {}<br></font><font color="#333333">numbers[1] = 56<br></font><font color="#333333">numbers[3] = 7<br></font><font color="#333333">letters[4] = 'B'<br></font><font color="#333333">comb['Numbers'] = numbers <br></font><font color="#333333">comb['Letters'] = letters<br></font><font color="#333333">print(comb)</font></pre>
A.
Error, dictionary in a dictionary can’t exist
एरर,डिक्शनरी में ड़िक्शनरी मौजूद नहीं है
B.
‘Numbers’: {1: 56, 3: 7}
‘Numbers’: {1: 56, 3: 7}
C.
{‘Numbers’: {1: 56}, ‘Letters’: {4: ‘B’}}
{‘Numbers’: {1: 56}, ‘Letters’: {4: ‘B’}}
D.
{‘Numbers’: {1: 56, 3: 7}, ‘Letters’: {4: ‘B’}}
{‘Numbers’: {1: 56, 3: 7}, ‘Letters’: {4: ‘B’}}
Question No# :
04
out of 50
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# :
05
out of 50
<p>What is the output of following?</p><pre>lst = [1, 2, 3, 4]<br>print(lst[::-1])</pre>
<p>निम्न code का output क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">lst = [1, 2, 3, 4]<br>print(lst[::-1])</pre>
A.
[1, 2, 3, 4]
[1, 2, 3, 4]
B.
[4, 3, 2, 1]
[4, 3, 2, 1]
C.
Error
Error
D.
[1, 3]
[1, 3]
Question No# :
06
out of 50
<p>What will be the output of the following Python code?</p> <pre>a={'B':5,'A':9,'C':7}<br>print(sorted(a))</pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">a={'B':5,'A':9,'C':7}<br>print(sorted(a))</pre>
A.
[‘A’,’B’,’C’]
[‘A’,’B’,’C’]
B.
[‘B’,’C’,’A’]
[‘B’,’C’,’A’]
C.
[5,7,9]
[5,7,9]
D.
[9,5,7]
[9,5,7]
Question No# :
07
out of 50
<p style="letter-spacing: 0.14px;">What is the output of following code</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">x = [1, 2, 3]<br></span><span style="font-size: 14px;">print(x[1:10])</span></pre>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">x = [1, 2, 3]<br></span><span style="font-size: 14px;">print(x[1:10])</span></pre>
A.
Error
Error
B.
[2, 3]
[2, 3]
C.
[1, 2, 3]
[1, 2, 3]
D.
[]
[]
Question No# :
08
out of 50
<p>What will be the output of the following Python code?</p><pre>values = [[3, 4, 5, 1 ], [33, 6, 1, 2]]<br>for row in values:<br> row.sort()<br> for element in row:<br> print(element, end = " ")<br> print()</pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">values = [[3, 4, 5, 1 ], [33, 6, 1, 2]]<br>for row in values:<br> row.sort()<br> for element in row:<br> print(element, end = " ")<br> print()</pre>
A.
The program prints two rows 3 4 5 1 followed by 33 6 1 2
प्रोग्राम दो रो 3 4 5 1 को प्रिंट करता है और उसके बाद 33 6 1 2
B.
The program prints on row 3 4 5 1 33 6 1 2
प्रोग्राम रो 3 4 5 1 33 6 1 2 पर प्रिंट करता है
C.
The program prints two rows 3 4 5 1 followed by 33 6 1 2
प्रोग्राम दो रो 3 4 5 1 को प्रिंट करता है और उसके बाद 33 6 1 2
D.
The program prints two rows 1 3 4 5 followed by 1 2 6 33
प्रोग्राम दो रो 1 3 4 5 प्रिंट करता है और उसके बाद 1 2 6 33
Question No# :
09
out of 50
Which of the following is a valid way to create an empty tuple?
निम्नलिखित में से कौन सा एक एम्प्टी टपल क्रिएट करने का वैध तरीका है?
A.
empty_tuple = ()
empty_tuple = ()
B.
empty_tuple = tuple()
empty_tuple = tuple()
C.
empty_tuple = []
empty_tuple = []
D.
Both A and B
ए और बी दोनों
Question No# :
10
out of 50
<p>What will be the output of the following Python code snippet?</p> <pre><font color="#333333">a={}<br></font><font color="#333333">a['a']=1<br></font><font color="#333333">a['b']=[2,3,4] <br></font><font color="#333333">print(a)</font></pre><div><br></div>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><font color="#333333">a={}<br></font><font color="#333333">a['a']=1<br></font><font color="#333333">a['b']=[2,3,4] <br></font><font color="#333333">print(a)</font></pre>
A.
Exception is thrown
एक्सेप्शन फेंक दिया जाता है
B.
{‘b’: [2], ‘a’: 1}
{‘b’: [2], ‘a’: 1}
C.
{‘b’: [2], ‘a’: [3]}
{‘b’: [2], ‘a’: [3]}
D.
{'a': 1, 'b': [2, 3, 4]}
{'a': 1, 'b': [2, 3, 4]}
Question No# :
11
out of 50
<p>What will be the output of the following Python code?</p><pre>d = {0: 'a', 1: 'b', 2: 'c'}<br>for x in d.values():<br> print(d[x])</pre><div><br></div>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">d = {0: 'a', 1: 'b', 2: 'c'}<br>for x in d.values():<br> print(d[x])</pre>
A.
0 1 2
0 1 2
B.
a b c
a b c
C.
0 a 1 b 2 c
0 a 1 b 2 c
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
12
out of 50
<p>What is the output of following code</p><pre>a=[1,2,3]<br>a[::-1]<br>print(a)</pre>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">a=[1,2,3]<br>a[::-1]<br>print(a)</pre>
A.
[1,2,3]
[1,2,3]
B.
[3,2,1]
[3,2,1]
C.
[2,1,3]
[2,1,3]
D.
[3,1,2]
[3,1,2]
Question No# :
13
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">a={1:"A",2:"B",3:"C"}<br></span><span style="font-size: 14px;">for i,j in a.items(): <br></span><span style="font-size: 14px;"> print(i,j,end=" ")</span></pre><div><br></div>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">a={1:"A",2:"B",3:"C"}<br></span><span style="font-size: 14px;">for i,j in a.items(): <br></span><span style="font-size: 14px;"> print(i,j,end=" ")</span></pre>
A.
1 A 2 B 3 C
1 A 2 B 3 C
B.
1 2 3
1 2 3
C.
A B C
A B C
D.
1:”A” 2:”B” 3:”C”
1:”A” 2:”B” 3:”C”
Question No# :
14
out of 50
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# :
15
out of 50
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# :
16
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">print([i.lower() for i in "HELLO"])</span></pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print([i.lower() for i in "HELLO"])</span></pre>
A.
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
B.
‘hello’
‘हैलो’
C.
[‘hello’]
[‘हैलो’]
D.
hello
हैलो
Question No# :
17
out of 50
Which of the following data types is immutable?
निम्न में से कौन-सा data type immutable है?
A.
List
List
B.
Dictionary
Dictionary
C.
Set
Set
D.
Tuple
Tuple
Question No# :
18
out of 50
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# :
19
out of 50
Which string slicing expression gives the output 'yth' from 'python'?
'python' expression से 'yth' प्राप्त करने के लिए कौन-सी slicing expression सही है?
A.
s[1:4]
s[1:4]
B.
s[1:3]
s[1:3]
C.
s[2:5]
s[2:5]
D.
s[1:5:2]
s[1:5:2]
Question No# :
20
out of 50
<p>What is the output of the following code?</p><pre>dict={"Joey":1, "Rachel":2}<br>dict.update({"Phoebe":2})<br>print(dict)</pre>
<p>निम्नलिखित कोड का आउटपुट क्या है?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">dict={"Joey":1, "Rachel":2}<br>dict.update({"Phoebe":2})<br>print(dict)</pre>
A.
{'Joey': 1, 'Rachel': 2, 'Phoebe': 2}
{'Joey': 1, 'Rachel': 2, 'Phoebe': 2}
B.
{“Joey”:1,”Rachel”:}
{“Joey”:1,”Rachel”:}
C.
{“Joey”:1,”Phoebe”:2}
{“Joey”:1,”Phoebe”:2}
D.
Error
Error
Question No# :
21
out of 50
arr[::-1] does what?
arr[::-1] क्या करता है?
A.
Sorts array
Sorts array
B.
Reverses array
Reverses array
C.
Deletes elements
Deletes elements
D.
Returns copy only
Returns copy only
Question No# :
22
out of 50
<p>What will be the output?</p><pre><span style="font-size: 14px;">a = [1, 2, 3]<br></span><span style="font-size: 14px;">print(a + [4, 5])</span></pre>
<p>इसका परिणाम क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">a = [1, 2, 3]<br></span><span style="font-size: 14px;">print(a + [4, 5])</span></pre>
A.
[1, 2, 3, 4, 5]
[1, 2, 3, 4, 5]
B.
[5, 7, 8]
[5, 7, 8]
C.
Error
Error
D.
[4, 5, 1, 2, 3]
[4, 5, 1, 2, 3]
Question No# :
23
out of 50
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# :
24
out of 50
What does s.count('a') return?
s.count('a') क्या return करता है?
A.
Index of 'a'
Index of 'a'
B.
Frequency of 'a'
Frequency of 'a'
C.
Boolean
Boolean
D.
Error
Error
Question No# :
25
out of 50
Which type stores key-value pairs?
किस प्रकार का डेटा कुंजी-मान युग्मों को संग्रहीत करता है?
A.
String
String
B.
Dictionary
Dictionary
C.
List
List
D.
Tuple
Tuple
Question No# :
26
out of 50
Dictionary has:
डिक्सनरी में है:
A.
Sequence value pair
Sequence value pair
B.
Key value pair
Key value pair
C.
Tuple value pair
Tuple value pair
D.
Record value pair
Record value pair
Question No# :
27
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">print('xyyxyyxyxyxxy'.replace('xy', '12', 100))</span></pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('xyyxyyxyxyxxy'.replace('xy', '12', 100))</span></pre>
A.
xyyxyyxyxyxxy
xyyxyyxyxyxxy
B.
12y12y1212x12
12y12y1212x12
C.
none of the mentioned
उल्लेखित कोई नहीं
D.
error
एरर
Question No# :
28
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">a={5,6,7,8}<br></span><span style="font-size: 14px;">b={7,8,9,10} <br></span><span style="font-size: 14px;">print(len(a+b))</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">a={5,6,7,8}<br></span><span style="font-size: 14px;">b={7,8,9,10} <br></span><span style="font-size: 14px;">print(len(a+b))</span></pre>
A.
8
8
B.
Error, unsupported operand ‘+’ for sets
Error, unsupported operand ‘+’ for sets
C.
6
6
D.
Nothing is displayed
कुछ भी डिस्प्लेड नहीं है
Question No# :
29
out of 50
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# :
30
out of 50
Which one of the following is immutable data type ?
निम्नलिखित में से कौन सा इम्म्यूटेबल डेटा टाइप है?
A.
list
लिस्ट
B.
set
सेट
C.
tuple
टपल
D.
dictionary
डिक्शनरी
Question No# :
31
out of 50
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# :
32
out of 50
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# :
33
out of 50
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# :
34
out of 50
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# :
35
out of 50
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# :
36
out of 50
<p>What is the output of the following code?</p><pre>a = {1:"A", 2: "B", 3: "C"}<br>b = {4: "D", 5: "E"}<br>a.update(b)<br>print(a)</pre>
<p>निम्नलिखित कोड का आउटपुट क्या होगा ?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">a = {1:"A", 2: "B", 3: "C"}<br>b = {4: "D", 5: "E"}<br>a.update(b)<br>print(a)</pre>
A.
{1:’A’, 2: ‘B’,3: ‘C’}
{1:’A’, 2: ‘B’,3: ‘C’}
B.
{1: ‘A’, 2: ‘b’, 3: ‘c’, 4: ‘D’, 5: ‘E’}
{1: ‘A’, 2: ‘b’, 3: ‘c’, 4: ‘D’, 5: ‘E’}
C.
Error
Error
D.
{4: ‘D’, 5: ‘E’}
{4: ‘D’, 5: ‘E’}
Question No# :
37
out of 50
What is the output of following?
निम्न code का output क्या होगा?
A.
{1:'a', 2:'b'}
{1:'a', 2:'b'}
B.
{2:'b'}
{2:'b'}
C.
{1:'c', 2:'b'}
{1:'c', 2:'b'}
D.
Error
Error
Question No# :
38
out of 50
<p>What will be the output of the following Python code?</p> <pre><span class="sy0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">>>></span><span style="background-color: rgb(244, 244, 244); color: rgb(51, 51, 51); font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;"=""> a</span><span class="sy0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">=</span><span class="br0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">{</span><span class="nu0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">5</span><span class="sy0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">,</span><span class="nu0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">6</span><span class="sy0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">,</span><span class="nu0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">7</span><span class="br0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">}<br></span><span class="sy0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">>>></span><span style="background-color: rgb(244, 244, 244); color: rgb(51, 51, 51); font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;"=""> </span><span class="kw2" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" green;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">sum</span><span class="br0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">(</span><span style="background-color: rgb(244, 244, 244); color: rgb(51, 51, 51); font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;"="">a</span><span class="sy0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">,</span><span class="nu0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">5</span><span class="br0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">)</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span class="sy0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">>>></span><span lucida="" console",="" monospace;="" text-align:="" justify;"="" style="background-color: rgb(244, 244, 244); color: rgb(51, 51, 51);"> a</span><span class="sy0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">=</span><span class="br0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">{</span><span class="nu0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">5</span><span class="sy0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">,</span><span class="nu0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">6</span><span class="sy0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">,</span><span class="nu0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">7</span><span class="br0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">}<br></span><span class="sy0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">>>></span><span lucida="" console",="" monospace;="" text-align:="" justify;"="" style="background-color: rgb(244, 244, 244); color: rgb(51, 51, 51);"> </span><span class="kw2" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" green;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">sum</span><span class="br0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">(</span><span lucida="" console",="" monospace;="" text-align:="" justify;"="" style="background-color: rgb(244, 244, 244); color: rgb(51, 51, 51);">a</span><span class="sy0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(102,="" 204,="" 102);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">,</span><span class="nu0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">5</span><span class="br0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">)</span></pre>
A.
5
5
B.
23
23
C.
18
18
D.
Invalid syntax for sum method, too many arguments
सम मैथड के लिए इनवैलिड सिंटैक्स, बहुत सारे आर्ग्यमन्ट
Question No# :
39
out of 50
<p>What will be the output?</p><pre><span style="font-size: 14px;">a, b, c = (10, 20, 30)<br></span><span style="font-size: 14px;">print(b)</span></pre>
<p>इसका परिणाम क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">a, b, c = (10, 20, 30)<br></span><span style="font-size: 14px;">print(b)</span></pre>
A.
10
10
B.
20
20
C.
30
30
D.
Error
Error
Question No# :
40
out of 50
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# :
41
out of 50
Which one is not a built in function
इनमें से कौन सा बिल्ट इन फंक्शन नहीं है?
A.
dictionary()
dictionary()
B.
set()
set()
C.
tuple()
tuple()
D.
list()
list()
Question No# :
42
out of 50
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# :
43
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">mylist=list("a#b#c#d".split('#'))<br></span><span style="font-size: 14px;">print(mylist)</span></pre><div><br></div>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">mylist=list("a#b#c#d".split('#'))<br></span><span style="font-size: 14px;">print(mylist)</span></pre>
A.
[‘a’, ‘b’, ‘c’, ‘d’]
[‘a’, ‘b’, ‘c’, ‘d’]
B.
[‘a b c d’]
[‘a b c d’]
C.
[‘a#b#c#d’]
[‘a#b#c#d’]
D.
[‘abcd’]
[‘abcd’]
Question No# :
44
out of 50
<p>What will be the output of the following Python code?</p><pre>d = {0: 'a', 1: 'b', 2: 'c'}<br>for x in d.values():<br> print(x)</pre><div><br></div>
<p>निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">d = {0: 'a', 1: 'b', 2: 'c'}<br>for x in d.values():<br> print(x)</pre>
A.
0 1 2
0 1 2
B.
a b c
a b c
C.
0 a 1 b 2 c
0 a 1 b 2 c
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
45
out of 50
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# :
46
out of 50
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# :
47
out of 50
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# :
48
out of 50
<p>What data type is the object below ? </p><pre>L=[1, 23, 'hello', 1]</pre>
<p>नीचे दिया गया ऑब्जेक्ट किस प्रकार का डेटा है?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">L=[1, 23, 'hello', 1]</pre>
A.
List
List
B.
Dictionary
Dictionary
C.
Tuple
Tuple
D.
Array
Array
Question No# :
49
out of 50
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# :
50
out of 50
<p>What will the output of following code?</p><pre><span style="font-size: 14px;">a={1,2,3}<br></span><span style="font-size: 14px;">b={1,2,3,4}<br></span><span style="font-size: 14px;">c=a.issuperset(b)<br></span><span style="font-size: 14px;">print(c)</span></pre><div><br></div>
<p>निम्नलिखित Python कोड वैलिड है?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">a={1,2,3}<br></span><span style="font-size: 14px;">b={1,2,3,4}<br></span><span style="font-size: 14px;">c=a.issuperset(b)<br></span><span style="font-size: 14px;">print(c)</span></pre>
A.
False
गलत
B.
True
सही
C.
Syntax error for issuperset() method
Issuperset () विधि के लिए सिंटैक्स एरर
D.
Error, no method called issuperset() exists
एरर, कोई मैथड जिसे ssuperset कहा जाता है () मौजूद है
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2026
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Best Website and Software Company in Allahabad