Using import math in Python

Quiz
•
Others
•
9th - 12th Grade
•
Medium

Chizoba Mercy Akwugo
Used 2+ times
FREE Resource
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)
Similar Resources on Wayground
10 questions
Inverse Trigonometry Quiz

Quiz
•
12th Grade
8 questions
ใครไม่ซ้อน จำนวนเชิงซ้อน

Quiz
•
11th Grade
10 questions
Qualitative Sampling

Quiz
•
11th Grade
10 questions
Aprendiendo con matemáticas

Quiz
•
10th Grade
10 questions
Cara Kerja komputer

Quiz
•
9th - 12th Grade
10 questions
Persamaan Trigonometri

Quiz
•
11th Grade
10 questions
MATEMÁTICAS 10 MO GRADO INSTITUTO NACIONAL DE SEGOVIA LEONARDO MATUTE

Quiz
•
10th Grade
10 questions
Exploring Types of Motion

Quiz
•
9th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Others
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade