Worksheets30 MCQ – Python Sequence Data Types (List, Tuple, String)
Total questions: 30
Worksheet time: 15mins
Python के sequence types कौन-कौन से होते हैं?
List, Tuple, String
Dict, Set, List
Number, Float, Bool
File, OS, Math
List किस type की data structure है?
Mutable
Immutable
Numeric
Constant
Tuple किस type की data structure है? Tuple is—
Mutable
Immutable
Editable
Dynamic
String किस type का डाटा होता है?
Mutable
Immutable
Changeable
Dynamic
Negative indexing में -1 किसको refer करता है?
First element
Last element
Middle element
Error
list.append(x) किसके लिए होता है?
Add at start
Add at end
Remove item
Sort list
list.insert(0, x) किसके लिए होता है?
Add at end
Add at index 0
Delete element
Reverse list
list.remove(x) किसको हटाता है?
Index remove
First occurrence of x remove
All x remove
Last x remove
list.pop() default रूप से किसको हटाता है?
First element
Last element
Middle element
All elements
Tuple में कौन-सा method available नहीं है?
count()
index()
append()
उपरोक्त सभी नहीं
String में कौन-सा operation invalid है?
slicing
indexing
concatenation
item assignment
"hello"[1] का output क्या होगा?
h
e
l
o
[10,20,30][0:2] का output क्या है?
[10, 20]
[10,20,30]
[20,30]
Error
Slicing में end index—
Inclusive होता है
Exclusive होता है
Random होता है
None होता है
list.extend([4,5]) करने पर क्या होगा?
Add list as a single element
Add each item individually
Replace list
Remove list
sorted(list) करने पर return क्या होता है?
New sorted list
Same original list modified
Tuple
list.sort() किसका return करता है?
Sorted list return
None return
New list return
String return
tuple((1,2))3 का output—
Error
(1,2)*3
(1,2,1,2,1,2)
(1,2,2,1)
"abc" + "def" का output—
abc
def
abcdef
Error
list.reverse() किसका return करता है?
New reversed list return
List को inplace reverse करता है
Only prints reverse
Sort करता है
"hello".upper() करने पर return क्या होगा?
hello
HELLO
error
HeLLO
"HELLO".lower() करने पर return क्या होगा?
hello
HELLO
error
HeLLo
प्रश्न 23. list.count(x) करने पर return क्या आता है?
index of x
total occurrences of x
list length
reverse count
List को empty करने का सही तरीका-कोन सा है?
list.clear()
list = []
दोनों सही हैं
कोई नहीं
len("python") का output क्या होगा?
5
6
7
Error
(10,20,30).index(20) कितना return करेगा?
0
1
2
Error
"banana".count("a") का result?
1
2
3
4
list slicing [::-1] किसका परिणाम देगा?
First element
Last element
Entire list reverse
निम्नलिखित में से कौन सा विकल्प सही है?
Merge lists
Multiply lists
Remove lists
Error
list + list operator किसके लिए प्रयोग होता है?
Merge lists
Multiply lists
Remove lists
Error
