0% found this document useful (0 votes)
21 views21 pages

Class12 CS Practical File Akshat CBSESyllabus

Uploaded by

Akshat Kumar
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)
21 views21 pages

Class12 CS Practical File Akshat CBSESyllabus

Uploaded by

Akshat Kumar
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/ 21

Class 12 Computer Science Practical File

Class 12 Computer Science Practical File

Student Name: Akshat Kumar

Roll No: 2

School Name: PM SHRI Kendriya Vidyalaya Nagaon

Academic Year: 2024-25


Class 12 Computer Science Practical File

Certificate

This is to certify that Akshat Kumar of Class 12 has successfully completed the Computer Science

Practical File as per the guidelines prescribed by CBSE for the academic year 2024-25. The work

done is satisfactory and in accordance with the CBSE curriculum.

Teacher's Name: ___________________

Signature: ___________________

Principal's Name: ___________________

Signature: ___________________
Class 12 Computer Science Practical File

Acknowledgment

I would like to express my heartfelt gratitude to my Computer Science teacher for their invaluable

guidance and support throughout the preparation of this practical file. I would also like to thank the

school for providing the resources to complete this project.


Class 12 Computer Science Practical File

Index

1. 1. Python Programs: Lists, Tuples, Dictionaries, Strings, File Handling, Recursion

2. 2. Data Structures: Stack and Queue using Lists

3. 3. SQL Queries: Operations on one/two tables

4. 4. Python-SQL Connectivity: Database interaction using Python


Class 12 Computer Science Practical File

Basic Arithmetic

Write a Python program to perform addition, subtraction, multiplication, and division.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

List Operations

Write a Python program to perform basic operations on a list.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

Tuple Manipulation

Write a Python program to access and modify elements in a tuple.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

Dictionary Operations

Write a Python program to demonstrate operations on a dictionary.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

String Manipulations

Write a Python program to perform string slicing and concatenation.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

Factorial using Recursion

Write a Python program to calculate the factorial of a number using recursion.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

Fibonacci Series

Write a Python program to print the Fibonacci series using recursion.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

Stack Implementation

Write a Python program to implement a stack using a list.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

Queue Implementation

Write a Python program to implement a queue using a list.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

File Reading

Write a Python program to read a file and display its contents.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

File Writing

Write a Python program to write data to a file.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

File Append

Write a Python program to append data to an existing file.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

Count Words in File

Write a Python program to count the number of words in a file.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

Palindrome Check

Write a Python program to check if a given string is a palindrome.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

Armstrong Number

Write a Python program to check if a number is an Armstrong number.

Sample Code: [Provide actual Python code here]

Sample Output: [Provide corresponding output here]


Class 12 Computer Science Practical File

SQL Queries

1. Create a table named 'Employees' with columns: ID, Name, Age, and Salary.

2. Insert records into the 'Employees' table.

3. Retrieve all employees with Salary > 50000.

4. Update the Salary of an employee based on their ID.

5. Delete a record from the 'Employees' table based on their ID.


Class 12 Computer Science Practical File

Python-SQL Connectivity Programs

Write a Python program to connect to a MySQL database and fetch all records from a

Write a Python program to insert a new record into a MySQL table using Python.

Write a Python program to update a record in a MySQL table based on a condition.

Write a Python program to delete a record from a MySQL table based on a condition.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy