Built in
List
Tuple
Derived data
Pair
Triplet
single
quadrat
Tuples
Lists
Classes
quadrats
getkeys()
key()
keys()
none of the mentioned
List is mutable & Tuple is immutable
List is immutable & Tuple is mutable
Both List and Tuple are Mutable
Both List and Tuple are Immutable
Dictionary
Array
dlroWolleH
Hello Worl
d
Error
print s[0]
print s.lower()
s[1]='r
print s.strip()
wd[4:]
wd[:4]
wd[-5:]
wd[:-4]
What is the output of the following code?
dict={"Joey":1, "Rachel":2} dict.update({"Phoebe":2}) print(dict)
{'Joey': 1, 'Rachel': 2, 'Phoebe': 2}
{“Joey”:1,”Rachel”:}
{“Joey”:1,”Phoebe”:2}
delete all the trailing whitespace characters
delete all the leading whitespace characters
delete all the leading and trailing whitespace characters
delete upper case characters
a = set('dcma') b = set('mlpc') print(a^b)
{‘d’, ‘c’, ‘m’, ‘l’, ‘p’, ‘c’}
{‘m’, ‘l’, ‘p’, ‘c’}
{‘d’, ‘c’, ‘m’, ‘a’}
None of These
Set
None of the Above
arr[-2]
arr[2]
arr[-1]
arr[1]
What will be the output of the following ?
print((range(4)))
0,1,2,3
[0,1,2,3]
range(0, 4)
(0,1,2,3)
list=()
list.null
null.list
list=[]
What does the following code print ?
x = 'mohan' for i in range (len(x)): x[i].upper() print (x)
mohan
MOHAN
set
tuple
string