WorksheetsPython Function
Total questions: 10
Worksheet time: 7mins
What is the purpose of len in Python?
It is used for length operations
It helps in printing output
It is used to define functions
It is used for error handling
What is the purpose of round in Python?
It is used for rounding numbers.
It helps in printing output.
It is used to define functions.
It is used for error handling.
What is the purpose of max in Python?
It helps in printing output.
It is used to define functions.
It is used for error handling.
It is used to find the largest number
What is the result for the following Code?
print(round(3.1)
3
4
-3
-4
What is the output for the following Code?
print(max([3,5,8,2])
2
8
3
5
What is the output for the following Code?
print(len("Hello"))
(a)
What is the output of the following Code?
print(max(4,min(2,8))
(a)
What is the output of the following code?
print(max(len("Hi"),5))
(a)
What is the value of x in following expression?
x=pow(len("Python"),2)
36
32
64
18
Which function used in Python to print the absolute value for any number?
(a)
