CLASS12CS
CLASS12CS
SCHOOL
COMPUTER
SCIENCE
PRACTICAL FILE
SESSION 2024-2025
Submitted to- Ms. Muskan Khanna
Submitted by- Vansh Kumar
ACKNOWLEDGEMENT
_______
Signature
INDEX
S.n TOPICS
o
1 Write a program the percentage of a student and
display the grade accordingly
2 WAP to print the pattern.
3 Write a program that reads a string and then prints a
string that capitalizes every other letter in the string.
4 Write a program that reads a line(string),then counts
words and displays how many words are there in line.
5 Write a program to enter a stock by user and perform
functions on it.
6 Write a program to shift every element of a list to
circularly right, e.g., Input: [1,2,3,4,5,6,7] Output:
[4,5,6,1,2,3,7]
7 Write a program to input the total number of sections
and stream names in 11th class and display all
information on the output screen.
8 Write a python program to input ‘n’ names and phone
numbers to store it in a dictionary and print the phone
number of a particular name.
9 Write a program to count number of records present in
“data.csv” file.
10 Write a program to copy the data from “data.csv”
to“temp.csv”
11 Write a python function that accepts a string and
calculates the number of uppercase letters and
lowercase letters.
12 Menu Driven
13 Write a program that fills a list with numbers.
14 Write a program to perform binary search using
randint ().
15 Write a method in Python to read lines from a text file
"MYNOTES.TXT" and display those lines which start with
the alphabet 'K'.
16 Write a program to count the number of upper-case
alphabets present in a text file “story.txt”.
17 Program to store and display multiple integers in
and from a binary file.
18 Create a database and table named student having
columns like rollno , name , gender , marks ,DOB .
19 Write a query to create a simple table countries
including columns country_id, country_name
20 Create a table named ‘HOTEL’ , and add delete
row of EMPID .
21 Consider the following two tables: Stationery and
Consumer, answer the following questions.
23 To add a new column ‘MARKS’ in STUDENTS table.
24 To check for the created tables using python .
25 To view the modified structure of students table
using python script.
26 To insert a record into the table student using
python
27 To implement where clause using python interface
in table Country.
Python
REPORT FILE
Q-1 Write a program for the percentage of a student and
display the grade accordingly.
Q-18 (i) Create a database and table named student having columns
like rollno , name .
(ii) Insert values in the table .
(ii) To display details of that Stationery item whose Company is XYZ and
price is below 10.
(iv) To increase the price of all the stationery items in Stationery table by
2.
(iii) To display the details of those products whose name ends with
'Wash'.
python script.
Q-26 To insert a record into the table student using python
interface .
Q-27 To implement where clause using Python interface in
table .