# Computational Thinking and Programming-I Quiz 14

Topics-Introduction to Python modules: Importing module using ‘import ’ and using from statement, importing math module (pi, e, sqrt(), ceil(), floor(), pow(), fabs(), sin(), cos(), tan()); random module (random(), randint(), randrange()), statistics module (mean(), median(), mode()).

1. What is a module in Python?

2. How can you import a module named “example” in Python?

3. What is the purpose of the math module in Python?

4. Which constant in the math module represents the mathematical constant π (pi)?

5. Which function in the math module is used to calculate the square root of a number?

6. Which function in the math module is used to round a number up to the nearest integer?

7. Which function in the math module is used to round a number down to the nearest integer?

8. Which function in the math module is used to calculate the power of a number?

9. Which function in the math module is used to calculate the absolute value of a number?

10. Which module in Python is used for generating random numbers?

11. Which function in the random module is used to generate a random floating-point number between 0 and 1?

12. Which function in the random module is used to generate a random integer within a specified range?

13. Which module in Python is used for statistical calculations?

14. Which function in the statistics module is used to calculate the average of a list of numbers?

15. Which function in the statistics module is used to find the most common value(s) in a list?