0% found this document useful (0 votes)
4 views

lab file ...word

The document is a lab practical file created by Vanshika, a student of Class XII A at St. John's Public School, detailing various programming exercises in Python and MySQL. It includes acknowledgments, a certificate of completion, an index of programs, and the actual programs with outputs related to stacks, file handling, and database management. The file serves as a practical evaluation for the Computer Science curriculum of CBSE for the academic year 2023-2024.

Uploaded by

born.to.slay56
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

lab file ...word

The document is a lab practical file created by Vanshika, a student of Class XII A at St. John's Public School, detailing various programming exercises in Python and MySQL. It includes acknowledgments, a certificate of completion, an index of programs, and the actual programs with outputs related to stacks, file handling, and database management. The file serves as a practical evaluation for the Computer Science curriculum of CBSE for the academic year 2023-2024.

Uploaded by

born.to.slay56
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

ST.

JOHN’S PUBLIC SCHOOL

Made By - Vanshika
Class - XII A
RollNo -
CONTENT

• Acknowledgement
• Certificate
• Index
• Database with MySQL {Programs with output}
• Stacks in Python
• File Handling in Python {Programs with output}
ACKNOWLEDGEMENT

I would like to express my deep sense of gratitude and


indebtedness towards our learned teacher Mr. Jwala
Prasad, PGT Computer Science, (ST. JOHN’S PUBLIC
SCHOOL) for his invaluable assistance, advice, support
and guidance in the preparation of this project.
I am also greatly indebted to our principal and school
authorities for providing me with the supporting
facilities and requisite conditions for making this
practical file. I also extend my thanks to number of
teachers , my classmates and friend who helped me to
complete this practical lab file successful.

- Vanshika
CERTIFICATE

This is to certify that VANSHIKA, student of class XII A ,


ST. JOHN’S PUBLIC SCHOOL has completed the Lab
Practical File during the academic year 2023 – 2024
towards partial fulfillment credit for the Computer
Science practical evaluation of CBSE and submitted
satisfactory report, as compiled in the following pages,
under my supervision.
Total number of practical programs certified are :-

*Principal Signature :-

*Ext. Teacher Signature :-

*Int. Teacher Signature :-


INDEX
S.NO PROGRAMS

1 Program to find factorial of a no. using default


function.
2 Program to add two no. using parameterized
function.
3 Program to subtract two no. using default
parameterized function.
4 Program to print a random integer between 1-50
(including both).
5 Program to print a random character from a sting.
6 Program to print a random decimal no. between
3-6.
7 Program to randomly arrange the elements of a
list.
8 Program to print a random set of directions from
a list.
9 Program to create ‘push’ function to insert values
in stack.
10 Program to create ‘pop’ function to delete values
in stack.
11 Program to create ‘insert’ function to insert
values in queue.
Program to create ‘delete’ function to delete
12 values in queue.
Write a menu driven stack program.
13 Program to create a database ‘12students’ and a
14 table in MySQL.
Program to create a table ‘Marksheet’ in MySQL.
15 Program to insert data in Marksheet table in
16 database ‘12students’ in MySQL.
Program to describe, select and display the data
17 of table ‘Marksheet’ in MySQL.
Program to update value in Gender in table
18 ‘Marksheet’ in MySQL.
Program to delete any value from a table in
19 MySQL.
Program to create MySQL database from python
20 (connectivity).
Program for creating connectivity between
21 Python and MySQL and creating a table.
Program for creating connectivity between
22 Python and MySQL and inserting data into a
table.
Program for creating connectivity between
23 Python and MySQL and update data into a table.
Program for creating connectivity between
24 Python and MySQL and delete data into a table.
Program for writing and reading from a binary file
25 in python.
Program for append operation on a binary file in
python.
26
Program for search operation on a binary file in
27 python.
Program for read and write in text file in python.
28 Program for counting number of words in text
29 file.
Program to count the number of upper-case
30 alphabets present in a text file “mfile.txt”.
Program to simple write-read in CSV.
31
PROGRAMS
1. Program to find factorial of a no. using default function.
2. Program to add two no. using parameterized function.

3. Program to subtract two no. using default parameterized


function.
4. Program to print a random integer between 1-50 (including
both).

5. Program to print a random character from a sting.


6. Program to print a random decimal no. between 3-6.

7. Program to randomly arrange the elements of a list.


8. Program to print a random set of directions from a list.

9. Program to create ‘push’ function to insert values in stack.


10. Program to create ‘pop’ function to delete values in
stack.

11. Program to create ‘insert’ function to insert values in


queue.
12. Program to create ‘delete’ function to delete values in
queue.

13. Write a menu driven stack program.


14. Program to create a database ‘12students’ in MySQL.

15. Program to create a table ‘Marksheet’ in MySQL


16. Program to insert data in Marksheet table in database
‘12students’ in MySQL.

17. Program to describe, select and display the data of table


‘Marksheet’ in MySQL.
18. Program to update value in Gender in table ‘Marksheet’
in MySQL.
19. Program to delete any value from a table in MySQL.

20. Program to create MySQLdatabase from python


(connectivity).
21. Program for creating connectivity between Python and
MySQL and creating a table.

22. Program for creating connectivity between Python and


MySQL and inserting data into a table.
23. Program for creating connectivity between Python and
My SQL and update data into a table.

24. Program for creating connectivity between Python and


My SQL and delete data into a table.
25. Program for writing and reading from a binary file in
python.

26. Program for append operation on a binary file in


python.
27. Program for search operation on a binary file in python.

28. Program for read and write in text file in python.


29. Program for counting number of words in text file.

30. Program to count the number of upper-case alphabets


present in a text file “mfile.txt”.
31. Program to simple write- read in CSV.

************************

You might also like