Using import math  in Python

Using import math in Python

9th - 12th Grade

6 Qs

quiz-placeholder

Similar activities

SCIENCE

SCIENCE

9th - 12th Grade

10 Qs

Luas dan Volume Tabung

Luas dan Volume Tabung

9th - 12th Grade

10 Qs

Hamsters

Hamsters

9th - 12th Grade

10 Qs

Bahasa Indonesia

Bahasa Indonesia

9th - 12th Grade

10 Qs

MYOB Accounting quiz

MYOB Accounting quiz

12th Grade

10 Qs

Ulangan Bab Tabung Kelas 9

Ulangan Bab Tabung Kelas 9

9th Grade

10 Qs

European Union Quiz

European Union Quiz

12th Grade

10 Qs

quiz mtk kelompoknya siska

quiz mtk kelompoknya siska

9th Grade

10 Qs

Using import math  in Python

Using import math in Python

Assessment

Quiz

Others

9th - 12th Grade

Practice Problem

Medium

Created by

Chizoba Mercy Akwugo

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does import math do in Python?

Draw shapes

Draw shapes

Brings in extra math functions.

Makes your code run faster

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function gives you the value of π (pi)?

pi()

math.pi()

math.PI()

get.pi()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the formula to calculate the area of a circle?

π × r²

2 × π × r

π × 2 × r

r² + π

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you calculate the square root of 25 using Python?

math.square(25)

math.sqrt(25)

sqrt(25)

math.pow(25, 2)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following finds the area of a circle with radius 5?

5 * 3.14

math.pi *5**2

math.sqrt(5)

math.pow(5, 2)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following imports both math and random libraries?

import math.random

from math import random

import math, random

random.import(math)

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?