Class 12 Internal Assessment Exam
Class 12 Internal Assessment Exam
---
---
b) Write a SQL query to count the number of students in each grade from the "Students" table.
c) Write a SQL query to update the address of a student with Student_ID = 101 in the "Students" table.
d) Write a SQL query to delete records of students who have not enrolled in any courses from the "Enrollments"
table.
---
b) Describe how to write data to a CSV file in Python. Include a code example demonstrating this.
c) What is exception handling in file operations? Provide an example of how to handle an exception when trying to
open a non-existent file.
---
b) Write a Python program to read a list of names from a file and print the names that start with the letter 'A'.
c) Explain the concept of lists and tuples in Python. How do they differ from each other?
---
### Instructions:
- Answer all questions.
- Write your answers clearly and legibly.
- Marks for each question are indicated in parentheses.
- Use examples where necessary to support your answers.