نشاط الدوال المضمنة الخاصة بالأرقام
Quiz
•
Computers
•
10th Grade
•
Hard
Mohamed Farouk
FREE Resource
Enhance your content
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
ICT Functional Skills Quiz 1
Quiz
•
10th Grade
9 questions
Napewno tego nie wiesz! - VIKI GABOR
Quiz
•
1st - 10th Grade
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th Grade
13 questions
Computer Internal and External
Quiz
•
6th - 12th Grade
9 questions
Testing Software
Quiz
•
9th - 12th Grade
14 questions
Input, output and storage de
Quiz
•
8th Grade - Professio...
10 questions
Installing and Carrying Out Variation of Application Software
Quiz
•
10th Grade
10 questions
Information Processing - File Organization/Access
Quiz
•
10th - 11th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade