Class XII Practical file
Class XII Practical file
2. SQL Queries
7. Write a program to input a dictionary and display the key with the highest value.
8. Write a program to create a dictionary from two lists: one of keys and one of values.
10. Write a program to find the largest and smallest number in a list.
� 2. Data Structures (Stacks and Queues using Lists)
11. Write a program to implement a stack using list with push and pop operations.
12. Write a program to implement a queue using list with enqueue and dequeue operations.
13. Write a menu-driven program to perform stack operations (push, pop, display).
� 3. File Handling
15. Write a Python program to create a text file and write some data into it.
16. Write a program to read contents of a text file and count the number of words.
17. Write a program to read a file and display only those lines that start with a vowel.
18. Write a program to store and retrieve student data using binary files.
19. Write a program to copy the contents of one file into another.
20. Write a program to count the number of lines, words, and characters in a file.
21. Write a SQL query to display all the records from the STUDENT table.
22. Write a query to display names of students who scored more than 80 marks.
23. Write a query to change the marks of a student whose RollNo is 101.
24. Write a query to delete the records of students who failed (marks < 33).
25. Write a query to add a new column “Grade” to the STUDENT table.
27. Write a query to find the student with the highest marks.