Solved

Case Study 1: ≫>> Import Math

Question 22

Multiple Choice

Case Study 1:
>>> import math
>>> numSides = 8
>>> innerAngleB = 360.0 / numSides
>>> halfAngleA = innerAngleB / 2
>>> oneHalfSideS = math.sin(math.radians(halfAngleA) )
>>> sideS = oneHalfSideS * 2
>>> polygonCircumference = numSides * sideS
>>> pi = polygonCircumference / 2
>>> pi
3.0614674589207183
-Refer to the session in the accompanying case study 1. Which line uses the math module?


A) innerAngleB = 360.0 / numSides
B) oneHalfSideS = math.sin(math.radians(halfAngleA) )
C) pi = polygonCircumference / 2
D) sideS = oneHalfsideS * 2

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions