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>What will be the output?</p><pre><span style="font-size: 14px;">a = [1, 2, 3]<br></span><span style="font-size: 14px;">a.insert(1, 10)<br></span><span style="font-size: 14px;">print(a)</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;">a.insert(1, 10)<br></span><span style="font-size: 14px;">print(a)</span></pre>
A.
[1, 10, 2, 3]
[1, 10, 2, 3]
B.
[10, 1, 2, 3]
[10, 1, 2, 3]
C.
[1, 2, 10, 3]
[1, 2, 10, 3]
D.
Error
Error
Question No# :
02
out of 50
Which of the following statements is used to create an empty set?
एम्प्टी सेट क्रिएट करने के लिए निम्नलिखित में से किस स्टेट्मेंट का यूज़ किया जाता है?
A.
{ }
{ }
B.
set()
set()
C.
[ ]
[ ]
D.
( )
( )
Question No# :
03
out of 50
What will happen if you try to access a key that doesn’t exist in a dictionary?
यदि आप किसी ऐसी की तक पहुंचने का प्रयास करते हैं जो ड़िक्शनरी में मौजूद नहीं है तो क्या होगा?
A.
Returns None
Returns None
B.
Throws a KeyError
Throws a KeyError
C.
Creates a new key with a default value
Creates a new key with a default value
D.
Crashes the program
प्रोग्राम को क्रैश कर देता है
Question No# :
04
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# :
05
out of 50
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
Which one of the following is inmmutable data type?
Which one of the following is inmmutable data type?
A.
list
लिस्ट
B.
set
सेट
C.
tuple
tuple
D.
dict
dict
Question No# :
07
out of 50
Which of the following creates a single-element tuple?
निम्नलिखित में से कौन सा विकल्प एकल-तत्व वाला टपल बनाता है?
A.
(10)
(10)
B.
[10]
[10]
C.
(10,)
(10,)
D.
{10}
{10}
Question No# :
08
out of 50
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# :
09
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# :
10
out of 50
<p>What will be the output?</p><pre><span style="font-size: 14px;">d = {"a": 1, "b": 2}<br></span><span style="font-size: 14px;">print(2 in d)</span></pre>
<p>इसका परिणाम क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">d = {"a": 1, "b": 2}<br></span><span style="font-size: 14px;">print(2 in d)</span></pre>
A.
True
True
B.
False
False
C.
KeyError
KeyError
D.
None
None
Question No# :
11
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# :
12
out of 50
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# :
13
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# :
14
out of 50
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# :
15
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">x = 'abcd'<br></span><span style="font-size: 14px;">for i in x:<br></span><span style="font-size: 14px;"> print(i)<br></span><span style="font-size: 14px;"> x.upper()</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">x = 'abcd'<br></span><span style="font-size: 14px;">for i in x:<br></span><span style="font-size: 14px;"> print(i)<br></span><span style="font-size: 14px;"> x.upper()</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.
error
error
Question No# :
16
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# :
17
out of 50
Which of the following functions cannot be used on heterogeneous sets?
निम्न में से किस फ़ंक्शन का यूज़ हेटरजीन्यस सेटों पर नहीं किया जा सकता है?
A.
pop
पॉप
B.
remove
रिमूव
C.
update
अपडेट
D.
sum
सम
Question No# :
18
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">print("abc DEF".capitalize())</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print("abc DEF".capitalize())</span></pre>
A.
abc def
abc def
B.
ABC DEF
ABC DEF
C.
Abc def
Abc def
D.
Abc Def
Abc Def
Question No# :
19
out of 50
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# :
20
out of 50
Which one of the following is immutable data type ?
निम्नलिखित में से कौन सा इम्म्यूटेबल डेटा टाइप है?
A.
list
लिस्ट
B.
set
सेट
C.
tuple
टपल
D.
dictionary
डिक्शनरी
Question No# :
21
out of 50
Which of the following is a Python tuple?
निम्नलिखित में से कौन एक Python tuple है?
A.
[1, 2, 3]
[1, 2, 3]
B.
(1, 2, 3)
(1, 2, 3)
C.
{1, 2, 3}
{1, 2, 3}
D.
{}
{}
Question No# :
22
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">a=[(2,4),(1,2),(3,9)]<br></span><span style="font-size: 14px;">a.sort()<br></span><span style="font-size: 14px;">print(a)</span></pre><div><br></div>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">a=[(2,4),(1,2),(3,9)]<br></span><span style="font-size: 14px;">a.sort()<br></span><span style="font-size: 14px;">print(a)</span></pre>
A.
[(1, 2), (2, 4), (3, 9)]
[(1, 2), (2, 4), (3, 9)]
B.
[(2,4),(1,2),(3,9)]
[(2,4),(1,2),(3,9)]
C.
Error because tuples are immutable
एरर क्योंकि tuples अपरिवर्तनीय हैं
D.
Error, tuple has no sort attribute
एरर , टपल का कोई प्रकार नहीं है
Question No# :
23
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">print(max("what are you"))</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print(max("what are you"))</span></pre>
A.
error
एरर
B.
u
u
C.
t
t
D.
y
y
Question No# :
24
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# :
25
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">b=a.copy()<br></font><font color="#333333">b[2]="D" <br></font><font color="#333333">print(a)</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">b=a.copy()<br></font><font color="#333333">b[2]="D" <br></font><font color="#333333">print(a)</font></pre>
A.
Error, copy() method doesn’t exist for dictionaries
एरर, डिक्शनरीज़ के लिए कॉपी () मैथड मौजूद नहीं है
B.
{1: ‘A’, 2: ‘B’, 3: ‘C’}
{1: ‘A’, 2: ‘B’, 3: ‘C’}
C.
{1: ‘A’, 2: ‘D’, 3: ‘C’}
{1: ‘A’, 2: ‘D’, 3: ‘C’}
D.
“None” is printed
"कोई नहीं" प्रिंट है
Question No# :
26
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# :
27
out of 50
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# :
28
out of 50
To add a new element to a list we use which command?
एक लिस्ट में एक न्यू एलिमेंट ऐड करने के लिए हम किस कमांड का यूज़ करते हैं?
A.
list1.add(5)
list1.add(5)
B.
list1.append(5)
list1.append(5)
C.
list1.addLast(5)
list1.addLast(5)
D.
list1.addEnd(5)
list1.addEnd(5)
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;">print('abcdefcdghcd'.split('cd', 2))</span></pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('abcdefcdghcd'.split('cd', 2))</span></pre>
A.
[‘ab’, ‘ef’, ‘ghcd’]
[‘ab’, ‘ef’, ‘ghcd’]
B.
[‘ab’, ‘efcdghcd’]
[‘ab’, ‘efcdghcd’]
C.
[‘abcdef’, ‘ghcd’]
[‘abcdef’, ‘ghcd’]
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
30
out of 50
lstrip() method is used for :
lstrip () फंक्शन का उपयोग इसके लिए किया जाता है:
A.
delete all the trailing whitespace characters
delete all the trailing whitespace characters
B.
delete all the leading whitespace characters
delete all the leading whitespace characters
C.
delete all the leading and trailing whitespace characters
delete all the leading and trailing whitespace characters
D.
delete upper case characters
delete upper case characters
Question No# :
31
out of 50
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# :
32
out of 50
<p>What will be the output of the following Python code?</p><pre>data = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]<br>def ttt(m):<br> v = m[0][0]<br> for row in m:<br> for element in row:<br> if v < element: v = element <br> return v<br>print(ttt(data[0]))</pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">data = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]<br>def ttt(m):<br> v = m[0][0]<br> for row in m:<br> for element in row:<br> if v < element: v = element <br> return v<br>print(ttt(data[0]))</pre>
A.
1
1
B.
2
2
C.
4
4
D.
5
5
Question No# :
33
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# :
34
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# :
35
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;">a=[10,23,56,[78]] b=list(a) a[3][0]=95 a[1]=34 print(b)</span><br></pre>
<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;">a=[10,23,56,[78]] b=list(a) a[3][0]=95 a[1]=34 print(b)</pre>
A.
[10,34,56,[95]]
[10,34,56,[95]]
B.
[10,23,56,[78]]
[10,23,56,[78]]
C.
[10,23,56,[95]]
[10,23,56,[95]]
D.
[10,34,56,[78]]
[10,34,56,[78]]
Question No# :
36
out of 50
Which of the following operations is NOT allowed on a tuple?
टपल पर निम्नलिखित में से किस ऑपरेशन की अनुमति नहीं है?
A.
Slicing
स्लाइसिंग
B.
Concatenation
कंकटेनशन
C.
Deletion of elements
एलिमेंट्स का विलोपन
D.
Iteration
इट्रेशन
Question No# :
37
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# :
38
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">print('xyyzxxyxyy'.lstrip('xyy'))</span></pre>
<p>निम्नलिखित पायथन कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('xyyzxxyxyy'.lstrip('xyy'))</span></pre>
A.
error
एरर
B.
zxxyxyy
zxxyxyy
C.
z
z
D.
zxxy
zxxy
Question No# :
39
out of 50
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# :
40
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# :
41
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">print('HelloWorld'.istitle())</span></pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('HelloWorld'.istitle())</span></pre>
A.
True
सही
B.
False
गलत
C.
None
कोई नहीं
D.
Error
एरर
Question No# :
42
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;">b = a<br></span><span style="font-size: 14px;">b.append(4)<br></span><span style="font-size: 14px;">print(a)</span></pre>
<p>What will be the output?</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 = a<br></span><span style="font-size: 14px;">b.append(4)<br></span><span style="font-size: 14px;">print(a)</span></pre>
A.
[1, 2, 3]
[1, 2, 3]
B.
[1, 2, 3, 4]
[1, 2, 3, 4]
C.
[4]
[4]
D.
Error
Error
Question No# :
43
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# :
44
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# :
45
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">a = [0, 1, 2, 3]<br></span><span style="font-size: 14px;">for a[-1] in a:<br></span><span style="font-size: 14px;"> print(a[-1])</span></pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">a = [0, 1, 2, 3]<br></span><span style="font-size: 14px;">for a[-1] in a:<br></span><span style="font-size: 14px;"> print(a[-1])</span></pre>
A.
0 1 2 3
0 1 2 3
B.
0 1 2 2
0 1 2 2
C.
3 3 3 3
3 3 3 3
D.
error
एरर
Question No# :
46
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# :
47
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
Question No# :
48
out of 50
Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?
मान लीजिए कि लिस्ट 1 है [3, 5, 25, 1, 3],मिनट (लिस्ट 1)क्या है ?
A.
3
3
B.
5
5
C.
25
25
D.
1
1
Question No# :
49
out of 50
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# :
50
out of 50
Which symbol is used to access list elements?
सूची के तत्वों तक पहुँचने के लिए किस प्रतीक का उपयोग किया जाता है?
A.
{}
{}
B.
[]
[]
C.
<>
<>
D.
()
()
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