Class 12 Record Programs - Ay2024-251715102010-4
Class 12 Record Programs - Ay2024-251715102010-4
2. Write a program to accept the list of marks for subjects from the user for n students and do
the following,
a. Print highest mark scored
b. Print the number of students scored less than 40
c. Compute the average marks
d. Compute the percentage of marks scored
3. Write a python program to input ‘n’ customers and their details like items bought, cost and
phone number etc. Store them in a dictionary and display all the details in a tabular form.
4. Write a program using function that takes amount – in – dollars and dollar – to – rupee
conversion price, it then returns the amount converted to rupees. Create a function in both
void and non-void forms.
5. Write a program using function to calculate volume of a box with appropriate default values
for its parameters. Your function should have the following input parameters,
a. Length of box
b. Width of box
c. Height of box
7. Write an application based program (payroll, electricity bill, phone bill etc) to implement
LEGB rule and global keyword.
8. Write a program to implement the guessing game as per the following criteria.
a. To guess an integer number
b. To guess a floating point number
c. To guess a character from a list of character elements
9. Read a text file line by line and display each word separated by a #.
10. Write a program to find the number of upper case, no of lower case, number of digits, no of
vowels, no of consonants, no of special characters and numbers of lines in a text file.
11. Write a program to remove all the lines that contains the character ‘A’ or ‘a’ in a file and
write it to another file.
13. Take a sample of ten phishing e-mails (or any text file) and find most
commonly occurring word(s)
14.Write a menu driven program to perform all the basic operations using dictionary on student
binary file such as inserting, updating, searching and deleting a record.
a. Insert records with the following data (data includes USN, Student_Name, Class, Sec, Marks)
b. Ask for a student name and update their Marks
c. Search for a student record using USN
d. Delete records of students who have scored less than 13
15. Write a program to create a Binary file and read byte by byte using seek ( ) and tell ( ).
EG: Print the pointer position before and after reading all bytes from your file, go to beginning
of the file using seek ( ), Now read 5 bytes from the file and print the pointer position, read the
remaining bytes and print the pointer position.
16. Write a program to compute the Total salary of the employee and also calculate the size of
the binary file named “empfile.dat”. The file consists of the following fields: employee number,
employee name, basic salary, allowance. (HINT : Total salary = basic +allowance)
17. Write a program to read User_Id and Password for a CSV file, count the number of records
and search for a particular record based on User_Id.
18. Create a CSV file “groceries” to store information of different items existing in a shop. The
information is to be stored w.r.t each item code, name, price, qty. Write a program to accept
the data from user and store it permanently in CSV file.
19. Coach Abhishek stores the races and participants in a dictionary. Write a menu
based python program, with separate user defined functions to perform the
following operations:
⚫ Push the names of the participants of the dictionary onto a stack, where
the distance is more than 100 .
⚫ Pop and display the content of the stack
20. Write a Menu based program to add, delete and display the record of hostel using list as
stack Data Structure in Python. Record of Hostel Contains the following fields: Hostel Number,
Total Students and Total Rooms.
21. Write a Menu based program to push, pop and display the record of phone directory using
list as stack Data Structure in Python. Record of phone directory contains the following fields:
Pin code of the city and Name of the city.
SQL
22. Create the following table and execute the following queries
PRODUCT CLIENT
C_ID BrandName City P_ID P_ID ProductName Manufacturer Price
01 Maybelline Delhi FW05 TP01 Toner LAK 40
06 Loreal Mumbai BS01 FW05 Face Wash ABC 45
12 MAC Delhi SH06 BS01 Bronzer ABC 55
15 Sugar Delhi FW12 SH06 Shampoo XYZ 120
16 Kay Bangalore TP01 FW12 Face Wash XYZ 95
23. Write a python database connectivity script that creates and inserts value into the table
SCHOOLBUS of database STD12.
24. Write a python database connectivity script that display the records of table SCHOOLBUS
where distance is greater than 20.
25. Write a python database connectivity script to increase the charges by 100
26. Write a python database connectivity script that deletes records from the table SCHOOLBUS
that have name =”Yadhav Co”.