
نشاط الدوال المضمنة الخاصة بالأرقام
Authored by Mohamed Farouk
Computers
10th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the abs() function do in Python?
The abs() function calculates the square of a number.
The abs() function rounds a number to the nearest integer.
The abs() function returns the absolute value of a number.
The abs() function converts a number to a string.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you use the round() function to round 3.14159 to two decimal places?
round(3.14159)
round(3.14159, 3)
round(3.14, 1)
round(3.14159, 2)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of abs(-10) in Python?
-5
-10
0
10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If x = -5.7, what will round(x) return?
-6
-7
0
-5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the pow() function in Python?
The pow() function generates a random number.
The pow() function raises a number to a specified power.
The pow() function converts a number to a string.
The pow() function calculates the square root of a number.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you use the min() function with a list of numbers?
You can use min() by calling min(your_list, 0) where your_list is a list of numbers.
You must use min() with a string instead of a list of numbers.
You can only use min() with a tuple, not a list of numbers.
You can use min() by calling min(your_list) where your_list is a list of numbers.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the result of round(2.5) in Python?
3
2.0
2
1.5
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?