Solutions for Class 12 Computer Science: Chapter 08 Database Management System
Access comprehensive textbook solutions for Chapter 08 Database Management System using the official curriculum guides for Class 12 Computer Science. Designed to align with the 2026-27 Kerala Board standards, these detailed answers help students reinforce core academic concepts.
Practice Class 12 Computer Science Solutions: Chapter 08 Database Management System
Navigate directly to the solved Computer Science textbook exercises using the digital viewer below. Each solution includes detailed step-by-step explanations, allowing students to instantly cross-check their work and identify areas requiring further revision.
One Mark Questions and Answers
Question 1: Select the property which is desirable for a database.
a) Redundancy
b) Inconsistency
c) Integrity
d) Complexity
Answer:
c) Integrity
Exam Tips:
a) Redundancy, inconsistency and complexity are problems a DBMS tries to remove; integrity (correct and valid data) is what it tries to keep.
Question 2: Pick the odd man out.
a) Create
b) Select
c) Update
d) Insert
Answer:
a) Create
Exam Tips:
a) Select, Update and Insert are Data Manipulation Language (DML) commands, while Create is a Data Definition Language (DDL) command.
Question 3: ______ is the ability to modify a schema definition in one level without affecting the schema definition in the next higher level.
Answer:
Data independence
Exam Tips:
a) Remember the two kinds: physical data independence and logical data independence.
Question 4: For accessing data from a database, ______ provides an interface with programming languages.
Answer:
SQL (or DML)
Exam Tips:
a) DML (Data Manipulation Language) is the component through which programs and users access and modify data.
Question 5: Give an example for an RDBMS package.
Answer:
Oracle, MySQL, etc.
Exam Tips:
a) Name at least one package; adding a second, such as MySQL or Oracle, is safe.
Question 6: Name the key that acts as a candidate key but not a primary key.
Answer:
Alternate key
Exam Tips:
a) Alternate key = candidate key that is not chosen as the primary key.
Question 7: With the help of ______ the process of storing, retrieving and modifying data is greatly simplified.
Answer:
DBMS
Exam Tips:
a) DBMS stands for Database Management System.
Question 8: If ______ is controlled, DBMS can guarantee that the database is never inconsistent.
Answer:
Redundancy
Exam Tips:
a) Inconsistency arises when copies of the same data differ, so controlling duplication (redundancy) prevents it.
Question 9: Name the property of a DBMS that guarantees that the database is never inconsistent.
Answer:
Data consistency (achieved by controlling redundancy)
Exam Tips:
a) Link the two ideas: less redundancy leads to consistency.
Question 10: ______ and ______ are the two types of integrity checks.
Answer:
Range checks and value checks
Exam Tips:
a) Give both names; the question asks for two.
Question 11: Which component of DBMS provides interfaces with programming languages?
Answer:
Data Manipulation Language (DML)
Exam Tips:
a) Compare with Question 4, where the same idea is asked about SQL or DML.
Question 12: Name the level of database abstraction that describes how the data is actually stored in the storage medium.
Answer:
Physical level
Exam Tips:
a) Physical = how data is stored; logical = what data is stored; view = what the user sees.
Question 13: Name the level of database abstraction that describes what data are stored in the database.
Answer:
Logical level
Exam Tips:
a) Remember "how" for physical and "what" for logical.
Question 14: Database Administrators (DBA) are more concerned with which level of abstraction?
Answer:
Logical level
Exam Tips:
a) The DBA designs the conceptual (logical) schema, which is why the logical level is linked to the DBA.
Question 15: The programmers are connected with ______ level of abstraction.
Answer:
Logical level
Exam Tips:
a) Programmers work with records and structures defined at the logical level.
Question 16: The teller at a bank sees only that part of the database that has information on customer accounts. At which level of database abstraction is he?
Answer:
View level
Exam Tips:
a) The view level shows only the part of the database a user needs.
Question 17: As part of project work, Ashish defines the type of data and the relationship among them. He is at ______ level of database abstraction.
Answer:
Logical level
Exam Tips:
a) Defining data types and relationships is the key phrase that points to the logical level.
Question 18: ______ is the other name for the logical level.
Answer:
Conceptual level
Exam Tips:
a) Logical level and conceptual level mean the same thing.
Question 19: If the modifications made on the storage format do not affect the structure of data, then we achieve ______ data independence.
Answer:
Physical data independence
Exam Tips:
a) Storage format changes relate to the physical level, so the independence is physical.
Question 20: Pick the odd one out.
a) Network model
b) Hybrid model
c) Relational model
d) Hierarchical model
Answer:
b) Hybrid model
Exam Tips:
a) The three classical data models are hierarchical, network and relational.
Question 21: "I am a data model. My records can have more than one parent record." Who am I?
Answer:
Network model
Exam Tips:
a) Hierarchical model: one parent only; network model: many parents.
Question 22: Name the language that enables a user to access or manipulate data as organised by an RDBMS.
Answer:
Data Manipulation Language (DML)
Exam Tips:
a) DML is used for accessing and manipulating data; DDL is used for defining the structure.
Question 23: A Database Administrator is able to modify the structure, for example changing data types and lengths of certain fields in the database of a bank, without affecting the application programs. Identify the data independence associated with it.
Answer:
Logical data independence
Exam Tips:
a) A change in logical structure that does not affect programs is logical data independence.
Question 24: Name the language that is used to define a database schema.
Answer:
Data Definition Language (DDL)
Exam Tips:
a) DDL defines structure (for example CREATE); DML works on the data.
Question 25: Name the person who has central control over the database and programs in a DBMS.
a) Naive user
b) Programmer
c) Database Administrator
d) System Analyst
Answer:
c) Database Administrator
Exam Tips:
a) The DBA has central control over the database.
Question 26: The Oracle DBMS package is based on the ______ model.
Answer:
Relational model
Exam Tips:
a) Oracle and MySQL are RDBMS packages, that is, relational.
Question 27: Match the following.
| A | B |
|---|---|
| a) Relation | i) Field |
| b) Tuple | ii) Table |
| c) Attribute | iii) Record |
Answer:
a - ii
b - iii
c - i
Exam Tips:
a) Relation = table, tuple = row (record), attribute = column (field).
Question 28: Name the relational operation which selects certain columns from a table while discarding others.
Answer:
Project
Exam Tips:
a) Select picks rows; Project picks columns.
Question 29: How do you define the domain of the column 'subject 1' of the MARKS relation?
Answer:
It is the range of values from 0 to 100.
Exam Tips:
a) A domain is the set of values a column is allowed to take.
Question 30: State whether true or false: A view is a kind of table whose contents are taken from other tables.
Answer:
True
Exam Tips:
a) A view stores no data of its own; it is derived from base tables.
Question 31: State true or false: A view can be queried, inserted into, updated and deleted from.
Answer:
True
Exam Tips:
a) The source treats a view like a normal table for these operations.
Question 32: Name an efficient way to provide only the required data to users while hiding other data of the database.
Answer:
View
Exam Tips:
a) Views are used both for convenience and for security.
Question 33: Pick the key which cannot be used to uniquely identify a tuple in a relation: (Candidate key, Primary key, Alternate key, Super key, None of these)
Answer:
None of these
Exam Tips:
a) All of the keys listed can uniquely identify a tuple, so none of them is the answer.
Question 34: The Greek letter \(\pi\) (pi) is used to denote the ______ operation in relational algebra.
Answer:
Project
Exam Tips:
a) Sigma (\(\sigma\)) stands for Select and pi (\(\pi\)) stands for Project.
Question 35: Which relational algebra operation returns all possible combinations of tuples from two relations?
Answer:
Cartesian product
Exam Tips:
a) Cartesian product pairs every tuple of one relation with every tuple of the other.
Question 36: Pick the odd one out: Select, Cartesian product, Union, Intersection
Answer:
Select, because it is a unary operator (it works on one relation), while the others work on two relations.
Exam Tips:
a) Remember: Select and Project are unary; Union, Intersection, Set difference and Cartesian product are binary.
Question 37: What will be the cardinality of the resultant table of the operation Student × Instructor if the cardinality of STUDENT is 5 and of INSTRUCTOR is 3?
Answer:
Cardinality of the Cartesian product = 5 × 3 = 15
Exam Tips:
a) The number of rows in a Cartesian product is the product of the numbers of rows.
Question 38: Consider two relations FOOTBALL and CRICKET. How do you get the names of players who play only cricket and not football?
Answer:
CRICKET - FOOTBALL (set difference)
Exam Tips:
a) Set difference keeps rows of the first relation that are not in the second.
Question 39: Why do we call a foreign key so?
Answer:
It is a candidate key in another table, so in the present table it behaves like a "foreigner".
Exam Tips:
a) A foreign key links one table to another.
Question 40: ______ is the range of values from which the actual values appearing in a given column are drawn.
Answer:
Domain
Exam Tips:
a) Domain = set of permitted values of an attribute.
Question 41: Name the table that does not contain data of its own but is derived from a base table.
Answer:
View
Exam Tips:
a) A view is also called a virtual table.
Question 42: Name a way to uniquely identify a tuple in a relation.
Answer:
By using the primary key
Exam Tips:
a) A primary key can never be null or repeated.
Question 43: Give two unary operations performed on a relation in relational algebra.
Answer:
Select and Project
Exam Tips:
a) Unary operations work on a single relation.
Question 44: Data redundancy is not a desirable property, but all redundancy cannot or should not be eliminated. Do you agree with this statement? Justify.
Answer:
Yes. Sometimes there are technical or business reasons for keeping several distinct copies of the same data.
Exam Tips:
a) Start with "Yes" and give one clear reason.
Question 45: Anju is able to do all the internal operations in a DBMS. What type of user is she? What are the other types of users?
Answer:
She is a Database Administrator (DBA). The other types of users are application programmers and naive users.
Exam Tips:
a) Name all three types of database users.
Question 46: Which of the following statements are true?
(1) DBMS facilitates storage, retrieval and management of databases.
(2) We must keep more copies of the same data in databases.
(3) Data inconsistency is eliminated in DBMS.
(4) DBMS allows sharing of data but does not ensure security.
Choose the correct option:
a) Both (1) and (3) are true
b) Statements (1), (3) and (4) are true
c) Statements (1), (2) and (4) are true
d) All statements are true
Answer:
a) Both (1) and (3) are true
Exam Tips:
a) Statement 2 is false because a DBMS reduces copies; statement 4 is false because a DBMS provides security.
Question 47: Which of the following refers to duplication of data in files?
a) Data redundancy
b) Data inconsistency
c) Data integrity
d) Data security
Answer:
a) Data redundancy
Exam Tips:
a) Redundancy = duplication; inconsistency = copies that do not match.
Question 48: The following are some responsibilities of database users. Which of them belong to the Database Administrator?
(1) Design the conceptual schema of the database.
(2) Develop programs to interact with the database.
(3) Interact with the database through queries.
(4) Ensure authorised and secured access of data.
Choose the correct option:
a) Both (1) and (3)
b) Except (2) and (3)
c) (1), (2) and (4)
d) All four
Answer:
b) Except (2) and (3), that is, (1) and (4)
Exam Tips:
a) Programs are written by application programmers and queries are run by naive users, so the DBA is left with (1) and (4).
Question 49: Which of the keys in a relation do not allow null values? Choose the most appropriate option.
a) Primary key
b) Candidate key
c) Both primary key and candidate key
d) Either primary key or candidate key
Answer:
c) Both primary key and candidate key
Exam Tips:
a) Both are used to identify rows uniquely, so neither can be null.
Question 50: Choose the level of database abstraction that describes what data is stored in the database and what relationships exist among them.
a) External
b) Logical
c) Physical
d) View
Answer:
b) Logical
Exam Tips:
a) Physical describes how; logical describes what and the relationships.
Question 51: Which of the following operations can extract the specified columns of a table?
a) Selection
b) Projection
c) Intersection
d) Set difference
Answer:
b) Projection
Exam Tips:
a) Columns = Projection; rows = Selection.
Two Mark Questions and Answers
Question 52: The schema of a table is EMPLOYEE (emp_code, emp_name, designation, salary). Write down the relational expressions for the following:
a) To get the name and designation of all employees.
b) To get the details of employees whose salary is above 25000.
c) To get the names of employees whose designation is Manager.
d) To get the details of Managers with salary less than 25000.
Answer:
a) \(\pi_{emp\_name,\,designation}(EMPLOYEE)\)
b) \(\sigma_{salary \gt 25000}(EMPLOYEE)\)
c) \(\pi_{emp\_name}(\sigma_{designation = "Manager"}(EMPLOYEE))\)
d) \(\sigma_{designation = "Manager" \text{ and } salary \lt 25000}(EMPLOYEE)\)
Exam Tips:
a) Use \(\sigma\) with a condition for rows and \(\pi\) with a column list for columns.
b) When you need both a row condition and specific columns, put \(\sigma\) inside \(\pi\), as in part (c).
Question 53: Data sharing is an essential feature of DBMS. How does data sharing reduce data inconsistency in a database?
Answer:
Instead of storing more than one copy of the same data, a DBMS stores only one copy, which can be shared by several users. Inconsistency arises when redundancy occurs; if redundancy is removed, inconsistency cannot occur.
Exam Tips:
a) Connect the chain: sharing leads to a single copy, which means no redundancy and so no inconsistency.
Question 54: Pick the odd one out and justify your answer:
a) Column
b) Attribute
c) Field
d) Tuple
Answer:
d) Tuple. The other three terms all mean a column of a table, while a tuple is a row.
Exam Tips:
a) Always give the justification, not just the option.
Question 55: Suppose a table (relation) contains the details of customers in a bank. Which attribute of the customer will be set as the primary key of the table? Give a reason for your opinion.
Answer:
The account number can be set as the primary key, because it is different for different customers. Being unique, it can identify each row.
Exam Tips:
a) A primary key must be unique and non-null; name or address can repeat.
Question 56: How many distinct tuples and attributes are there in a relation with cardinality 22 and degree 7?
Answer:
Cardinality is the number of rows (tuples), so there are 22 tuples.
Degree is the number of columns (attributes), so there are 7 attributes.
Exam Tips:
a) Cardinality = rows; degree = columns.
Question 57: Distinguish between primary key and alternate key.
Answer:
Primary key: a set of one or more attributes used to uniquely identify a row.
Alternate key: a candidate key other than the primary key.
Exam Tips:
a) Mention that both are candidate keys.
Question 58: Write an example for the relational data model.
Answer:
| Reg. No. | Name | Scores |
|---|---|---|
| 101 | Jose | 94 |
| 102 | Raju | 80 |
| 103 | Alvis | 75 |
Exam Tips:
a) Any table with rows and columns shows the relational model; label the rows and columns clearly.
Question 59: Observe the following table and choose the correct match from the options.
| Column A | Column B |
|---|---|
| 1. Cardinality | A. Row of a table |
| 2. Degree | B. Table |
| 3. Relation | C. Number of rows |
| 4. Tuple | D. Number of columns |
| E. Attribute |
a) 1 → B, 2 → D, 3 → E, 4 → C
b) 1 → C, 2 → D, 3 → E, 4 → A
c) 1 → C, 2 → D, 3 → B, 4 → A
d) 1 → D, 2 → C, 3 → B, 4 → E
Answer:
c) 1 → C, 2 → D, 3 → B, 4 → A
Exam Tips:
a) Check each pair separately: cardinality = number of rows, degree = number of columns, relation = table, tuple = row.
Question 60: Consider a table with the fields Name, RollNumber and Mark for a set of students. Suggest a field that is suitable for the primary key. Justify your answer.
Answer:
RollNumber is suitable for the primary key. Name and Mark can have the same values for different students, so they are not suitable.
Exam Tips:
a) A primary key must be unique for every row.
Question 61: Raju is confused by the statement 'logical data independence is more difficult to achieve than physical data independence'. How can you help Raju to understand the statement?
Answer:
Application programs depend heavily on the logical structure of data. So any change in the logical structure means a chance of rewriting the application programs.
Exam Tips:
a) Give the reason: programs depend on the logical structure.
Question 62: Match the following.
| A | B |
|---|---|
| a. DBA | i. querying and updating |
| b. Application programmer | ii. ensures consistency |
| c. Naive users | iii. defines conceptual view |
Answer:
a - ii
b - iii
c - i
Exam Tips:
a) Write the matching as pairs, for example a - ii.
Question 63: Match the following.
| A | B |
|---|---|
| a. The hierarchical model | i. data as tables |
| b. Network model | ii. network as storage medium |
| c. Relational model | iii. child record can have more than one parent |
| iv. tree structure |
Answer:
a - iv
b - iii
c - i
Exam Tips:
a) Hierarchical = tree with one parent; network = more than one parent; relational = tables.
Question 64: Your friend tells you that only the relational model is used nowadays as a DBMS. Will you agree with that? Justify.
Answer:
Yes. The other two models are complex. In an RDBMS there is no redundancy, and relationships can be formed easily.
Exam Tips:
a) Give at least two reasons for agreeing.
Question 65: The telephone number of Gokul is entered in the Library file as 802111 and in the Admission register file as 802171.
1. Can you correlate this problem with a concept in DBMS?
2. Can you propose a solution to avoid this?
Answer:
1. This is the problem of data inconsistency (the same data differs in two places).
2. Remove data redundancy by storing the data only once.
Exam Tips:
a) Name the concept first (inconsistency), then the solution (remove redundancy).
Question 66: What is a DBMS?
Answer:
A DBMS (Database Management System) is used to store large volumes of data and to retrieve data whenever needed. It also allows editing, updating and deleting of the existing data.
Exam Tips:
a) Mention storing, retrieving, editing, updating and deleting.
Question 67: "View provides an excellent way to access data from a database." Do you agree with this statement? Justify your answer.
Answer:
Yes. A view can have data from more than one table, and it can be queried, inserted into, deleted from and updated like a normal table.
Exam Tips:
a) Mention that a view can combine data from several tables.
Question 68: A relation is given below. Mark the following: Tuple, Attributes, Cardinality, Degree.
STUDENT
| Adm No. | Year | Name | Batch |
|---|---|---|---|
| 10000 | 2005 | Biju | Science |
| 10001 | 2005 | Siju | Science |
| 10002 | 2005 | Riju | Commerce |
Answer:
Tuple: a row of the table
Attributes: the columns of the table (Adm No., Year, Name, Batch)
Cardinality: 3 (number of rows)
Degree: 4 (number of columns)
Exam Tips:
a) Count rows without the heading row for cardinality, and columns for degree.
Question 69: State whether true or false.
1. Primary key cannot be a composite key.
2. Only a candidate key can become a primary key.
3. Foreign key of a table is a candidate key in another table.
4. A super key uniquely identifies a row in a relation.
Answer:
1. False
2. True
3. True
4. True
Exam Tips:
a) A primary key can be made of more than one attribute, so statement 1 is false.
Question 70: Is it possible to find the players who play both FOOTBALL and CRICKET by applying any of the relational algebra operations? Explain.
FOOTBALL: (Jose, 23), (Raju, 22)
CRICKET: (Jomon, 22), (Raju, 22)
Answer:
Yes, by the Intersection operation: FOOTBALL \(\cap\) CRICKET. It returns the tuples present in both relations, here (Raju, 22).
Exam Tips:
a) Intersection finds common tuples; the relations must be union compatible.
Question 71: How will you differentiate primary key and super key?
Answer:
Primary key: one of the candidate keys chosen to uniquely identify the rows of a table.
Super key: a combination of a primary key with any other attribute or group of attributes.
Exam Tips:
a) Show the difference in one line each.
Question 72: The cardinality of table T1 is 10 and of table T2 is 8, and the two relations are union compatible. If the cardinality of the result of T1 \(\cup\) T2 is 13, what is the cardinality of T1 \(\cap\) T2? Justify your answer.
Answer:
T1 has 10 rows and T2 has 8 rows. Normally T1 \(\cup\) T2 would have 10 + 8 = 18 rows. Here it is 13, so 5 duplicate rows were eliminated. That means 5 rows are common to both tables.
So the cardinality of T1 \(\cap\) T2 is 5.
Exam Tips:
a) Use: |A \(\cap\) B| = |A| + |B| - |A \(\cup\) B|, that is, 10 + 8 - 13 = 5.
Question 73: The cardinality of table T1 is 10 and of table T2 is 8, and the two relations are union compatible.
1. What will be the maximum possible cardinality of T1 \(\cup\) T2?
2. What will be the minimum possible cardinality of T1 \(\cap\) T2?
Answer:
1. The maximum happens when there are no common rows: 10 + 8 = 18.
2. If there are no common tuples, the cardinality of T1 \(\cap\) T2 is 0, which is the minimum.
Exam Tips:
a) Union is largest when there is no overlap; intersection is smallest (0) in the same case.
Three Mark Questions and Answers
Question 74: For catering to the needs of users, a database is implemented through three general levels. Name the three levels and discuss them.
Answer:
1. Physical level: the lowest level. It describes how the data is actually stored in the storage medium. Complex, low-level data structures are described in detail.
2. Logical level: describes what data are stored in the database and what relationships exist among the data. The database is described in terms of simple structures, and records are defined at this level. Programmers work at this level.
3. View level: the highest level of data abstraction. It is concerned with the way users view the database and describes only a part of the database.
Exam Tips:
a) Give one heading per level and make the contrast clear: how / what / view.
b) Mention who works at each level, for example programmers at the logical level.
Question 75: Consider the following table and write relational algebra operations for the following.
DEPOSIT
| AccNo | Name | Branch | Amount |
|---|---|---|---|
| 1001 | Kumar | Calicut | 10,000 |
| 1002 | Salim | Trivandrum | 25,000 |
| 1003 | Fida | Kottayam | 18,000 |
| 1004 | John | Kannur | 30,000 |
| 1005 | Raju | Thrissur | 5,000 |
1. To display those tuples from the DEPOSIT relation where the amount is greater than 25,000.
2. To display only AccNo and Amount of all depositors.
Answer:
1. \(\sigma_{amount \gt 25000}(DEPOSIT)\)
2. \(\pi_{AccNo,\,amount}(DEPOSIT)\)
Exam Tips:
a) Rows with a condition need \(\sigma\); selected columns need \(\pi\).
b) Write the relation name in brackets after the operator.
Question 76: Show the output of the following relational operations.
a) R1 - R2
b) R1 \(\cap\) R2
c) R1 \(\cup\) R2
| R1: RegNo | Name | Score | R2: RegNo | Name | Score |
|---|---|---|---|---|---|
| 1200 | Babu | A | 1203 | Biju | D |
| 1201 | Lulu | A+ | 1201 | Lulu | A+ |
| 1202 | Sunu | B |
Answer:
a) R1 - R2 (rows in R1 but not in R2):
| RegNo | Name | Score |
|---|---|---|
| 1200 | Babu | A |
| 1202 | Sunu | B |
b) R1 \(\cap\) R2 (rows common to both):
| RegNo | Name | Score |
|---|---|---|
| 1201 | Lulu | A+ |
c) R1 \(\cup\) R2 (all rows of both, without duplicates):
| RegNo | Name | Score |
|---|---|---|
| 1200 | Babu | A |
| 1201 | Lulu | A+ |
| 1202 | Sunu | B |
| 1203 | Biju | D |
Exam Tips:
a) Write the heading row in every output table.
b) In a union, a row common to both relations appears only once.
Question 77: Developers hide the complexity of the database system through several levels of abstraction. What are they?
Answer:
The three levels are the physical level, the logical level and the view level (how data is stored, what data is stored, and how data is viewed).
Physical level: the lowest level; it describes how the data is actually stored in the storage medium, using complex low-level data structures.
Logical level: describes what data are stored in the database and the relationships among them, in terms of simple structures. Records are defined here and programmers work at this level.
View level: the highest level; it is concerned with the way users view the database and describes only a part of it.
Exam Tips:
a) List the three levels in order first, then explain each in a line.
Question 78: How is data organised in a database?
Answer:
Field: the smallest unit of data. Eg: RollNo, Name.
Record: a collection of related fields. Eg: the information of a particular student.
File: a collection of related records. Eg: the information of 10 students.
Exam Tips:
a) Remember the order: field, record, file; give an example for each.
Question 79: Salih checks his account details using an ATM machine.
1. Identify the level of abstraction associated with this.
2. Specify the other levels.
Answer:
1. View level
2. Logical level and physical level
Exam Tips:
a) He sees only part of the database, which is the mark of the view level.
Question 80: Match the following.
| A | B |
|---|---|
| 1. Database Administrator | a. Not concerned with or even aware of the details of the DBMS |
| 2. Application Programmer | b. Person who has central control over the definition and the DBMS |
| 3. Users | c. Computer professionals who interact with the DBMS through application programs |
Answer:
1 - b
2 - c
3 - a
Exam Tips:
a) Link each user type with its role in one line.
Question 81: Match the following.
| A | B |
|---|---|
| Domain | Table |
| Tuple | No. of rows in a relation |
| Attribute | No. of columns in a relation |
| Cardinality | Rows in a relation |
| Degree | A pool of values |
| Relation | Column in a table |
Answer:
| A | B |
|---|---|
| Domain | A pool of values |
| Tuple | Rows in a relation |
| Attribute | Column in a table |
| Cardinality | No. of rows in a relation |
| Degree | No. of columns in a relation |
| Relation | Table |
Exam Tips:
a) Remember cardinality = rows, degree = columns.
Question 82: Explain the major components of a DBMS.
Answer:
1. Databases: the main component.
2. Data Definition Language (DDL): used to define the structure of a table.
3. Data Manipulation Language (DML): used to add, retrieve, modify and delete records in a database.
4. Users: with the help of programs, users interact with the DBMS.
Exam Tips:
a) Four points for three marks: database, DDL, DML and users, each with its purpose.
Question 83: Categorise the users of a DBMS and write their functions.
Answer:
1. Database Administrator: the person who has central control over the DBMS.
2. Application Programmer: computer professionals who interact with the DBMS through programs.
3. Naive users: end users who do not know the details of the DBMS.
Exam Tips:
a) Name all three categories with a one-line function each.
Question 84: A table with three columns is given below. For each relational operation given in the first column, find the best match from the second and third columns.
| Operation | Symbol | Feature |
|---|---|---|
| 1. Select | a) \(\cap\) | i) Output will be only those rows in the first operand table that are not in the second operand |
| 2. Union | b) - (minus) | ii) Gives the horizontal subset of the operand table |
| 3. Set difference | c) \(\sigma\) (sigma) | iii) Gives a table that contains all rows of the operand tables |
| d) \(\cup\) | iv) Gives the vertical subset of the operand table |
Answer:
1. Select: c) \(\sigma\), (ii)
2. Union: d) \(\cup\), (iii)
3. Set difference: b) - (minus), (i)
Exam Tips:
a) Select gives a horizontal subset (rows); Project gives a vertical subset (columns).
b) Union keeps all rows of both tables, so its feature is the one about "all rows of the operand tables".
Five Mark Questions and Answers
Question 85: The cardinality of table A is 10 and of table B is 8, and the two relations are union compatible. What will be the maximum possible cardinality of (A \(\cup\) B) and (A \(\cap\) B)? What will be the minimum possible cardinality of (A \(\cup\) B) and (A \(\cap\) B)? Give justifications for your answers.
Answer:
Two extreme cases are possible: (1) both relations contain different tuples (rows); (2) the 8 tuples of table B are the same as 8 of the tuples of table A.
Case 1: If both relations contain different tuples, the maximum possible cardinality of A \(\cup\) B is 10 + 8 = 18.
Case 2: If the 8 tuples of table B are the same as those of table A, the maximum possible cardinality of A \(\cap\) B is 8.
Case 3: If the 8 tuples of table B are the same as those of table A, the minimum possible cardinality of A \(\cup\) B is 10.
Case 4: If both relations contain different tuples, the minimum possible cardinality of A \(\cap\) B is 0.
Exam Tips:
a) Write the two situations first, then the four results.
b) Check: the union is smallest and the intersection is largest when all of B is already in A.
Question 86: There are different data models, of which one is currently used in all business transactions. Specify it and discuss it in detail.
Answer:
The relational data model is the one used in business transactions. It is based on the concept introduced by E F Codd. It is composed of one or more tables, and tables are made up of rows and columns. Here tables are called relations, rows are called tuples and columns are called attributes. The advantages of this model are that there is no data redundancy and no complexity.
Example:
| Customer | Address |
|---|---|
| Gita | Add1 |
| Lata | Add2 |
| Ram | Add3 |
Exam Tips:
a) Mention E F Codd and the terms relation, tuple and attribute.
b) Draw a small example table; it helps earn the marks for the example.
Question 87: You have to present a seminar on the topic "Keys in RDBMS". Prepare the seminar report.
Answer:
1. Candidate key: a set of attributes that uniquely identifies a row. There may be more than one candidate key, and a candidate key may be a combination of more than one attribute.
2. Primary key: one of the candidate keys. It is a set of one or more attributes that can uniquely identify tuples in a relation.
3. Alternate key: the candidate key that is not the primary key.
4. Super key: a combination of a primary key with any other attribute or group of attributes.
5. Foreign key: a single attribute or a set of attributes which is a candidate key in another table.
Exam Tips:
a) Cover all five keys, one point each, in the order candidate, primary, alternate, super, foreign.
Question 88: Consider the relations STUDENT and GRADE given below and predict the output of the following relational operations in table format.
STUDENT
| RegNo | Name | Scores |
|---|---|---|
| 101 | Preethi | 70 |
| 102 | Anupama | 68 |
| 103 | Ruksana | 94 |
| 104 | Nancy | 87 |
| 105 | Anu | 77 |
GRADE
| RegNo | Scores | Grade |
|---|---|---|
| 101 | 70 | B+ |
| 102 | 68 | B |
| 103 | 94 | A+ |
| 104 | 87 | A |
| 105 | 77 | B+ |
1) \(\sigma_{Scores \gt 80}(STUDENT)\)
2) \(\pi_{RegNo,\,Scores}(STUDENT)\)
3) \(\sigma_{RegNo \lt 103}(GRADE)\)
4) \(\sigma_{Grade = 'B+'}(GRADE)\)
5) \(\pi_{RegNo,\,Name}(\sigma_{Scores \gt 70}(STUDENT))\)
Answer:
1)
| RegNo | Name | Scores |
|---|---|---|
| 103 | Ruksana | 94 |
| 104 | Nancy | 87 |
2)
| RegNo | Scores |
|---|---|
| 101 | 70 |
| 102 | 68 |
| 103 | 94 |
| 104 | 87 |
| 105 | 77 |
3)
| RegNo | Scores | Grade |
|---|---|---|
| 101 | 70 | B+ |
| 102 | 68 | B |
4)
| RegNo | Scores | Grade |
|---|---|---|
| 101 | 70 | B+ |
| 105 | 77 | B+ |
5)
| RegNo | Name |
|---|---|
| 103 | Ruksana |
| 104 | Nancy |
| 105 | Anu |
Exam Tips:
a) Apply the inner operation first in part 5: Scores above 70 leaves 103, 104 and 105, then keep only RegNo and Name.
b) Operations 1 and 2 work on STUDENT, operations 3 and 4 work on GRADE; do not mix their columns.
Question 89: Explain any 4 relational algebra operations.
Answer:
1. SELECT operation: used to select the tuples in a relation that satisfy a selection condition. The Greek letter sigma (\(\sigma\)) is used to denote it. Syntax: \(\sigma_{condition}(relation)\). Eg: \(\sigma_{salary \lt 10000}(EMPLOYEE)\) selects the tuples whose salary is less than 10000 from the EMPLOYEE relation.
2. PROJECT operation: selects certain columns from the table and discards the other columns. The Greek letter pi (\(\pi\)) is used to denote it. Syntax: \(\pi_{attribute\ list}(relation)\). Eg: \(\pi_{name,\,salary}(EMPLOYEE)\) displays only the name and salary of all employees.
3. UNION operation: returns a relation consisting of all tuples appearing in either or both of the two specified relations. It is denoted by \(\cup\). Duplicate tuples are eliminated. It can take place only between compatible relations, that is, the number and type of attributes (and their order) in both relations should be the same. Eg: SCIENCE \(\cup\) COMMERCE gives all the tuples in both SCIENCE and COMMERCE.
4. INTERSECTION operation: returns a relation consisting of all the tuples appearing in both of the specified relations. It is denoted by \(\cap\) and can take place only on compatible relations. Eg: FOOTBALL \(\cap\) CRICKET returns the players who are in both the football and cricket teams.
Exam Tips:
a) Give the symbol, the meaning and one example for each operation.
b) Do not add more than four unless you have time; four well-explained operations are enough for full marks.
Question 90: Why should you choose a database system instead of simply storing data in conventional files?
Answer:
Advantages of a DBMS over conventional files:
1. Data redundancy: duplication of data. A DBMS eliminates redundancy; it does not store more than one copy of the same data.
2. Inconsistency can be avoided: if redundancy occurs there is a chance of inconsistency. If redundancy is removed, inconsistency cannot occur.
3. Efficient data access: a huge amount of data is stored efficiently and can be retrieved whenever needed.
4. Data can be shared: the data stored in the database can be shared by users or programs.
5. Standards can be enforced: the data follows certain standards. Eg: a field Name should be 40 characters long. Some standards are ANSI, ISO, etc.
6. Security restrictions can be applied: data is of great value, so it must be kept secure and private. Data security means protection of data against accidental or intentional disclosure, destruction or modification by unauthorised persons.
7. Integrity can be maintained: it ensures that the data entered in the database is correct.
8. Crash recovery: sometimes all or a portion of the data is lost when a system crashes. A good DBMS helps to recover data after the crash.
Exam Tips:
a) For five marks write at least five points, each with a one-line explanation.
b) Start with redundancy and inconsistency; they are the most expected points.
Question 91: We have an admission register, attendance register, marks register, etc. in our school to keep various details of students. Briefly describe how a DBMS can replace these registers by stating any five merits.
Answer:
Advantages of a DBMS:
1. Data redundancy: a DBMS does not store more than one copy of the same data.
2. Inconsistency can be avoided: if redundancy is removed, inconsistency cannot occur.
3. Data can be shared: the data stored in the database can be shared by users or programs.
4. Standards can be enforced: the data in the database follows standards. Eg: a field Name should be 40 characters long. Some standards are ANSI, ISO, etc.
5. Security restrictions can be applied: data must be kept secure and private; a DBMS protects it against accidental or intentional disclosure, destruction or modification by unauthorised persons.
6. Integrity can be maintained: it ensures that the data entered in the database is correct.
7. Efficient data access: a huge amount of data is stored efficiently and can be retrieved whenever needed.
8. Crash recovery: a good DBMS helps to recover data after a system crash.
Exam Tips:
a) Link each merit to the school registers, for example one student record replaces the entries in several registers.
b) Five merits are enough; the others are extra.
Free study material for Computer Science
Computer Science Class 12 Curriculum Solutions: Chapter 08 Database Management System
Textbook Solutions for Class 12 Computer Science Chapter 08 Database Management System
Review comprehensive exercise answers for Class 12 Computer Science Chapter 08 Database Management System. Fully updated to match current Kerala Board syllabus guidelines, these textbook solutions help students verify their work and maintain accurate study notes.
Mastering Theoretical and Practical Questions
Each solution includes detailed reasoning to foster genuine comprehension of Chapter 08 Database Management System concepts. Reviewing these step-by-step breakdowns allows learners to master both analytical and descriptive questions expected in school evaluations.
Effective Self-Study and Homework Assistance
Consistent practice with these solution guides cultivates faster problem-solving habits and clearer logical structuring. For a complete preparation experience, pair these textbook answers with our dedicated revision notes and sample papers for Class 12 Computer Science.
FAQs
The complete and updated Kerala Plus Two Computer Science Chapter 8 Database Management System Questions and Answers is available for free on StudiesToday.com. These solutions for Class 12 Computer Science are as per latest Kerala Board curriculum.
Yes, our experts have revised the Kerala Plus Two Computer Science Chapter 8 Database Management System Questions and Answers as per 2026 exam pattern. All textbook exercises have been solved and have added explanation about how the Computer Science concepts are applied in case-study and assertion-reasoning questions.
Toppers recommend using Kerala Board language because Kerala Board marking schemes are strictly based on textbook definitions. Our Kerala Plus Two Computer Science Chapter 8 Database Management System Questions and Answers will help students to get full marks in the theory paper.
Yes, we provide bilingual support for Class 12 Computer Science. You can access Kerala Plus Two Computer Science Chapter 8 Database Management System Questions and Answers in both English and Hindi medium.
Yes, you can download the entire Kerala Plus Two Computer Science Chapter 8 Database Management System Questions and Answers in printable PDF format for offline study on any device.