Page 1 - Home Assignment - PYTHON MODULE AND SORTING
P. 1
Home Assignment
Computer Science
Class – XI
Topic: PYTHON MODULE AND SORTING
1. What is a Python Module? What is its significance?
2. If the given input array is sorted or nearly sorted, among insertion and bubble sort which
algorithm will give the better performance?
3. Explain the use of functions mean, median and mode of statistics module through an example.
4. What is the utility of math module? Explain any five function in the module by taking one
example in Python.
5. Differentiate random functions random(), randint() and randrange(). Explain the same by taking
one example in Python.
6. Write a program to read the content of an integer list and sort (descending order) and print the
list using bubble sort.
7. Write a program to read the content of an integer list and sort (descending order) and print the
list using insertion sort.