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
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# :
02
out of 50
Write the list comprehension to pick out only negative integers from a given list ‘l’.
दी गई लिस्ट। L ’से केवल नेगटिव इन्टिजर निकालने के लिए लिस्ट की समझ लिखें।
A.
[x<0 in l]
[x<0 in l]
B.
[x for x<0 in l]
[x for x<0 in l]
C.
[x in l for x<0]
[x in l for x<0]
D.
[x for x in l if x<0]
[x for x in l if x<0]
Question No# :
03
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">print("abcdef".find("cd"))</span></pre><div><br></div>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print("abcdef".find("cd"))</span></pre>
A.
True
सही
B.
2
2
C.
3
3
D.
None of the mentioned
उल्लेखित कोई नहीं
Question No# :
04
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[1] = 1<br></font><font color="#333333">a['1'] = 2<br></font><font color="#333333">a[1]=a[1]+1<br></font><font color="#333333">count = 0<br></font><font color="#333333">for i in a: <br></font><font color="#333333"> count += a[i]<br></font><font color="#333333">print(count)</font></pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><font color="#333333">a = {}<br></font><font color="#333333">a[1] = 1<br></font><font color="#333333">a['1'] = 2<br></font><font color="#333333">a[1]=a[1]+1<br></font><font color="#333333">count = 0<br></font><font color="#333333">for i in a: <br></font><font color="#333333"> count += a[i]<br></font><font color="#333333">print(count)</font></pre>
A.
1
1
B.
2
2
C.
4
4
D.
Error, the keys can’t be a mixture of letters and numbers
एरर,keys लेटर्स और नंबर्स का मिक्चर नहीं हो सकता
Question No# :
05
out of 50
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# :
06
out of 50
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# :
07
out of 50
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# :
08
out of 50
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# :
09
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# :
10
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# :
11
out of 50
Which predefined Python function is used to find length of String()
किस पूर्वनिर्धारित पायथन फंक्शन का उपयोग लंबाई को फाइन्ड के लिए किया जाता है।
A.
length
length
B.
length()
length()
C.
len()
len()
D.
None
कोई नहीं
Question No# :
12
out of 50
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# :
13
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# :
14
out of 50
<p>What will be the output of the following Python code?</p><pre>points = [[1, 2], [3, 1.5], [0.5, 0.5]]<br>points.sort()<br>print(points)</pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">points = [[1, 2], [3, 1.5], [0.5, 0.5]]<br>points.sort()<br>print(points)</pre>
A.
[[1, 2], [3, 1.5], [0.5, 0.5]]
[[1, 2], [3, 1.5], [0.5, 0.5]]
B.
[[3, 1.5], [1, 2], [0.5, 0.5]]
[[3, 1.5], [1, 2], [0.5, 0.5]]
C.
[[0.5, 0.5], [1, 2], [3, 1.5]]
[[0.5, 0.5], [1, 2], [3, 1.5]]
D.
[[0.5, 0.5], [3, 1.5], [1, 2]]
[[0.5, 0.5], [3, 1.5], [1, 2]]
Question No# :
15
out of 50
What does the function re.match do?
फंक्शन re-match क्या करता है?
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# :
16
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">d1 = {"john":40, "peter":45}<br></span><span style="font-size: 14px;">d2 = {"john":466, "peter":45}<br></span><span style="font-size: 14px;">print(d1 == d2)</span></pre> <p> </p>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">d1 = {"john":40, "peter":45}<br></span><span style="font-size: 14px;">d2 = {"john":466, "peter":45}<br></span><span style="font-size: 14px;">print(d1 == d2)</span></pre>
A.
True
सही
B.
False
गलत
C.
None
कोई नहीं
D.
Error
एरर
Question No# :
17
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# :
18
out of 50
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# :
19
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">print('Hello!2@#World'.istitle())</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('Hello!2@#World'.istitle())</span></pre>
A.
True
सही
B.
False
गलत
C.
None
कोई नहीं
D.
error
एरर
Question No# :
20
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# :
21
out of 50
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# :
22
out of 50
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# :
23
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">print('abef'.partition('cd'))</span></pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('abef'.partition('cd'))</span></pre>
A.
(‘abef’)
(‘abef’)
B.
(‘abef’, ‘cd’, ”)
(‘abef’, ‘cd’, ”)
C.
(‘abef’, ”, ”)
(‘abef’, ”, ”)
D.
error
एरर
Question No# :
24
out of 50
<p>What will be the output of the following?</p><pre>print(sum(1,2,3))</pre>
<p>निम्नलिखित का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">print(sum(1,2,3))</pre>
A.
error
error
B.
6
6
C.
1
1
D.
3
3
Question No# :
25
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">print("xyyzxyzxzxyy".count('yy', 1))</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print("xyyzxyzxzxyy".count('yy', 1))</span></pre>
A.
2
2
B.
0
0
C.
1
1
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
26
out of 50
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# :
27
out of 50
<p>What will be the output of the following code snippet?</p><pre><span style="font-size: 12.6px;">d={3,4,5} for k in d: print(k)</span></pre>
<p>निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?</p><pre style=""><span style="font-size: 12.6px;">d={3,4,5} for k in d: print(k)</span><span style="font-size: 12.6px; letter-spacing: 0.14px;"></span></pre>
A.
{3, 4, 5},{3, 4, 5}, {3, 4, 5}
{3, 4, 5},{3, 4, 5}, {3, 4, 5}
B.
3 4 5
3 4 5
C.
syntax error
syntax error
D.
None of the above
उपरोक्त में से कोई नहीं
Question No# :
28
out of 50
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# :
29
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">d = {"john":40, "peter":45}<br></span><span style="font-size: 14px;">print(d["john"])</span></pre><div><br></div>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">d = {"john":40, "peter":45}<br></span><span style="font-size: 14px;">print(d["john"])</span></pre>
A.
40
40
B.
45
45
C.
“john”
“john”
D.
“peter”
“peter”
Question No# :
30
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">print('abcdefcdghcd'.split('cd', -1))</span></pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('abcdefcdghcd'.split('cd', -1))</span></pre>
A.
[‘ab’, ‘ef’, ‘gh’]
[‘ab’, ‘ef’, ‘gh’]
B.
[‘ab’, ‘ef’, ‘gh’, ”]
[‘ab’, ‘ef’, ‘gh’, ”]
C.
(‘ab’, ‘ef’, ‘gh’)
(‘ab’, ‘ef’, ‘gh’)
D.
(‘ab’, ‘ef’, ‘gh’, ”)
(‘ab’, ‘ef’, ‘gh’, ”)
Question No# :
31
out of 50
<p>What will be the output of the following Python code?</p> <pre class="de1" style="border-radius: 0px; padding: 0px; font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" color:="" rgb(51,="" 51,="" 51);="" word-break:="" break-all;="" overflow-wrap:="" normal;="" background:="" rgb(244,="" 244,="" 244);="" border:="" 0px;="" overflow:="" visible;="" box-shadow:="" none;="" text-align:="" justify;="" margin-top:="" 0px="" !important;="" margin-bottom:="" line-height:="" 20px="" !important;"=""><span style="font-size: 12.6px;">count={} count[(1,2,4)] = 5 count[(4,2,1)] = 7 count[(1,2)] = 6 count[(4,2,1)] = 2 tot = 0 for i in count: tot=tot+count[i] print(len(count)+tot)</span> </pre><div><br></div>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre class="de1" lucida="" console",="" monospace;="" color:="" rgb(51,="" 51,="" 51);="" word-break:="" break-all;="" overflow-wrap:="" normal;="" background:="" rgb(244,="" 244,="" 244);="" border:="" 0px;="" overflow:="" visible;="" box-shadow:="" none;="" text-align:="" justify;="" margin-top:="" 0px="" !important;="" margin-bottom:="" line-height:="" 20px="" !important;"="" style="font-size: 12.6px; letter-spacing: 0.14px; border-radius: 0px; padding: 0px;">count={} count[(1,2,4)] = 5 count[(4,2,1)] = 7 count[(1,2)] = 6 count[(4,2,1)] = 2 tot = 0 for i in count: tot=tot+count[i] print(len(count)+tot)</pre>
A.
25
25
B.
17
17
C.
16
16
D.
Tuples can’t be made keys of a dictionary
Tuples को ड़िक्शनरी की key नहीं बनाया जा सकता है
Question No# :
32
out of 50
<p>What will be the output of the following Python code?</p><pre>list1=[1,3]<br>list2=list1<br>list1[0]=4<br>print(list2)</pre><div><br></div>
<p>निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">list1=[1,3]<br>list2=list1<br>list1[0]=4<br>print(list2)</pre>
A.
[1, 4]
[1, 4]
B.
[1,3, 4]
[1,3, 4]
C.
[4,3]
[4,3]
D.
[1,3]
[1,3]
Question No# :
33
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 i in d:<br> print(i)</pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">d = {0: 'a', 1: 'b', 2: 'c'}<br>for i in d:<br> print(i)</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# :
34
out of 50
<p>What will be the output of the following expression?</p><pre><span style="font-size: 14px;">a = 2<br></span><span style="font-size: 14px;">b = 8<br></span><span style="font-size: 14px;">print(a|b )<br></span><span style="font-size: 14px;">print(a >> 1)</span></pre>
<p>निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">a = 2<br></span><span style="font-size: 14px;">b = 8<br></span><span style="font-size: 14px;">print(a|b )<br></span><span style="font-size: 14px;">print(a >> 1)</span></pre>
A.
10 0
10 0
B.
10 2
10 2
C.
2 2
2 2
D.
10 1
10 1
Question No# :
35
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# :
36
out of 50
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# :
37
out of 50
<p>What will be the output of the following Python code?</p><pre>d = {0, 1, 2}<br>for x in d:<br> print(x)</pre><div><br></div>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">d = {0, 1, 2}<br>for x in d:<br> print(x)</pre>
A.
0 1 2
0 1 2
B.
{0, 1, 2} {0, 1, 2} {0, 1, 2}
{0, 1, 2} {0, 1, 2} {0, 1, 2}
C.
error
एरर
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
38
out of 50
<p>What will be the output of the following code?</p><pre><span style="font-size: 14px;">list1=[2,33,222,14,25]<br></span><span style="font-size: 14px;">print(list1[-1])</span></pre>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">list1=[2,33,222,14,25]<br></span><span style="font-size: 14px;">print(list1[-1])</span></pre>
A.
2
2
B.
33
33
C.
14
14
D.
25
25
Question No# :
39
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# :
40
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">print('1Rn@'.lower())</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('1Rn@'.lower())</span></pre>
A.
n
n
B.
1rn@
1rn@
C.
rn
rn
D.
r
r
Question No# :
41
out of 50
<p>What is the correct command to shuffle the following list?</p><pre><span style="font-size: 14px;">fruit=['apple', 'banana', 'papaya', 'cherry']</span></pre><div><br></div><p> </p>
<p>निम्नलिखित सूची में फेरबदल करने के लिए सही कमांड क्या है?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">fruit=['apple', 'banana', 'papaya', 'cherry']</span></pre>
A.
fruit.shuffle()
fruit.shuffle()
B.
shuffle(fruit)
shuffle(fruit)
C.
random.shuffle(fruit)
random.shuffle(fruit)
D.
random.shuffleList(fruit)
random.shuffleList(fruit)
Question No# :
42
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">t=32.00<br></span><span style="font-size: 14px;">for x in t:<br></span><span style="font-size: 14px;"> print(x)</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">t=32.00<br></span><span style="font-size: 14px;">for x in t:<br></span><span style="font-size: 14px;"> print(x)</span></pre>
A.
[0]
[0]
B.
0
0
C.
[0.00]
[0.00]
D.
Error
एरर
Question No# :
43
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.keys():<br> print(d[x])</pre>
<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.keys():<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# :
44
out of 50
<p>What will be the output of the following Python code?</p> <pre><font color="#333333">x = ['ab', 'cd']<br></font><font color="#333333">for i in x:<br></font><font color="#333333"> i.upper() <br></font><font color="#333333">print(x)</font></pre>
<p>निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><font color="#333333">x = ['ab', 'cd']<br></font><font color="#333333">for i in x:<br></font><font color="#333333"> i.upper() <br></font><font color="#333333">print(x)</font></pre>
A.
[‘ab’, ‘cd’]
[‘ab’, ‘cd’]
B.
[‘AB’, ‘CD’]
[‘AB’, ‘CD’]
C.
[None, None]
[None, None]
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
45
out of 50
Which of the following is a mapping datatype?
निम्न में से कौन एक मैपिंग डेटाटाइप है?
A.
String
स्ट्रिंग
B.
List
लिस्ट
C.
Tuple
टपल
D.
Dictionary
डिक्शनरी
Question No# :
46
out of 50
<p>What will be the output of the following Python code?</p> <pre><font color="#333333">a={1:"A",2:"B",3:"C"}<br></font><font color="#333333">for i in a: <br></font><font color="#333333"> print(i,end=" ")</font></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><font color="#333333">a={1:"A",2:"B",3:"C"}<br></font><font color="#333333">for i in a: <br></font><font color="#333333"> print(i,end=" ")</font></pre>
A.
1 2 3
1 2 3
B.
‘A’ ‘B’ ‘C’
‘A’ ‘B’ ‘C’
C.
1 ‘A’ 2 ‘B’ 3 ‘C’
1 ‘A’ 2 ‘B’ 3 ‘C’
D.
Error, it should be: for i in a.items():
एरर , यह होनी चाहिए: i in a.items () में:
Question No# :
47
out of 50
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# :
48
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# :
49
out of 50
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# :
50
out of 50
<p>What will be the output of the following Python code?</p><pre>d1={"abc":5,"def":6,"ghi":7}<br>print(d1[0])</pre>
<p>निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">d1={"abc":5,"def":6,"ghi":7}<br>print(d1[0])</pre>
A.
abc
abc
B.
5
5
C.
{"abc":5}
{"abc":5}
D.
error
error
Latest Current Affairs 2025
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2025
Python Programming Tutorials
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
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz