What will be the output of the following Python code?
tuple1=(5,1,7,6,2) tuple1.pop(2) print(tuple1)
(5,1,6,2)
(5,1,7,6)
(5,1,7,6,2)
Error
list1.sum(5)
list1.add(5)
listl.append(5)
list1.addelement(5)
Which of the following will delete key-value pair for key="tiger" in dictionary?
dic={"lion":"'wild","tiger":"'wild",'cat":"domestic","dog":"domestic"}
del dic("tiger")
dic["tiger"].delete()
delete(dic.["tiger'])
del dic["tiger"]
d1={"abc":5,"def":6,"ghi":7} print(d1[0])
abc
5
{"abc":5}
error
count()
strip()
upper()
उपरोकà¥à¤¤ सà¤à¥€
getkeys ()
key()
keys()
None
del
remove
removeAll
None of these
list1.addEnd (5)
list1.addLast (5)
list1.append (5)
0
4
1
2
list1.remove("hello")
list1.remove(hello)
list1.removeAll("hello")
list1.removeOne ("hello")
['llo']
['hello']
['h', 'e', l', 'l', 'o']
None of the above
length
length()
len()
d.size()
len(d)
size(d)
d.len ()
In Python, a tuple can contain only integers as its elements.
In Python, a tuple can contain only strings as its elements.
In Python, a tuple can contain both integers and strings as its elements.
In Python, a tuple can contain either string or integer but not both at a time.
String
List
Tuple
Dictionary
indexing
Replication
concatenation
None of the Above
Concatenation
Membership
Slicing
All of the above
slicer
None of these-
matches a pattern at the start of the string.
matches a pattern at any position in the string.
such a function does not exist
none of the mentioned
none of the mentioned.