You are on page 1of 3

CLASS XII CS PRACTICAL LIST SESSION 2020-21

1 1. Write a menu driven program using function :


(i) To check whether the given number is prime or not
(ii) To find the factorial of a number
(iii) To calculate the nth term of Fibonacci series.
2 2. Write a menu driven program to perform operation on list
(i) To find sum and average of the elements in the list
(ii) To find sum of even numbers and odd numbers in the list
(iii) To find the elements of the list which are divisible by a given number
(iv) To update the elements of the list as per given condition.
3 Write a program to read a file and display the contents line by line.
4 Write a program to count the size of the file.
5 Write a program to print first and last line of a text file.
6 Write a program to read 1st 10 bytes, then read 15 bytes and then read all the
content of the file.
7 Write a program to write rollno,name and marks of 5 students in a text file.
8 Write a program to write bio data of a students such as Name, Class, Address,
phone number of 10 students using write lines function in a text file.
9 Read a text file line by line and display each word separated by '#'.
10 Read a text file and display the number of vowels/ consonants/uppercase/
lowercase characters/digits/other characters in the file.
11 Write a Python program to count total number of words, independent word entered
by the user in the text file.
12 Write method in Python to read lines from a text file MYNOTES.TXT and display
those lines, which are starting with the alphabet entered by the user.
13 Write a function in python to count the number of lines in a text file ‘readme.txt’,
that contain the word ‘happy’ anywhere in them.
14 Write a function Biggest( ) in python to read a text file ‘readme.txt’ and then return
the word that has the maximum length.
15 Write a function smallest( ) in python to read a text file ‘readme.txt’ and then
return the word that has the minimum length.
16 Write a method/function Count () to count numbers of words having 4 characters
from a text file “notes.txt”.
17 Write a program to modify the text by replacing string in the same File and
replacing string using temporary file.
18 Write a function disp() to in python to read lines from a text file and display those
lines starting with ‘G’ or ‘g’ along with line number from the text file “Story.txt”.
19 Write a Python program to count all the lines having 'a' as last character.
20 Write a Python program to count number of lines begin with uppercase letter.
21 Remove all the lines that contain the character `a' in a file and write it to another
file.
22 Write a program that copies a text file "source.txt" onto "target.txt" barring the
lines starting with @ sign.
23 WAP to create a binary file with name and roll number. Search for a given roll
number and display the name, if not found display appropriate message.
24 WAP to create a binary file with roll number, name and marks. Input a roll number
and update the marks.
25 Write a program to delete a given roll number from a binary file.
26 Write a program to insert/append a record into the binary file
27 Write a Python program using funtion to display details of those employees
(Empno,Empname,Salary) who are earning between 20000 and 40000 ( both
values inclusive)
28 Program to create CSV file and store empno,name,salary and search any empno.
29 Program to create CSV file and search any empno and display name,salary and if
not found appropriate message.
30 Program to read the contents of emp.csv file and display the employee record
whose name start with 'S' also show no. of employee with first letter 'S' out of total
record.
31 Write a random number generator that generates random numbers between 1 and 6
(simulates a dice).
32 Write a program to create a package for calculation of area of traingle, rectangle
and circle using various modules.
Schedule for presentation of practical
Sr. No. Name of the student Practical No. Schedule for presentation of practical

1 ADITYA PAWAR 31
2 ADITYA SALUNKHE 15
3 ADNAN SAYYED 26
Monday 21.09.2020
4 AMAN SAHAY 22
5 AMMAR DESAI 6
6 ANIKET PAWAR 17
7 APEKSHA HEGDE 30
8 ATHARVA SAMJISKAR 16
9 CHINMAY KULKARNI 25 Tuesday 22.09.2020
10 DEEPAK KUMAR 13
11 GYANESHWARI PATIL 9,32
12 OM DAHALE 19
13 OMKAR ATTOOR 1
14 PRINCE BENIWAL 21
15 PRIYANSHU CHOUDHARY 10
16 PRIYANSHU RAI 3 Wednesday 23.09.2020
17 RUSHIL CHATURVEDI 7
18 SANSKAR DAS 8
19 SANKET KHANDARE 5
20 SHAMSH ALAM 2
21 SHARAD PARMAR 11
SHREYANSHI Friday 25.09.2020 12.30 to 1.10
22 12
SRIVASTAVA
23 SOUMYA SENGUPTA 4
24 TARUN ASWAL 18
25 TEJAS GAWALI 20
26 UJJWAL 14
27 UNNATI YADAV 27
28 UTKARSH KUMAR RAI 23
Monday 28.09.2020
UTKARSH KUMAR
29 24
RAJPUT
30 VASUDEV JARWAL 28
31 VISHAV PATHANIA 29

You might also like