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

Practicals

Uploaded by

spuri7346
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Practicals

Uploaded by

spuri7346
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

[School name]

Practical file
Of
Computer science
Session 2024-25

Submitted to: Ms. Neeva (PGT)

Submitted By:________

Roll No.__________
Certificate

This is to certify that______________________________,


Roll No.______ of class 12th Session 2024-2025 has prepared
the Practical File as per the prescribed Practical Syllabus of
Computer Science Code- 083, Class 12 AISSCE (CBSE)
under my supervision.
It is the original work done my him/her. His/her work is really
appreciable.
I wish him/her a very bright success.

____________
Signature of Teacher

____________
Signature of External
Index

S.No Practical Page No. Date Teacher’s Sign.


Description
1
2

1. Find the largest/smallest number in a list/tuple


2. WAP to input any two tuples and swap their values.
3. WAP to store students’ details like admission number, roll number, name and percentage in
a dictionary and display information on the basis of admission number.
4. Write a program with a user-defined function with string as a parameter which replaces all
vowels in the string with ‘*’.
5. Read a text file line by line and display each word separated by#.
6. Read a text file and display the number of vowels/consonants/uppercase/lowercase
characters in the file.
7. Remove all the lines that contain the character 'a' in a file and write it to another file.
8. Create a binary file with name and roll number. Search for a given roll number and display
the name, if not found display appropriate message.
9. Create a binary file with roll number, name and marks. Input a roll number and update the
marks.
10. Write a random number generator that generates random numbers between 1 and 6
(simulates a dice).
11. Write a Python program to implement a stack using list.
12. Create a CSV file by entering user-id and password, read and search the password for given
user id.
13. Write a program that accepts a filename of a text file and reports the file's longest line.
14. Write a program to perform read and write operation onto a student.csv file having fields as
roll number, name, stream and percentage.
15. Take a sample of ten phishing e-mails (or any text file) and find the most commonly
occurring word(s).
16. Write a python program to implement a stack using a list data-structure.
17. Write a program to create a library in python and import it in a program.
18. Write a program using python to get 10 players name and their score. Write the input in a
csv file. Accept a player name using python. Read the csv file to display the name and the
score. If the player name is not found give an appropriate message coding.
19. Develop a game using python program.
20. Create a student table and insert data. Implement the following SQL commands on the
student table: o ALTER table to add new attributes / modify data type / drop attribute o
UPDATE table to modify data o ORDER By to display data in ascending / descending order o
DELETE to remove tuple(s) o GROUP BY and find the min, max, sum, count and average.
21. WAP to reverse a string.
22. Create a database ‘dfile’ on the database server, show the list of databases and open it.
23. Create the following table named “dept’ and ‘Emp’ with appropriate data type, size and
constraint(s). show its table structure also.
24. Insert few records/tuples into table. Verify the entered records.
25. i) Display all the information of employees whose job is NEITHER manager nor clerk.
ii)Display the details of all the employees whose Hiredate is after December 1991.
26. i) Display the details of all the employees whose Hiredate is maximum.(consider the sql’s
standard date format)
ii) Display all information of clerk and Manager in descending salary wise.
iii) Display all columns arranged in descending order of Job and within the job in the
ascending order their Names.
27. i) List all employees whose name has the character ‘a’.
ii) Display average salary, highest salary and total no. of Employees for each department.
28. Increase the salary of clerk by 5% Sal and verify the update rows.
29. Write a query to display corresponding information from both the tables using equi-join.
30. Write a query to display Ename, Job and Salary from Emp and its corresponding Dnam and
Location from Dept tables using equi-join.
31. Create Student table with following fields and enter data as given in the table below

T hen, query the followings:


(i) List the students whose department is “CSE”.
(ii) List all the students of age 20 and more (i) List the students whose department is “CSE”
(ii) List all the students of age 20 and more in ME department.
(iii) List the students department wise.
((iv) Modify the class M2 to M1.
(V) Check for the uniqueness of Register no.

32. Create a SQL table using python and accept 10 names and age .sort in descending order of
age and display them.
33. Create following table and then perform below listed SQL queries.
 Display the records from table student in alphabetical order as per the
name of the student.
 Display Class, Dob and City whose marks is between 450 and 551.
 Display Name, Class and total number of students who have secured
more than 450 marks, class wise
 Increase marks of all students by 20 whose class is “XII

34. Write a Program to show how to retrieve records from a database table Emp using MySQL
database connectivity in python.
35. Write a program to show how to add records in a database table Emp using MySQL databse
connectivity in python.
36. Write a Program to show how to update a record a record from a database table Emp using
MySQL database connectivity in python.
37. Write a Program to show how to DELETE a record from a database table Emp using MySQL
database connectivity in python.

You might also like