0% found this document useful (0 votes)
48 views2 pages

Class 12 Internal Assessment Exam

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views2 pages

Class 12 Internal Assessment Exam

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

---

### Class 12 Internal Assessment Exam


**Subject: Database Management Systems and Python**
**Total Marks: 70**
**Duration: 2 hours**

---

#### Section A: DBMS Concepts (20 marks)

1. **Multiple Choice Questions** (1 mark each)


a) Which of the following is a characteristic of a database?
A) Redundancy
B) Consistency
C) Complexity
D) All of the above

b) What does DBMS stand for?


A) Data Base Management System
B) Data Backup Management System
C) Data Base Model System
D) None of the above

c) Which of the following is a type of DBMS?


A) Hierarchical
B) Network
C) Relational
D) All of the above

d) A primary key in a database is:


A) A unique identifier for a record
B) A foreign key
C) A duplicate entry
D) None of the above

e) SQL stands for:


A) Standard Query Language
B) Simple Query Language
C) Structured Query Language
D) None of the above

2. **Short Answer Questions** (5 marks each)


a) Explain the different types of relationships in a relational database.
b) What are normalization and denormalization? Discuss their importance in DBMS.

---

#### Section B: SQL Queries (20 marks)

3. **Write SQL Queries** (5 marks each)


a) Write a SQL query to retrieve the names and ages of all employees from the "Employees" table where the age is
greater than 30.

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.
---

#### Section C: File Handling in Python (15 marks)

4. **File Handling Questions** (5 marks each)


a) Explain how to read data from a text file in Python. Provide a sample code snippet.

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.

---

#### Section D: Python Programming (15 marks)

5. **Python Programming Questions** (5 marks each)


a) Write a Python function that takes a list of numbers and returns the list sorted in ascending order without using
the built-in sort method.

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.

You might also like