Berwin's Computer Practical file for cbse practical exam
Berwin's Computer Practical file for cbse practical exam
KUWAIT
COMPUTER SCIENCE
PRACTICAL RECORD
Date:
External Examiner
Seal:
N
1.
ACKNOWLEDGEMENT
It is with great pleasure that I find myself
penning down these words to express my
sincere thanks to all those people who
helped me along the way in completing this
practical file.
2.
DECLARATION
This is to certify that this practical file is the
original work of Berwin Jacob Kurian of
Integrated Indian School under the guidance
of Mrs. Jinshy Ajish during the academic year
2024-2025 in the fulfilment of the requirement
of CBSE.
Class: XII
3.
PRACTICAL FILE
INPUT:
==================================
OUTPUT:
========================================
**********************************************
7.
2. Write a program to display ASCII code of
a character and vice versa.
INPUT:
========================================
OUTPUT:
========================================
8.
3. Program to make a simple calculator.
INPUT:
========================================
9.
OUTPUT:
========================================
**********************************************
10.
4. Example of Local and Global variables in function.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
11.
5. Program to count the number of vowels,
consonants, digits and characters in a
ddstring.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
12.
6. Program to add marks and calculate the grade of a
student.
INPUT:
========================================
OUTPUT:
========================================
13.
7. Generate a list of numbers using for loop.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
14.
FILE HANDELING PROGRAMS
OUTPUT:
========================================
**********************************************
15.
9. Program in python to read the entire text
file.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
16.
10.Program in python to read first two lines
from a text file.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
17.
11. Program in python to append text at the
end of text file.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
18.
12. Program in python to read line by line
from a text file.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
19.
13. Program in python to read entire file line by line
into a list.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
20.
14. Program in python to read each word separately.
INPUT:
========================================
21.
OUTPUT:
========================================
**********************************************
22.
15. Program in python to count number of words in a
text file.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
23.
16. Program in python to show word of maximum
leangth in a text file.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
24.
17. Program in python to display frequency of each
word in a text file.
INPUT:
========================================
25.
OUTPUT:
========================================
**********************************************
26.
18. Program in python to store list elements in a file
and read these contents from file again.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
27.
19. Python program to combine each line from first
file with the corresponding line in the second file.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
28.
20. Python program to copy the contents of one file to
another.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
29.
21. Python program to search for a word in text file
and print part of line.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
30.
22. Python program to read character by character
from a text file.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
31.
23. Python program to convert file contents upper to
lower and lower to upper case in the same opened file.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
32.
24. Python prgram to read and write in binary
file.
INPUT:
========================================
OUTPUT:
========================================
**********************************************
33.
Python program on Data file Handling
(Binary File)
ANS:
34.
INPUT:
========================================
35.
OUTPUT:
========================================
36.
**********************************************
37.
Q-1 b) Write a menu-driven program in
python to implement the following on binary
file shoes.dat
ANS:
INPUT:
========================================
38.
39.
OUTPUT:
========================================
40.
**********************************************
41.
Python program on CSV File
INPUT:
========================================
42.
43.
OUTPUT:
========================================
44.
**********************************************
45.
1-Q b)WAP to create a CSV file and implement the
following on csv file of the given structure:
1. Add record
2. Display record
3. Search record
4. Exit
INPUT:
=========================================
46.
44.
OUTPUT:
========================================
47.
**********************************************
48.
Python program on Data Structures (Stack)
INPUT:
========================================
49.
OUTPUT:
========================================
50.
**********************************************
51.
Q-1 b) Write a python program to implement stack
for the employee details.
INPUT:
========================================
52.
OUTPUT:
========================================
53.
**********************************************
54.
Q-1 c) Write a python program to check
whether a string is a palindrome or not
INPUT:
========================================
OUTPUT:
========================================
**********************************************
55.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
INDEX
S.NO DATE PROGRAM NAME TEACHER’S
SIGN