0% found this document useful (0 votes)
25 views90 pages

Berwin's Computer Practical file for cbse practical exam

2024-2025 cbse computer science

Uploaded by

Berwin Jacob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views90 pages

Berwin's Computer Practical file for cbse practical exam

2024-2025 cbse computer science

Uploaded by

Berwin Jacob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 90

INTEGRATED INDIAN SCHOOL,

KUWAIT

COMPUTER SCIENCE
PRACTICAL RECORD

SUBMITTED FOR THE PARTIAL FULFILLMENT


OF AISSC PRACTICAL EXAMINATION

DONE BY: BERWIN JACOB KURIAN


BONAFIDE CERTIFICATE

Certified to be the bonafide work done


by Berwin Jacob Kurian of class XII in
Computer Science during the academic
year 2024-2025.
Mrs. Jinshy Ajish
P.G.T in Computer Science
Integrated Indian School, Kuwait

Submitted for All India Senior School


Certificate Practical Examination held in
the Computer Science Laboratory of IIS

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.

The harmonioys climate in our institution


provided proper academic setting, It was a
privilege to have been guided by Mrs.
Jinshy Ajish.

Special thanks to all my friends who helped


me during the development of this practical
file.

Without the support extended by my


parents, this project could not have attained
its present form and moreover, I would like
to thank The Lord for this abundant grace
upon me.

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.

Done By: Berwin Jacob Kurian

Class: XII

3.
PRACTICAL FILE

1.Write a program to check if a number


whether a number is a palindrome or not.

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

8. Program to type in python to type text in a


fill till ~ is pressed as rightmost character.
INPUT:
========================================

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)

Q-1 a) Write a menu-driven program


in python to implement the following
on binary file of the given structure:
[Doctorid, Doctor name, Hospital id,
Joining date, speaciality and salary]

1. Write a record to the file


2. Read all the records to the file
3. Update Record
4. Exit

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

1. Write a record to the file


2. Read all the records to the file
3. Update Record
4. Exit

ANS:
INPUT:
========================================

38.
39.
OUTPUT:
========================================

40.
**********************************************

41.
Python program on CSV File

Q-1 a)WAP to create a CSV file and store empno,


name and salary of employee. Display the
records whose salary is in range of 50000 to
15000.

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:

[s_id, Name, brand, typ, price ]

1. Add record
2. Display record
3. Search record
4. Exit

INPUT:
=========================================

46.
44.
OUTPUT:
========================================

47.
**********************************************

48.
Python program on Data Structures (Stack)

Q-1 a) Write a menu-driven python program to


implement stack operation.

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

1 07-03-2024 TO CHECK WHETHER A NUMBER IS A PALINDROME


OR NOT
2 11-03-2024 TO DISPLAY ASCII CODE OF A CHARACTER AND
VICE VERSA
3 14-03-2024 TO MAKE A SIMPLE CALCULATOR

4 18-03-2024 EXAMPLE OF LOCAL AND GLOBAL VARIABLE

5 21-03-2024 TO COUNT THE NUMBER OF VOWELS, CONSONANTS,


DIGITS AND SPECIAL CHARACTERS IN A STRING
6 25-03-2024 TO ADD MARKS AND CALCULATE THE GRADE OF A
STUDENT
7 07-04-2024 TO GENERATE A LIST OF NUMBERS USING FOR LOOP

8 11-04-2024 TO TYPE TEXT IN A FILE TILL ~ IS PRESSED AS


RIGHTMOST CHARACTER
9 16-04-2024 TO READ ENTIRE TEXT FILE

10 22-04-2024 TO READ FIRST 2 LINES FROM TEXT FILE

11 25-04-2024 TO APPEND TEXT AT THE END OF TEXT FILE


12 02-05-2024 TO READ LINE BY LINE FROM TEXT FILE

13 07-05-2024 TO READ ENTIRE FILE LINE BY LINE IN A LIST

14 13-05-2024 TO READ EACH WORD SEPARATELY


15 15-05-2024 TO COUNT NUMBER OF WORDS IN A TEXT FILE
16 20-05-2024 TO SHOW WORD WITH MAXIMUM LENGTH FROM A
TEXT FILE
17 22-05-2024 TO DISPLAY FREQUENCY OF EACH WORD IN A TEXT
FILE
18 27-05-2024 TO STORE LIST ELEMENTS IN A FILE AND READ
THESE CONTENTS FROM FILE AGAIN
19 29-05-2024 TO COMBINE EACH LINE FROM FIRST FILE WITH THE
CORRESPONDING LINE IN SECOND FILE
20 03-06-2024 TO COPY THE CONTENTS OF ONE FILE INTO
ANOTHER
21 06-06-2024 TO SEARCH FOR A WORD IN TEXT FILE AND PRINT
PART OF LINE
22 11-06-2024 TO READ CHARACTER BY CHARACTER FROM A TEXT
FILE
23 29-06-2024 TO CONVERT FILE CONTENTS UPPER TO LOWER AND
LOWER TO UPPER CASE IN THE SAME OPENED FILE
24 05-09-2024 TO READ AND WRITE IN A BINARY FILE

25 09-09-2024 MENU-DRIVEN PROGRAM TO IMPLEMENT VARIOUS


OPERATIONS BASED ON DATA FILE HANDLING
(BINARY FILE [A])
26 12-09-2024 MENU-DRIVEN PROGRAM TO IMPLEMENT VARIOUS
OPERATIONS BASED ON DATA FILE HANDLING
(BINARY FILE [B])
27 16-09-2024 TO IMPLEMENT VARIOUS DETAILS AND STORE THEM IN
A FILE (CSV FILE [A])
28 19-09-2024 MENU-DRIVEN PROGRAM TO CREATE AND IMPLEMENT
VARIOUS OPERATIONS IN A FILE (CSV FILE [B])
29 23-09-2024 MENU-DRIVEN PROGRAM TO IMPLEMENT STACK
OPERATIONS [A]
30 26-09-2024 MENU-DRIVEN PROGRAM TO IMPLEMENT STACK
OPERATIONS [B]
31 02-10-2024 MENU-DRIVEN PROGRAM TO IMPLEMENT STACK
OPERATIONS [C]
INDEX
S.NO DATE PROGRAM NAME TEACHER’S
SIGN

1 07-10-2024 MYSQL QUERIES EXERCISE BASED ON MOVIE


TABLE
2 09-10-2024 MYSQL QUERIES EXERCISE BASED ON FUNCTIONS

3 14-10-2024 MYSQL QUERIES EXERCISE BASED ON TWO TABLES

4 17-10-2024 MYSQL QUERIES EXERCISE BASED ON GROUP BY


AND ORDER BY
5 21-10-2024 STUB PROGRAM WITH PYTHON MYSQL
CONNECTIVITY-I
6 23-10-2024 STUB PROGRAM WITH PYTHON MYSQL
CONNECTIVITY-II
7 28-10-2024 STUB PROGRAM WITH PYTHON MYSQL
CONNECTIVITY -III
8 30-10-2024 STUB PROGRAM WITH PYTHON MYSQL
CONNECTIVITY-IV

You might also like