NEW
Font size
WorksheetsPython
Total questions: 10
Worksheet time: 8mins
Find T ?
T=144 / 2 + 5 * 9 - ( 8 -3 )
106
688
112
684
Find the Output:
Item = {"ECE" , "CSE" , "EEE" , "CIVIL"}
Item.add (2,"MECH")
print(Item)
{ "ECE" , "MECH" , "CSE" , "EEE" , "CIVIL" }
{ "ECE" , "CSE" , "MECH" , "EEE" , "CIVIL" }
{ "ECE" , "CSE" , "EEE" , "CIVIL" }
{ "ECE" , "CSE" , "EEE" ,"MECH" , "CIVIL" }
Find the Output ?
A = "Anand Institute of higher technology"
print ( A[-5:7]
_Institute of higher techn
nstitute of higher technol
d Institute of higher techn
Institute of higher techno
def.number (r1 , r2)
sum = r1 / r2
return sum
a = number (r2 = 15 , r1 = 10)
2 / 3
3 / 2
error
2
what is the output of the following code ?
var1 = 1
var2 = 2
var3 = "3"
print (var + var2 var3)
Error. Mixing operators between numbers and strings are not supported
6
33
123
Which of the following function convert a string to a float in python ?
float(X)
int(x[,base])
long(X[,base])
str(X)
what is the output of the following programing ?
X = [ 'ab' , 'cd' ]
for i in X:
i.upper()
print (x)
[ 'AB' , 'CD' ]
[ 'ab' , 'cd' ]
[ AB , CD ]
ERROR
find p ?
p = ( 35 , 46 , 73 , 21 )
p.append( -2 , 24 )
print (p)
( 35 , 46 , 73 , 24 , 21 )
error
( 35 , 46 , 24 , 73 , 21 )
( 35 , 24 , 73 , 21 )
what will be the output of the following python code snippet ?
not (10 < 20) and not (10 > 30 )
TRUE
FALSE
Find the output ?
a = True
b = False
c = False
if a or b and c :
print "INFYTQ"
else:
print "infytq"
infytq
INFYTQ
ERROR
