-
seed ()
-
sqrt ()
-
factorial ()
-
print ()
Multiple choice quiz about Python - Part 6
To help readers add to their knowledge of Python's built-in functions, the Network Administrator will send you multiple choice questions on this topic. Please try.
-
Question 1: Which of the following functions is a built-in function in Python
-
Question 2: What is the result of the following expression?
round(4.576)-
4.5
-
5
-
4
-
4.6
-
-
Question 3: The function pow (x, y, z) is interpreted as:
-
(x ** y) ** z
-
(x ** y) / z
-
(x ** y)% z
-
(x ** y) * z
-
-
Question 4: What is the result of the following function?
all([2,4,0,6])-
Lỗi
-
True
-
False
-
0
-
-
Question 5: What is the result of the following expression?
round(4.5676,2)-
4.5
-
4.6
-
4.57
-
4.56
-
-
Question 6: What is the output of the following function?
any([2>8, 4>2, 1>2])-
Lỗi
-
True
-
False
-
4> 2
-
-
Question 7: What is the output of the representation function below?
import math
abs(math.sqrt(25))-
Lỗi
-
-5
-
5
-
5.0
-
-
Question 8: What are the results of the function shown below?
sum(2,4,6)
sum([1,2,3])-
Error, 6
-
12, Error
-
12, 6
-
Lỗi, Lỗi
-
-
Question 9: Output of the following function is:
all(3,0,4.2)-
True
-
False
-
Lỗi
-
0
-
-
Question 10: What is the result of the following expression?
min(max(False,-3,-4), 2,7)-
2
-
False
-
-3
-
-4
-
You've just finished reading the article "Multiple choice quiz about Python - Part 6" edited by the TipsMake team. You can save multiple-choice-quiz-about-python-part-6.pdf to your computer here to read later or print it out. We hope this article has provided you with many useful tech tips and tricks. You can search for similar articles on tips and guides. Thank you for reading and for following us regularly.