0% found this document useful (0 votes)
90 views5 pages

Class 12 CS Practical File 2024-25 Index[1] (1)

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

Class 12 CS Practical File 2024-25 Index[1] (1)

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

GSBV BURARI

COMPUTER SCIENCE
PRACTICAL FILE

Submitted By: Submitted To:


Name: S P SHARMA SIR
Roll No: LECTURER CS/IP
Class & Section:
CS Practical File Session 2024-25 CLASS 12

Table of Content:
S.No. Practical Name Page No. Teacher’s
Sign
PYTHON PRACTICALS
1. WAP in Python to find the factorial of a number using
function.
2. WAP in Python to implement default and positional
parameters.
3. Write a program in Python to input the value of x and n and
print the sum of the following series
1+x+x^2+x^3+----------------x^n
4. WAP in Python to read a text file and print the number of
vowels and consonants in the file.
5. WAP in Python to read a text file and print the line or
paragraph starting with the letter ‘S’
6. WAP in Python to read a text file and print the number of
uppercase and lowercase letters in the file.
7. WAP in Python to create a binary file with name and roll
number of the students. Search for a given roll number and
display the name of student.
8. Create a binary file with roll_no, name and marks of some
students and update the marks of specific student.
9. Create a binary file with eid, ename and salary and update
the salary of the employee.
10. Create a text file and remove the lines from the file which
contains letter ‘K’
11. Create a binary file with 10 random numbers from 1 to 40
and print those numbers.
12. Write a program in Python to create a CSV file with the
details of 5 students.
13. WAP in Python to read a CSV file.

14. Write a menu driven program which insert, delete and


display the details of an employee such as eid, ename and
salary using Stack.
15. Write a menu driven program which insert, delete and
display the details of a book such as book_id, book_name
and price using Stack.
16. Write a menu driven program which insert, delete and
display the details of a student such as roll_no, sname and

2 Student GSBV BURARI,


CS Practical File Session 2024-25 CLASS 12

course using Stack.


17. Write a menu driven program which insert, delete and
display the details of a movie such as movie_id, mname and
rating using Stack.
18. Write a menu driven program which insert, delete and
display the details of a product such as pid, pname and price
using Stack.
19. Write a menu driven program which insert, delete and
display the details of a club such as club_id, cname and city
using Stack.
20. Write a menu driven program to demonstrate add, display,
update, delete and exit. Performed on a table Book
containing (bid, bname, bprice) through python-MySql
connectivity.
21. Write a menu driven program to demonstrate add, display,
update, delete and exit. Performed on a table Product
containing (pid, pname, price) through python-MySql
connectivity.
22. Write a menu driven program to demonstrate add, display,
update, delete and exit. Performed on a table club containing
(club_id, cname, city) through python-MySql connectivity.
23. Write a menu driven program to demonstrate add, display,
update, delete and exit. Performed on a table student
containing (sid, sname, course) through python-MySql
connectivity.
24. Write a menu driven program to demonstrate add, display,
update, delete and exit. Performed on a table movie
containing (mid, mname, rating) through python-MySql
connectivity.
25. Write a menu driven program to demonstrate add, display,
update, delete and exit. Performed on a table Employee
containing (eid, ename, salary) through python-MySql
connectivity.

MYSQL PRACTICALS
1. Write a SQL query to create a database.

2. Write a SQL query to create a student table with the student


id, class, section, gender, name, dob, and marks as attributes
where the student id is the primary key.
3. Write a SQL query to insert the details of at least 10 students
in the student table.

3 Student GSBV BURARI,


CS Practical File Session 2024-25 CLASS 12

4. Write a SQL query to delete the details of a particular student


in the student table.
5. Write a SQL query to increase the marks by 5% for those
students who are scoring marks more than 30.
6. Write a SQL query to display the entire content of the table.

7. Write a SQL query to display student_id, name and marks of


those students who are scoring marks more than 30.
8. Write a SQL query to find the average marks from the
student table.
9. Write a SQL query to find the number of students, who are
from section ‘A’.
10. Write a SQL query to add a new column email in the student
table with appropriate data type.
11. Write a SQL query to add the email id’s of each student in the
previously created email column.
12. Write a SQL query to display the information of all the
students, whose name starts with ‘S’
13. Write a SQL query to display the student_id, name, dob of
those students who are born between ‘2005-01-01’ and
‘2005-12-31’
14. Write a SQL query to display the student_id, name, dob,
marks, email of male students in ascending order of their
name
15. Write a SQL query to display the student_id, gender, name,
dob, marks, email of students in descending order of their
marks.
16. Write a SQL query to display the unique section name from
the student table.
17. Create a student table with student id, name and marks as
attribute, where the student id is the primary key.
18. Insert the details of 5 students in the student table.

19. Delete the details of a student in the student table.

20. Use the Select command to get the details of the students
with marks more than 30.
21. Shiva, a student of class XII, created a table “CLASS”. Grade is
one of the columns of this table. Write the SQL query to find
the details of students whose grade have not been entered.
22. Shiva is using a table with the following details:
Students(Name, Class, Stream_id, Stream_Name)
Write the SQL query to display the names of students who

4 Student GSBV BURARI,


CS Practical File Session 2024-25 CLASS 12

have not been assigned any stream or have been assigned


Stream_Name that end with “computers”
23. Write the difference between drop, delete and truncate
command with example.
24. Write the sort notes on group by, having and where clause
with example.
25. Write the SQL query to find out the square root of 26.

26. Shiva is using a table employee. It has following details:


Employee (Code, Name, Salary, DeptCode). Write the SQL
query to display maximum salary department wise.
27. Write the SQL Query to display the difference of highest and
lowest salary of each department having maximum salary
greater than 4000.
28. Write the SQL Query to increase 20% salary ofthe employee
whose experience is more than 5 year of the table Emp(id,
name, salary, exp)
29. Write the SQL Query for inner join of two tables Emp(eid,
ename, salary, dept_id) and Dept(dept_id, dname)
30. Write the SQL Query for full outer join of two tables Emp(eid,
ename,salary,dept_id) and Dept(dept_id, dname)
31. Write a SQL to Enter 5 Employee data in a single query in the
table Emp (eid, ename, salary, city, dob).
32. Display 4 characters extracted from 5th right character
onwards from string ‘ABCDEFG’.
33. Write a query to create a string from the ASCII values 65,
67.3, ‘68.3’
34. Display names ‘MR. MODI’ and ‘MR. Sharma’ into lowercase.

35. How many characters are there in string ‘CANDIDE’.

36. Create a customer (customer_id, name, country) table and


find the number of customer from each country in the table
using group by.
37. Consider the following SQL String “Active Number” and write
the command to display:
a. “Act” b. “Numb”
38. Write any one similarity and one difference between Primary
key and unique key constraint
39. Write the difference between char() and varchar()

40. Write the difference between count(column_name) and


count(*)

5 Student GSBV BURARI,

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