Python
Python
Section A
4x5=20
Section B
3. (i) Write an algorithm and draw its flowchart to check whether a given number is prime or
not.
(ii) Write a program in python to calculate the sum of first 100 numbers which are divisible
by 20.
10x2=20
4. Explain the various data types of python with example of each.
20
Section C
5. What do you mean by recursion? What is the procedure to implement it? Justify your
answer by giving some programming example.
20
6. Write a program in python to create a module with the following functionality and access it
in an another python program :
(i) To find the sum of the list of elements
(ii) To sort a list of elements
10x2=20
Section D
7. What is the use of file handling in python? What is the use of data file? Explain the various
file operations with some examples and their syntax.
3,3,14
8. (a) Write a program in python to print only those names from a list of 50 names that
contains “eep” word.
(b) Name and explain the various modes of file handling that ate used while creating a text
and binary file with some example.
10x2=20