Inbuilt Function Quiz 2

Share with others

Enter details and click on Next

Name
Email
School Name
Q11. Write the output of the following: if user entered 7

a=input("Enter age")
print(type(a))


Q12. eval(x) function returns error if x is integer.(T/F)

Q13. Write the output of the following:

print(max(2,5,4,8,29,24))

Q14. Write the output of the following

print(min("Hell","Hello","he"))

Q15. abs( ) function do not work for float number.(T/F)

Q16. Write the output of the following.

print(abs(-8))

Q17. len() function returns the length of string only.(T/F)

Q18. Write the output of the following :

print(round(34.5671,2))
print(round(34.3631,2))

Q19. Write the output of the following:

print(list(i*2 for i in range(4)))
print(list(range(4)))

Q20. Write the output of the following:

print((range(5)))


Share with others

Leave a Reply