Class 12 Assignnment 2024
Class 12 Assignnment 2024
Python Programs
1. Creating a menu driven program to perform arithmetic operations.
3. Creating a menu driven program to find factorial and sum of list of numbers
using function.
7. Creating a python program to read a text file line by line and display each word
separated by '#'.
8. Creating a python program to read a text file and display the number of
vowels/consonants/lower case/ upper case characters.
10. Creating a python program to copy particular lines of a text file into another text
file.
11. Creating a python program to create and search records in binary file.
12. Creating a python program to create and update/modify records in binary file.
13. Creating a python program to create and search employee’s record in csv file.
SQL Queries
20. Consider the following `Product` table:
ProductID ProductName Category Price Stock SupplierID
1 Laptop Electronics 800 15 101
2 Tablet Electronics 300 25 102
3 Chair Furniture 120 50 103
4 Desk Furniture 250 20 104
5 Monitor Electronics 180 30 101
1. Write an SQL query to create the `Product` table as shown above.
2. Write an SQL query to retrieve the names of all products priced between 200 and 500.
3. Write an SQL query to display the total `Stock` available for each `Category`.
4. Write an SQL query to delete products that are out of stock (i.e., `Stock` = 0).
5. Write an SQL query to update the `Price` of all `Furniture` items by reducing it by
10%.
1. Write an SQL query to add a new column `Experience` (in years) to the `Employee` table.
2. Write an SQL query to increase the `Salary` by 5% for employees in the `HR` department.
3. Write an SQL query to retrieve names of employees who earn more than 60000 and are in the
`IT` department.
4. Write an SQL query to display the `Department` and the total `Salary` paid to employees in each
department.
5. Write an SQL query to delete records of employees who joined before `2019`.