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 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=[13,56,17] a.append([87]) a.extend([45,67]) print(a)</span><br></pre><p style="border-radius: 0px; padding: 0px;"><br></p>
<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=[13,56,17] a.append([87]) a.extend([45,67]) print(a)</pre>
A.
[13, 56, 17, [87], 45, 67]
[13, 56, 17, [87], 45, 67]
B.
[13, 56, 17, 87, 45, 67]
[13, 56, 17, 87, 45, 67]
C.
[13, 56, 17, 87,[ 45, 67]]
[13, 56, 17, 87,[ 45, 67]]
D.
[13, 56, 17, [87], [45, 67]]
[13, 56, 17, [87], [45, 67]]
Question No# :
02
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# :
03
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# :
04
out of 50
The ____________ function removes the first element of a set and the last element of a list.
____________ फ़ंक्शन सेट का फर्स्ट एलिमेंट् और किसी लिस्ट का लास्ट एलिमेंट निकालता है।
A.
remove
रिमूव
B.
pop
पॉप
C.
discard
डिस्कार्ड
D.
dispose
डिस्पोज़
Question No# :
05
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.values():<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.values():<br> print(x)</pre>
A.
0 1 2
0 1 2
B.
None None None
कोई नहीं कोई नहीं
C.
error
एरर
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
06
out of 50
Which function returns the exact copy of the string with the first letter in uppercase.
कौन सा फंक्शन अपरकेस में पहले अक्षर के साथ स्ट्रिंग की सटीक प्रतिलिपि देता है।
A.
find()
find()
B.
copy()
copy()
C.
upper()
upper()
D.
capitalize()
capitalize()
Question No# :
07
out of 50
<p>What will be the output of the following code snippet?</p><pre><span style="font-size: 14px;">a=[1,2,3,4,5,6,7,8,9]<br></span><span style="font-size: 14px;">a[::2]=10,20,30,40,50,60<br></span><span style="font-size: 14px;">print(a)</span></pre><div><br></div>
<p>निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">a=[1,2,3,4,5,6,7,8,9]<br></span><span style="font-size: 14px;">a[::2]=10,20,30,40,50,60<br></span><span style="font-size: 14px;">print(a)</span></pre>
A.
ValueError: attempt to assign sequence of size 6 to extended slice of size 5
ValueError: attempt to assign sequence of size 6 to extended slice of size 5
B.
[10, 2, 20, 4, 30, 6, 40, 8, 50, 60]
[10, 2, 20, 4, 30, 6, 40, 8, 50, 60]
C.
[1, 2, 10, 20, 30, 40, 50, 60]
[1, 2, 10, 20, 30, 40, 50, 60]
D.
[1, 10, 3, 20, 5, 30, 7, 40, 9, 50, 60]
[1, 10, 3, 20, 5, 30, 7, 40, 9, 50, 60]
Question No# :
08
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# :
09
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# :
10
out of 50
split( ) function returns the _____ of words delimited by the specified substring.
स्प्लिट() फंक्शन निर्दिष्ट सबस्ट्रिंग द्वारा सीमांकित शब्दों का ____ देता है।
A.
List
लिस्ट
B.
Tuple
टपल
C.
Dictionary
डिक्शनरी
D.
None
कोई नहीं
Question No# :
11
out of 50
Python allows ____ operations on string data type .
पायथन स्ट्रिंग डेटा प्रकार पर ____ऑपरेशन की अनुमति देता है।
A.
Concatenation
कॉनकैटनेशन
B.
Membership
मेंबरशिप
C.
Slicing
स्लाईसिंग
D.
All of the above
उपर्युक्त सभी
Question No# :
12
out of 50
Which of the following is not a valid set operation in python?
निम्नलिखित में से कौन सा पायथन में वैध सेट ऑपरेशन नहीं है?
A.
Union
Union
B.
Intersection
Intersection
C.
Difference
Difference
D.
None of the above
None of the above
Question No# :
13
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# :
14
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">print(''.isdigit())</span></pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print(''.isdigit())</span></pre>
A.
True
True
B.
False
False
C.
None
कोई नहीं
D.
Error
एरर
Question No# :
15
out of 50
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# :
16
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">>>>max("what are you")</span></pre>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">>>>max("what are you")</span></pre>
A.
what
what
B.
y
y
C.
a
a
D.
Error
Error
Question No# :
17
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# :
18
out of 50
"hello,world".[-6], what value print?
"hello,world".[-6], का आउटपुट क्या होगा?
A.
White Space
White Space
B.
,
,
C.
e
e
D.
S
S
Question No# :
19
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# :
20
out of 50
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# :
21
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# :
22
out of 50
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# :
23
out of 50
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# :
24
out of 50
Which statement is correct
कौन सा कथन सही है
A.
List is mutable & Tuple is immutable
सूची परिवर्तनशील है और टपल अपरिवर्तनीय है
B.
List is immutable & Tuple is mutable
सूची अपरिवर्तनीय है और टपल परिवर्तनशील है
C.
Both List and Tuple are Mutable
लिस्ट और टपल दोनों परिवर्तनशील हैं
D.
Both List and Tuple are Immutable
सूची और टपल दोनों अपरिवर्तनीय हैं
Question No# :
25
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# :
26
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">print('Hello World'.istitle())</span></pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('Hello World'.istitle())</span></pre>
A.
True
True
B.
False
False
C.
None
कोई नहीं
D.
Error
एरर
Question No# :
27
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# :
28
out of 50
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# :
29
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") == "cd" in "abcdef")</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print("abcdef".find("cd") == "cd" in "abcdef")</span></pre>
A.
True
सही
B.
False
गलत
C.
Error
एरर
D.
None of the mentioned
उल्लेखित कोई नहीं
Question No# :
30
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# :
31
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">print('abc'.islower())</span></pre>
<p>निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('abc'.islower())</span></pre>
A.
True
True
B.
False
False
C.
None
कोई नहीं
D.
Error
एरर
Question No# :
32
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# :
33
out of 50
Which one of the following is immutable data type ?
निम्नलिखित में से कौन सा इम्म्यूटेबल डेटा टाइप है?
A.
list
लिस्ट
B.
set
सेट
C.
tuple
टपल
D.
dictionary
डिक्शनरी
Question No# :
34
out of 50
Suppose t = (1, 2, 4, 3), which of the following is incorrect?
मान लीजिए t = (1, 2, 4, 3), निम्न में से कौन गलत है?
A.
print(t[3])
print(t[3])
B.
t[3] = 45
t[3] = 45
C.
print(max(t))
print(max(t))
D.
print(len(t))
print(len(t))
Question No# :
35
out of 50
<p>What will be the output of the following code ?</p><pre><span style="font-size: 14px;">st='abcdefg'<br></span><span style="font-size: 14px;">print(st[2:5])</span></pre>
<p>निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">st='abcdefg'<br></span><span style="font-size: 14px;">print(st[2:5])</span></pre>
A.
'cde'
'cde'
B.
'abc'
'abc'
C.
'efg'
'efg'
D.
None of these
None of these
Question No# :
36
out of 50
<p>What will be the output of the following Python code snippet?</p> <pre>test = {1:'A', 2:'B', 3:'C'}<br>test = {} <br>print(len(test))</pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">test = {1:'A', 2:'B', 3:'C'}<br>test = {} <br>print(len(test))</pre>
A.
0
0
B.
None
कोई नहीं
C.
3
3
D.
An exception is thrown
एक एक्सेप्शन फेंक दिया जाता है
Question No# :
37
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# :
38
out of 50
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# :
39
out of 50
What is the output when we execute list("hello")?
जब हम list ( "hello") निष्पादित करते हैं तो आउटपुट क्या है?
A.
['llo']
['llo']
B.
['hello']
['hello']
C.
['h', 'e', l', 'l', 'o']
['h', 'e', 'l', 'l', 'o']
D.
None of the above
इनमें से कोई नहीं
Question No# :
40
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# :
41
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# :
42
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# :
43
out of 50
Which of the following functions cannot be used on heterogeneous sets?
निम्न में से किस फ़ंक्शन का यूज़ हेटरजीन्यस सेटों पर नहीं किया जा सकता है?
A.
pop
पॉप
B.
remove
रिमूव
C.
update
अपडेट
D.
sum
सम
Question No# :
44
out of 50
<p>What will be the output of following statement ?</p><pre>>>>"m"+"n1"</pre>
<p>निम्नलिखित स्टेटमेंट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">>>>"m"+"n1"</pre>
A.
'm+nl'
'm+nl'
B.
'mn1'
'mn1'
C.
'm n1'
'm n1'
D.
'm'
'm'
Question No# :
45
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">print("xyyzxyzxzxyy".endswith("xyy"))</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print("xyyzxyzxzxyy".endswith("xyy"))</span></pre>
A.
1
1
B.
True
सही
C.
3
3
D.
2
2
Question No# :
46
out of 50
<p>What will be the output of the following Python code?</p><pre><span style="font-size: 14px;">print('ab'.isalpha())</span></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('ab'.isalpha())</span></pre>
A.
True
सही
B.
False
गलत
C.
None
कोई नहीं
D.
Error
एरर
Question No# :
47
out of 50
Suppose list1 = [0.5 * x for x in range(0, 4)], list1 is:
मान लीजिए कि list1 = [0.5 * x for x in range(0, 4)], list1 है:
A.
[0, 1, 2, 3]
[0, 1, 2, 3]
B.
[0, 1, 2, 3, 4]
[0, 1, 2, 3, 4]
C.
[0.0, 0.5, 1.0, 1.5]
[0.0, 0.5, 1.0, 1.5]
D.
[0.0, 0.5, 1.0, 1.5, 2.0]
[0.0, 0.5, 1.0, 1.5, 2.0]
Question No# :
48
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# :
49
out of 50
<p>What will be the output of the following Python code snippet?</p><pre><span style="font-size: 14px;">print('abef'.replace('cd', '12'))</span></pre>
<p>निम्नलिखित Python कोड स्निपेट का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">print('abef'.replace('cd', '12'))</span></pre>
A.
abef
abef
B.
12
12
C.
error
एरर
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
50
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
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