Class 12 Computer Science Practical
File Guide
• Subject: Computer Science (083)
• Class: XII
• Academic Year: 2025–26
Report File Requirements
• Practical file should comprise:
Python Programs: Minimum of 15 programs covering
various concepts.
SQL Queries: At least 5 sets of queries using one or two
tables.
Python-SQL Connectivity: Minimum of 4 programs
demonstrating database interactions using Python
General File Organization
Guidelines
Cover Page
Index Page
Python Programs
SQL Queries
MySQL Connectivity
Sample Cover Page
Index Page
• Include a table with:
- Serial No.
- Question/Problem
- Category
(Python Program / SQL Query / MySQL Connectivity / Report)
- Page No.
- Remarks/Sign (for teacher's use)
Category Separation Pages
Use labeled headers to separate topics:
- Python Programs
- SQL Queries
- MySQL Connectivity
Practical File Content Guidelines
General Instructions:
• Use one-sided ruled sheets
• Code on right-hand side
• Output on left-hand side (drawn/screenshot)
• Maintain neatness, indentation, and comments
• Include output proof for every program/query
Python Program Format
Each program should include:
- Problem No.
- Question
- Python code (well-formatted)
- Expected Output (drawn or screenshot)
Suggested Python Problems
File Handling Searching and Sorting
1 Read text file, separate each word with # 16 Linear search
2 Remove lines with ‘a’ to another file 17 Binary search
3 Copy file contents 18 Bubble sort
4 Count vowels, consonants, uppercase, 19 Selection sort
lowercase letters
5 Count words in a file 20 Insertion sort
Functions Random Number Generation
6 Find Factorial of a number 21 Simulate dice roll
7 Fibonacci number using recursion 22 Generate/sort 10 random numbers
8 Check palindrome 23 Number guessing game
9 Sum of list elements 24 Random passwords
10 Power of number 25 Simulate coin toss
Data Structures CSV and Binary Files
11 Implement stack using list 26 Create/search CSV for user ID & password
12 Implement queue using list 27 Binary file with names & roll numbers
13 Push/pop on stack 28 Binary file for roll, name, marks – update
marks
14 Enqueue/dequeue on queue 29 Read from CSV
15 Infix to postfix conversion 30 Append records to CSV
Suggested MySQL Queries
MySQL Queries
1 Create Table and Database
2 Alter table
3 Delete and Drop records and tables
4 Insert records
5 Update table
6 Select query
7 Query based on aggregate functions
8 Group By queries
Suggested MySQL Connectivity Programs
MySQL Connectivity Programs
1 Connect to MySQL using Python
2 Create table in MySQL via Python
3 Insert records
4 Fetch records (fetchone(), fetchall(), fetchmany())
5 Update records
6 Delete records
Final Notes
• Students can choose problems from the suggested list or
select their own relevant problems.
• File must be signed by subject teacher after verification.