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:

Verified
Correct Answer:
Verified
Q17: Explain how a Monte Carlo simulation can
Q18: In order to use the sqrt() function,
Q19: Case Study 3:<br>1. if <condition>:<br>2. if <condition>:<br>3.
Q20: What are some patterns to keep in
Q21: When calculating pi using the Wallis formula,
Q23: To create a drawing window, use the
Q24: How many times will the following print
Q25: 1. Match each definition with its term.<br>-True
Q26: The parameters passed to the print function
Q27: Case Study 1:<br>>>> import math<br>>>> numSides =