Practical File 23-24
Practical File 23-24
COMPUTER SCIENCE
PRACTICAL FILE
GRADE 12 (2023-2024)
ROLL No. -
Certificate
Roll No.___________________________
Teacher-in charge
____________________________
Date:
_______________________ _______________________
4. LOGIN CREDENTIALS_CHECKING
5. DICTIONARY MANIPULATION
6. STRING MANIPULATION
INPUT
OUTPUT
PRACTICAL- 2
AIM- Write a program to pass list to a function and double the odd values and
half even values of a list and display list element after changing.
INPUT
OUTPUT
PRACTICAL- 3
AIM- Write a python program using a function to print factorial number series from n to m numbers.
INPUT
OUTPUT
PRACTICAL- 4
AIM- Write a python program to accept the username “Admin” as the default argument and password
123 entered by the user to allow login into the system.
INPUT
OUTPUT
PRACTICAL- 5
AIM- Write a program to function with key and value, and update
value at that key in dictionary entered by user
INPUT
OUTPUT
PRACTICAL- 6
AIM- Write a program to pass a string to a function and count how many vowels
present in the string
INPUT
OUTPUT
PRACTICAL- 7
INPUT
OUTPUT
PRACTICAL- 8
AIM- WAP to read a text file line by line and display each word separated by a #.
INPUT
OUTPUT
PRACTICAL- 9
AIM- WAP to read a text file and display the number of vowels/consonants/uppercase/lowercase
characters in the file
INPUT
OUTPUT
PRACTICAL-1 0
AIM- Write a program to know the cursor position and print the text according to the below-given
specifications:
INPUT
OUTPUT
PRACTICAL- 11
AIM- Write a program to remove all the lines that contain the character ‘a’ in a file
and write it to another file.
INPUT
OUTPUT
PRACTICAL- 12
AIM- Write a program to create a binary file with name, roll number and marks.
INPUT
PRACTICAL- 13
AIM-
Write a Python program to implement a stack using list.
INPUT
OUTPUT
PRACTICAL- 15
AIM- Write a program to create a CSV file with empid, name and mobile no. and search
empid, update the record and display the records
INPUT
OUTPUT
2.
Display the type of movies.
--Select Type from Movie;
4. Display movieid, moviename and productioncost for all movies with productioncost greater
than 150000 and less than 1000000.
--Select movieid, moviename , productioncost
where production cost between 150000 and 1000000;
1. Display the matchid, teamid, teamscore who scored more than 70 in the first inning along with team
name.
2.
3.
4.
5.
Queries Set 5 (Group by , Order By)
Consider the following table stock table to answer the queries:
2. Display maximum price of items for each dealer individually as per dcode from stock.
Select item,dcode,qty*unitprice as ‘selling_price’ from stationary
INPUT:
OUTPUT:
1)
2)
3)
4)
3. Modify the above program and display the customer details based on the following menu:
2)
3)
4)
OUTPUT: