Home > Python > Quizzes > Python Programming Basics Practice Test: Python Built-in Functions
Python Programming Basics Practice Test: Python Built-in Functions
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 12% Most missed: “The function pow(x,y,z) is evaluated as:”
Here are some of the most commonly used built-in functions in Python: abs(): - Returns the absolute value of a number. chr(): - Returns the character that corresponds to the given Unicode code point. enumerate(): - Returns an enumerate object that yields a tuple containing a counter and the value of the iterable. float(): - Converts a number or string to a floating-point number. len(): - Returns the length of an object. list(): - Creates a list object. ord(): - Returns the Unicode code point of a character. print(): - Prints the given object to the console. range(): - Returns a... Show more
Python Programming Basics Practice Test: Python Built-in Functions
Time left 00:00
23 Questions

1. The function divmod(a,b), where both ‘a’ and ‘b’ are integers is evaluated as:
2. What will be the output of the following Python function?
list(enumerate([2, 3]))
3. What will be the output of the following Python function?
min(max(False,-3,-4), 2,7)
4. Which of the following functions is a built-in function in python?
5. What will be the output of the following Python function?
list(enumerate([2, 3]))
6. What will be the output of the following Python function?
any([2>8, 4>2, 1>2])
7. Which of the following functions is a built-in function in python?
8. Which of the following functions does not necessarily accept only iterables as arguments?
9. What will be the output of the following Python function?
hex(15)
10. What will be the output of the following Python expression?
round(4.5676,2)?
11. The function divmod(a,b), where both ‘a’ and ‘b’ are integers is evaluated as:
12. The function complex(‘2-3j’) is valid but the function complex(‘2 – 3j’) is invalid.
13. What will be the output of the following Python function?
hex(15)
14. What will be the output of the following Python function?
len(["hello",2, 4, 6])
15. What will be the output of the following Python function?
import math
abs(math.sqrt(25))
16. What is the output of the function complex()?
17. What will be the output of the following Python expression?
round(4.576)
18. What will be the output of the following Python function?
import math
abs(math.sqrt(25))
19. Which of the following functions does not throw an error?
20. What will be the output of the following Python expression?
round(4.576)
21. What will be the output of the following Python function?
all(3,0,4.2)
22. What will be the output of the following Python function?
min(max(False,-3,-4), 2,7)
23. The function complex(‘2-3j’) is valid but the function complex(‘2 – 3j’) is invalid.