نشاط الدوال المضمنة الخاصة بالأرقام

نشاط الدوال المضمنة الخاصة بالأرقام

10th Grade

10 Qs

quiz-placeholder

Similar activities

GMetrix Session 2 JavaScript Exam

GMetrix Session 2 JavaScript Exam

10th - 12th Grade

12 Qs

LO5 - Spreadsheets (1)

LO5 - Spreadsheets (1)

10th - 11th Grade

15 Qs

Mathematical Functions in Java

Mathematical Functions in Java

9th - 10th Grade

15 Qs

Computer Science - Python

Computer Science - Python

9th - 12th Grade

15 Qs

Python Math

Python Math

1st - 12th Grade

10 Qs

C# Math

C# Math

10th Grade

10 Qs

Excel Functions and Formulas

Excel Functions and Formulas

9th - 11th Grade

14 Qs

Python - Loops & Lists

Python - Loops & Lists

7th - 11th Grade

15 Qs

نشاط الدوال المضمنة الخاصة بالأرقام

نشاط الدوال المضمنة الخاصة بالأرقام

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Mohamed Farouk

FREE Resource

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?