VIJAYANTA SENIOR SECONDARY SCHOOL
COMPUTER SCIENCE HOLIDAY HOMEWORK
(2024-25)
CLASS XII
Week 1:TLM
1. Do the following:
12-C2. - Roll no 1 to 15: Make a presentation to understand the topic
“Exception Handling Mechanisms” explanation with examples.
12-C2. -Roll no 16 to 29 : Make a poster/chart on “String ,List ,Tuple
,Dictionary”
12-C1. -Roll no 14 onwards: Make a presentation on topic “File Operations-
Open,read,write,append,close)
Week 2: BASIC PYTHON PROGRAMME
1. Write a python programme to test if given number is prime or not.
2. Write a python programme to find the given number or a string is
palindrome or not.
3. Write a python programme to calculate the Fibonacci series.
4. Write a python programme to calculate the Factorial of given number.
5. Write a python programme to the biggest and smallest amount three
numbers.
6. Write a python programme to perform the basic arithmetic operations like
+,-,*,/.
7. Write a Python program to generate and print a list of first and last 5
elements where the values are square of numbers between 1 and 30
(both included).
Week 3 : STRING , DICTIONARY
1. Write a python programme to create a dictionary with subject code
as key and subject name as value.
2. Write a Python program to count the number of characters
(character frequency) in a string.
Sample String : google.com
Expected Result : {‘o’: 3, ‘g’: 2, ‘.’: 1, ‘e’: 1, ‘l’: 1, ‘m’: 1, ‘c’: 1}
Week 4: FILE HANDLING
1. Write an interactive menu driven program with the following four
functions:
A-To create a text file called “Nation.txt”
B-Display the file
C-Append relevant content to the file
2. A blood bank maintains data file “Blood.dat” that contains following
information for every donor: donor name, donor date of birth, donor
address, donor phone number and donor blood group. Write a complete
program to do the following:
A) Create a file of the donor
B) Append a record in the file
C) Display the records
D) Modify the existing information of the donor
Note :
1. Week 1 assignment: Students are required to take print out of the
presentation.
2. Week 2,3,4 assignment : Write in A4 Sheet.
3. For each and every week assignment use separate file.
4. In First sheet , write your name,rollno,week number, assignment topic,(
Bottom right side:teacher’s sign & bottom left side: mark).