Kerala Plus Two Computer Science Previous Questions Chapter 8 Database Management System

Official Kerala Board 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.

Chapter-wise Solutions for Computer Science: Chapter 08 Database Management System

View or download the dedicated Chapter 08 Database Management System solution resource below. Engaging with these textbook answers under focused study conditions ensures continuous academic progress and mastery of the 2026-27 curriculum for Computer Science.

Previous Questions and Answers

Question 1: What are the components of a DBMS? (March 2008)

Answer:

a) Database: a database is an organised collection of related information.
b) Data Definition Language (DDL): it is used to specify the definition of the database schema. The result of compiling DDL statements is a set of tables stored in a special file called the data dictionary.
c) Data Manipulation Language (DML): it enables users to access or manipulate the data in the database and also provides interfaces with programming languages.
d) Users: users interact with the DBMS indirectly through application programs or directly through a simple query language.

Exam Tips:

a) Name all four components (database, DDL, DML, users) and explain each in one or two lines; the question carries 3 marks.
b) Mention the data dictionary while explaining DDL.

 

Question 2: What are the advantages of DBMS? (March 2008)
OR
Suppose there is a strike against the introduction of computers in your firm. How can you convince the employees of the benefits of computerisation by pointing out the benefits of a database over a manual system?

Answer:

1) Data redundancy is controlled: redundancy means duplication of data, that is, the same data stored in many files, which increases storage and access cost. A DBMS keeps only one copy of the data.
2) Inconsistency can be avoided: if the same data is repeated and one copy is changed but not the others, the copies disagree. When redundancy is removed, inconsistency cannot occur.
3) Data can be shared: if the computers are connected in a network, the data in the database can be shared among several users or programs.
4) Standards can be enforced: data follows standards such as ANSI and ISO. For example, a field Name having a fixed length of 40 characters is a standard. (Similar standards are BIS for gold and ISBN for books.)
5) Security restrictions can be applied: data is valuable, so it must be protected against accidental or intentional disclosure and against unauthorised destruction or modification.
6) Integrity can be maintained: only correct data is entered in the database. For example, a date of birth like 30/30/2001 is rejected by the integrity checks of the DBMS.
7) Efficient data access: a huge amount of data is stored efficiently and can be retrieved whenever it is needed.
8) Crash recovery: when a system crashes, all or part of the data may be lost, and a good DBMS helps to recover the data.

Exam Tips:

a) For a 5 mark question, write at least five points, each with a short explanation.
b) Give a small example with points such as integrity (invalid date) and standards (name field length).
c) For the OR question, present the same points as benefits of the database over a manual system.

 

Question 3: The repetition of the same data in a file system is known as ______. (March 2009)

Answer:

Data redundancy

Exam Tips:

a) Redundancy leads to wastage of storage and may cause inconsistency, so a DBMS tries to remove it.

 

Question 4: What is a Cartesian product? (March 2009)

Answer:

The Cartesian product returns a relation consisting of all possible combinations of the tuples from two relations. It is a binary operation, denoted by \(\times\), and is also called the cross product.

Exam Tips:

a) Mention that it is a binary operation and write its symbol.
b) If relation A has m tuples and B has n tuples, the result has m \(\times\) n tuples; quoting this adds clarity.

 

Question 5: Explain the different levels of data independence. (March 2009)

Answer:

Data independence is the ability to modify the schema definition at one level without affecting the schema definition at the next higher level.
There are two levels of data independence:
1) Physical data independence: the ability to modify the physical schema without requiring the application programs to be rewritten.
2) Logical data independence: the ability to modify the logical schema without requiring the application programs to be rewritten.

Exam Tips:

a) Begin with the definition of data independence, then explain both levels.

 

Question 6: Name the different data models available for database systems. Which of them is the most preferred one? Briefly explain with a suitable example. (February 2009)

Answer:

There are three data models:
a) Hierarchical model: it assigns records to different levels of a hierarchy. A lower level record is called the child and a higher level record is called the parent. Data redundancy is a disadvantage of this model.
b) Network model: it is similar to the hierarchical model, but each child record can have more than one parent record. This model removes the redundancy of the hierarchical model, but it has a high degree of complexity. It was introduced by CODASYL-DBTG in 1971.
c) Relational model: it is based on the concept introduced by E. F. Codd. It is composed of one or more tables. Tables are called relations, rows are called tuples and columns are called attributes. It has no data redundancy and no complexity, so it is the most preferred model.
Example of a relation:

RegnoNameMark
101Anu45
102Biju38

Here the table is the relation, each row is a tuple and Regno, Name and Mark are the attributes.

Exam Tips:

a) Name all three models and mark the relational model as the preferred one.
b) Support the relational model with a small table showing relation, tuple and attribute.

 

Question 7: Explain two unary operations in RDBMS using an example. (February 2009)

Answer:

1) SELECT: it is used to select the tuples of a relation that satisfy a given condition. It is denoted by the Greek letter sigma (\(\sigma\)). The condition appears as a subscript and the relation is given in brackets.
Example: to select the tuples with salary greater than 5000 from the Employee relation: \(\sigma_{Salary>5000}(Employee)\)
2) PROJECT: it selects certain columns of a table and discards the other columns. It is denoted by the Greek letter pi (\(\pi\)).
Example: to select the name and salary columns from the Employee relation: \(\pi_{Name,Salary}(Employee)\)

Exam Tips:

a) SELECT works on rows (tuples) and PROJECT works on columns (attributes); state this clearly.
b) Write the symbols and the subscripts correctly.

 

Question 8: Select the term which is not a part of DBMS. (June 2009)
a) Relation
b) Function
c) Domain
d) Tuple

Answer:

b) Function

Exam Tips:

a) Relation, domain and tuple are relational model terms; function is not.

 

Question 9: Explain the different levels of data abstraction. (June 2009)

Answer:

1) Physical level: it is the lowest level. It describes how the data is actually stored in the storage medium. Complex low-level data structures are described in detail at this level.
2) Logical level: it describes what data is 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: it is the highest level of data abstraction. It is concerned with the way in which users view the database and it describes only a part of the database.

Exam Tips:

a) Write the levels in order from lowest to highest and say who works at each level.

 

Question 10: What are the components of a DBMS? Explain. (June 2009)

Answer:

a) Database: a database is an organised collection of related information.
b) Data Definition Language (DDL): it is used to specify the definition of the database schema. The result of compiling DDL statements is a set of tables stored in a special file called the data dictionary.
c) Data Manipulation Language (DML): it enables users to access or manipulate the data in the database and also provides interfaces with programming languages.
d) Users: users interact with the DBMS indirectly through application programs or directly through a simple query language.

Exam Tips:

a) Cover all four components and explain each briefly.

 

Question 11: Explain the structure of a file. (June 2009)

Answer:

A file is built from fields and records.
Field: a field is the smallest unit of data. Example: roll number, name.
Record: a collection of related fields is called a record. Example: the information about one student.
File: a collection of related records is called a file. Example: the details of all students of a class.

Exam Tips:

a) Go from the smallest to the largest unit: field, record, file, with an example for each.

 

Question 12: ______ is the smallest unit of data. (June 2009)
a) Record
b) File
c) Key
d) Field

Answer:

d) Field

Exam Tips:

a) A field is the smallest unit of stored data; related fields form a record.

 

Question 13: Consider the database of an online ticket reservation system. Explain the classification of the users of this database. (March 2010)

Answer:

The users of a database are classified as follows:
a) Naive (end) users: they are not concerned with, or even aware of, the details of the DBMS. For example, passengers who book tickets through the online system.
b) Database Administrator (DBA): the person who has central control over the definition of the data and over the DBMS.
c) Application programmers: computer professionals who interact with the DBMS through application programs.

Exam Tips:

a) Give the three types of users with one line each, and relate each to the ticket reservation example.

 

Question 14: There is an attribute Roll number in the table STUDENT. This attribute is also the candidate key in the table EXAM. So the Roll number is considered as ______ key in the table EXAM. (March 2010)
a) Foreign
b) Primary
c) Alternate
d) Super

Answer:

a) Foreign

Exam Tips:

a) A foreign key is an attribute that is a key of another table; it is used to link two tables.

 

Question 15: Consider the following table and write relational algebra operations for the following: (March 2010)
Student

RegnoNameMark1Mark2Total
101ABC183654
102XYZ454893
103ZYX384684
104BCD454691
105DEF324173

a) To display those tuples from the STUDENT relation where Total is greater than 90.
b) To display only Regno and Name of all students.

Answer:

a) \(\sigma_{Total>90}(Student)\)
b) \(\pi_{Regno,Name}(Student)\)

Exam Tips:

a) Use SELECT (sigma) for choosing rows and PROJECT (pi) for choosing columns.
b) Write the condition as a subscript and the relation name in brackets.

 

Question 16: Briefly explain the different keys that are used in RDBMS. (March 2010)

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, chosen to identify the tuples of a relation uniquely.
3) Alternate key: a candidate key that is not chosen as the primary key.
4) Super key: a combination of the primary key with any other attribute or group of attributes.
5) Foreign key: an attribute or a set of attributes that is a key in another table is called a foreign key in this table.

Exam Tips:

a) Define all five keys and, if time permits, give one example such as Regno as the primary key of STUDENT.

 

Question 17: Match the following with the levels of abstraction to which the users are primarily associated: (March 2011)

Levels of AbstractionUsers
1. Physical levelA. Naive users
2. Logical levelB. Database administrator
3. View levelC. Application programmer

Answer:

1) Physical level - Database administrator
2) Logical level - Application programmer
3) View level - Naive users

Exam Tips:

a) Remember: the further the level from the hardware, the less technical the user.

 

Question 18: A data model provides a way to represent data and their relationships. (March 2011)
a) Which data model assigns records to different levels of a hierarchy?
b) Briefly explain the relational data model.

Answer:

a) Hierarchical data model
b) In the relational data model, data is stored in the form of tables. A table is called a relation. A table consists of rows and columns; columns are attributes and rows are tuples.

Exam Tips:

a) In part (b) use the terms relation, tuple and attribute.

 

Question 19: Explain how data is organised for effective storage and retrieval of information. (March 2011)

Answer:

Data is organised using data models. Three data models are used for effective storage and retrieval of information: the hierarchical model, the network model and the relational model.

Exam Tips:

a) Name all three models and add one line about each if space permits.

 

Question 20: Which is not an RDBMS package? (March 2011)
a) Oracle
b) SQL Server
c) MySQL
d) HTML

Answer:

d) HTML

Exam Tips:

a) HTML is a markup language for web pages and not a database package.

 

Question 21: The smallest unit of stored data in a database is ______. (March 2011)

Answer:

Field

Exam Tips:

a) A field holds a single item, for example a name or a roll number.

 

Question 22: Mini created a relation in which two of the tuples have the same combination of values for all their attributes. Is this allowed? Give reason. (March 2011)

Answer:

No, it is not allowed. A relation is a set of tuples, and a good DBMS does not allow duplication of the same data, that is, data redundancy.
(A relation without a primary key or unique key would not stop such duplicate rows, which is why a key should always be defined.)

Exam Tips:

a) Give a clear Yes/No first and then the reason.
b) Mention that the primary key prevents duplicate tuples.

 

Question 23: What is the importance of the primary key? (March 2011)

Answer:

A primary key is one of the candidate keys. It is a set of one or more attributes that can uniquely identify the tuples of a relation.
Its importance is that every tuple can be identified without confusion and duplicate tuples are prevented.

Exam Tips:

a) Define the primary key and state what it is used for in a single clear sentence.

 

Question 24: Discuss the levels of data abstraction in DBMS. (March 2016)

Answer:

1) Physical level: it is the lowest level. It describes how the data is actually stored in the storage medium. Complex low-level data structures are described in detail at this level.
2) Logical level: it describes what data is 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: it is the highest level of data abstraction. It is concerned with the way in which users view the database and it describes only a part of the database.

Exam Tips:

a) Mention all three levels and say what each one describes.

 

Question 25: In the ACCOUNT relation shown below: (March 2016)

Acc_NumberNameBalanceType
1000Simon1,50,000SB
1001Abey2,00,000SB
1002Jambal1,00,000SB
1003Ram2,50,000SB

a) Identify the primary key and candidate keys.
b) Select all account holders with balance greater than Rs. 2,00,000.

Answer:

a) Primary key: Acc_Number
Candidate keys: Acc_Number, and Name and Balance, because in this instance the values of Name and of Balance are also unique.
b) \(\sigma_{Balance>200000}(ACCOUNT)\)
OR
Select * from Account where Balance>200000;

Exam Tips:

a) The primary key is chosen from the candidate keys; Acc_Number is the best choice since it is always unique.
b) Write the amount without commas inside the condition.

 

Question 26: What are the major advantages of the relational model over other data models? (May 2016)

Answer:

The relational data model has no data redundancy and no complexity.

Exam Tips:

a) Mention both points: no redundancy and no complexity (compare with the hierarchical and network models).

 

Question 27: a) Classify the following operations in relational algebra into unary and binary operations: (1) UNION (2) SELECT (3) SET DIFFERENCE (4) PROJECT
b) Explain SELECT, INTERSECTION and SET DIFFERENCE operations with examples. (May 2016)

Answer:

a)

UnaryBinary
(2) SELECT(1) UNION
(4) PROJECT(3) SET DIFFERENCE

b) SELECT operation: it is used to select the tuples of a relation that satisfy a selection condition. The Greek letter sigma (\(\sigma\)) is used to denote it.
Syntax: \(\sigma_{condition}(relation)\)
Example: \(\sigma_{Salary<100000}(EMPLOYEE)\) selects the tuples whose salary is less than 100000 from the EMPLOYEE relation.
INTERSECTION operation: it returns a relation consisting of all the tuples that appear in both of the specified relations. It is denoted by \(\cap\) and can be applied only to compatible relations.
Example: FOOTBALL \(\cap\) CRICKET returns the players who are in both the football team and the cricket team.
SET DIFFERENCE operation (\(-\)): it returns all the tuples that appear in the first relation but not in the second.
Example: FOOTBALL \(-\) CRICKET returns the players who play football but are not in the cricket team.

Exam Tips:

a) Unary operations work on one relation and binary operations work on two relations.
b) Give the symbol and one example for every operation in part (b).

 

Question 28: a) Discuss the advantages of DBMS.
b) Create a database schema for the relation VEHICLE. (March 2017)

Answer:

a) Advantages of DBMS:

1) Data redundancy is controlled: redundancy means duplication of data, that is, the same data stored in many files, which increases storage and access cost. A DBMS keeps only one copy of the data.
2) Inconsistency can be avoided: if the same data is repeated and one copy is changed but not the others, the copies disagree. When redundancy is removed, inconsistency cannot occur.
3) Data can be shared: if the computers are connected in a network, the data in the database can be shared among several users or programs.
4) Standards can be enforced: data follows standards such as ANSI and ISO. For example, a field Name having a fixed length of 40 characters is a standard. (Similar standards are BIS for gold and ISBN for books.)
5) Security restrictions can be applied: data is valuable, so it must be protected against accidental or intentional disclosure and against unauthorised destruction or modification.
6) Integrity can be maintained: only correct data is entered in the database. For example, a date of birth like 30/30/2001 is rejected by the integrity checks of the DBMS.
7) Efficient data access: a huge amount of data is stored efficiently and can be retrieved whenever it is needed.
8) Crash recovery: when a system crashes, all or part of the data may be lost, and a good DBMS helps to recover the data.

b) The schema of the relation VEHICLE gives its name and attributes: VEHICLE (RegNo, OwnerName, Make, YearOfMfr, Cub_Capacity). A sample of the relation:

RegNoOwner NameMakeYear of MfrCub_Capacity
KL-45-L-100AchuthToyota20152500
KL-45-N-1000RajuHonda20161100

Exam Tips:

a) In the schema write the table name, every column name and (if possible) the primary key, which here is RegNo.
b) Choose suitable data types if asked, for example text for RegNo and numbers for the year and capacity.

 

Question 29: ______ in a table gives the complete data of a particular entity. (May 2017)
a) Tuple
b) Attribute
c) Domain
d) Schema

Answer:

a) Tuple

Exam Tips:

a) A tuple (row) holds the complete data of one entity; an attribute is a column.

 

Assess Questions and Answers

Question 30: Who is responsible for managing and controlling the activities associated with the database?
a) Database administrator
b) Programmer
c) Naive user
d) End user

Answer:

a) Database administrator

Exam Tips:

a) The DBA has central control over the database and the DBMS.

 

Question 31: In the relational model, cardinality is the ______.
a) number of tuples
b) number of attributes
c) number of tables
d) number of constraints

Answer:

a) number of tuples

Exam Tips:

a) Cardinality is the number of rows; degree is the number of columns.

 

Question 32: Cartesian product in relational algebra is ______.
a) a unary operator
b) a binary operator
c) a ternary operator
d) not defined

Answer:

b) a binary operator

Exam Tips:

a) Cartesian product needs two relations, so it is binary.

 

Question 33: Abstraction of the database can be viewed as ______.
a) two levels
b) four levels
c) three levels
d) one level

Answer:

c) three levels

Exam Tips:

a) The three levels are physical, logical and view.

 

Question 34: In a relational model, relations are termed as ______.
a) tuples
b) attributes
c) tables
d) rows

Answer:

c) tables

Exam Tips:

a) A relation is a table; tuples are rows and attributes are columns.

 

Question 35: In the abstraction of a database system the external level is the ______.
a) physical level
b) logical level
c) conceptual level
d) view level

Answer:

d) view level

Exam Tips:

a) External level and view level mean the same.

 

Question 36: Related fields in a database are grouped to form a ______.
a) data file
b) data record
c) menu
d) bank

Answer:

b) data record

Exam Tips:

a) Fields form a record and records form a file.

 

Question 37: A relational database developer refers to a record as ______.
a) criteria
b) relation
c) tuple
d) attribute

Answer:

c) tuple

Exam Tips:

a) A record (row) of a relation is a tuple.

 

Question 38: An advantage of the database management approach is ______.
a) data is dependent on programs
b) data redundancy increases
c) data is integrated and can be accessed by multiple programs
d) none of the above

Answer:

c) data is integrated and can be accessed by multiple programs

Exam Tips:

a) Options (a) and (b) are disadvantages of the file system, not advantages of a DBMS.

 

Question 39: Data independence means
a) data is defined separately and not included in programs
b) programs are not dependent on the physical attributes of data
c) programs are not dependent on the logical attributes of data
d) both (b) and (c)

Answer:

d) both (b) and (c)

Exam Tips:

a) Data independence has two forms, physical and logical.

 

Question 40: The key used to represent the relationship between tables is called ______.
a) primary key
b) candidate key
c) foreign key
d) alternate key

Answer:

c) foreign key

Exam Tips:

a) A foreign key links one table to another.

 

Question 41: Which of the following operations is used if we are interested only in certain columns of a table?
a) Projection
b) Selection
c) Union
d) Select

Answer:

a) Projection

Exam Tips:

a) PROJECT chooses columns; SELECT chooses rows.

 

Question 42: Which of the following operations need the participating relations to be union compatible?
a) UNION
b) INTERSECTION
c) SET DIFFERENCE
d) All of the above

Answer:

d) All of the above

Exam Tips:

a) Union, intersection and set difference all need the two relations to have the same attributes (union compatible).

 

Question 43: Which database level is closest to the users?
a) External
b) Internal
c) Physical
d) Conceptual

Answer:

a) External (view level)

Exam Tips:

a) The view level is the highest level and the one the user sees.

 

Question 44: The result of the UNION operation between R1 and R2 is a relation that includes ______.
a) all the tuples of R1
b) all the tuples of R2
c) all the tuples of R1 and R2
d) all the tuples of R1 and R2 which have common columns

Answer:

c) all the tuples of R1 and R2 (duplicate tuples appear only once)

Exam Tips:

a) Union combines the tuples of both relations and removes duplicates.

 

Question 45: A file manipulation command that extracts some of the records from a file is called ______.
a) Select
b) Project
c) Join
d) Product

Answer:

a) Select

Exam Tips:

a) SELECT picks the rows that satisfy a condition.

 

Question 46: An instance of relational schema R (A, B, C) has distinct values of A including NULL values. Which one of the following is true?
a) A is a candidate key
b) A is not a candidate key
c) A is a primary key
d) Both (a) and (c)

Answer:

a) A is a candidate key

Exam Tips:

a) A primary key cannot contain NULL, so option (c) and therefore option (d) are not correct.

 

Question 47: How many distinct tuples are there in a relation instance with cardinality 22?
a) 22
b) 11
c) 1
d) none

Answer:

a) 22

Exam Tips:

a) A relation is a set, so all its tuples are distinct and the number of tuples equals the cardinality.

 

Question 48: A set of possible data values is called ______.
a) Attribute
b) Degree
c) Tuple
d) Domain

Answer:

d) Domain

Exam Tips:

a) The domain is the pool of values from which an attribute takes its values.

 

Question 49: Why should you choose a database system instead of simply storing data in conventional files?

Answer:

The advantages of a DBMS over conventional files are:

1) Data redundancy is controlled: redundancy means duplication of data, that is, the same data stored in many files, which increases storage and access cost. A DBMS keeps only one copy of the data.
2) Inconsistency can be avoided: if the same data is repeated and one copy is changed but not the others, the copies disagree. When redundancy is removed, inconsistency cannot occur.
3) Data can be shared: if the computers are connected in a network, the data in the database can be shared among several users or programs.
4) Standards can be enforced: data follows standards such as ANSI and ISO. For example, a field Name having a fixed length of 40 characters is a standard. (Similar standards are BIS for gold and ISBN for books.)
5) Security restrictions can be applied: data is valuable, so it must be protected against accidental or intentional disclosure and against unauthorised destruction or modification.
6) Integrity can be maintained: only correct data is entered in the database. For example, a date of birth like 30/30/2001 is rejected by the integrity checks of the DBMS.
7) Efficient data access: a huge amount of data is stored efficiently and can be retrieved whenever it is needed.
8) Crash recovery: when a system crashes, all or part of the data may be lost, and a good DBMS helps to recover the data.

Exam Tips:

a) Write all eight points for a 5 mark question or at least five with explanations.
b) Link each point to the weakness of the file system (for example, redundancy leads to inconsistency).

 

Question 50: Explain the different levels of data abstraction in DBMS.

Answer:

1) Physical level (lowest level): it describes how the data is actually stored in the storage medium.
2) Logical level (next higher level): it describes what data is stored in the database and the relationships among the data.
3) View level (highest level): it is closest to the users and is concerned with the way in which individual users view the data.

Exam Tips:

a) Give the levels in order and mention which one is closest to the user.

 

Question 51: How are schema layers related to the concepts of logical and physical data independence?

Answer:

Data independence is the ability to modify the schema definition at one level without affecting the schema definition at the next higher level.
a) Physical data independence: the ability to modify the physical schema without requiring the application programs to be rewritten.
b) Logical data independence: the ability to modify the logical schema without requiring the application programs to be rewritten.

Exam Tips:

a) Link each type of independence with the schema level that changes (physical or logical).

 

Question 52: Consider the instance of the EMPLOYEE relation shown in the following table. Identify the attributes, degree, cardinality and domain of Name and Emp_Code.

Emp_CodeNameDepartmentDesignationSalary
1000SudheeshPurchaseManager25000
1001DhanyaSalesManager25000
1002FathimaMarketingClerk12000
1003ShajanSalesClerk13000

Answer:

Attributes: the column names, that is, Emp_Code, Name, Department, Designation and Salary.
Degree: the number of columns is the degree. Here the degree is 5.
Cardinality: the number of rows is the cardinality. Here the cardinality is 4.
Domain: the pool of possible values of an attribute.
Domain of Name: character strings (Sudheesh, Dhanya, Fathima, Shajan, etc.)
Domain of Emp_Code: numbers (1000, 1001, 1002, 1003, etc.)

Exam Tips:

a) Remember: degree = number of columns, cardinality = number of rows.
b) Describe a domain as the set of values an attribute may take, not just as a data type.

 

Question 53: Identify the primary key, candidate keys and alternate keys in the instance of the EMPLOYEE relation in Question 23 (Emp_Code, Name, Department, Designation, Salary).

Answer:

Candidate key: a key that can be used to uniquely identify a row. Here Emp_Code is a candidate key, and the combination Emp_Code + Department also identifies the rows uniquely.
Primary key: a set of one or more attributes used to uniquely identify a row. Emp_Code is chosen as the primary key.
Alternate key: a candidate key other than the primary key. Since Emp_Code is the primary key, Emp_Code + Department is the alternate key.

Exam Tips:

a) Define each of the three keys and then name them for the table.
b) Remember that the primary key is chosen from the candidate keys, and the remaining candidate keys are alternate keys.

 

Question 54: Consider the instance of the STUDENT relation shown in the following table. Assume Reg_no as the primary key.

Reg_noNameBatchResultMarks
101SachinSciencePass480
103FathimaHumanitiesFail200
106JosephCommercePass360
108BincySciencePass300

a) Identify the candidate keys and alternate keys in the STUDENT relation.
b) How are the primary key and the candidate key related?

Answer:

a) Reg_no and Reg_no + Batch are the candidate keys. Since Reg_no is set as the primary key, Reg_no + Batch is the alternate key.
b) A candidate key is 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. The primary key is one of the candidate keys, chosen to identify the tuples of the relation uniquely.

Exam Tips:

a) Answer both parts separately and state clearly that the primary key is one of the candidate keys.

 

Question 55: What is a database? Describe the advantages and disadvantages of using a DBMS.

Answer:

A database is an organised collection of a large volume of related data.
Advantages of DBMS:

1) Data redundancy is controlled: redundancy means duplication of data, that is, the same data stored in many files, which increases storage and access cost. A DBMS keeps only one copy of the data.
2) Inconsistency can be avoided: if the same data is repeated and one copy is changed but not the others, the copies disagree. When redundancy is removed, inconsistency cannot occur.
3) Data can be shared: if the computers are connected in a network, the data in the database can be shared among several users or programs.
4) Standards can be enforced: data follows standards such as ANSI and ISO. For example, a field Name having a fixed length of 40 characters is a standard. (Similar standards are BIS for gold and ISBN for books.)
5) Security restrictions can be applied: data is valuable, so it must be protected against accidental or intentional disclosure and against unauthorised destruction or modification.
6) Integrity can be maintained: only correct data is entered in the database. For example, a date of birth like 30/30/2001 is rejected by the integrity checks of the DBMS.
7) Efficient data access: a huge amount of data is stored efficiently and can be retrieved whenever it is needed.
8) Crash recovery: when a system crashes, all or part of the data may be lost, and a good DBMS helps to recover the data.

Disadvantages of DBMS (any of the following):
1) A DBMS needs costly hardware and software.
2) Training is needed to use it, and a skilled database administrator is required.
3) If the database fails or is damaged, many users may be affected at the same time.

Exam Tips:

a) The question asks for both advantages and disadvantages; do not skip the disadvantages.
b) Point out that the single point of failure and the cost are common disadvantages.

 

Question 56: What is data independence? Explain the difference between physical and logical data independence.

Answer:

Data independence is the ability to modify the schema definition at one level without affecting the schema definition at the next higher level.
a) Physical data independence: the ability to modify the physical schema without requiring the application programs to be rewritten.
b) Logical data independence: the ability to modify the logical schema without requiring the application programs to be rewritten.

Exam Tips:

a) The difference lies in which schema is changed: physical schema for physical independence and logical schema for logical independence.

 

Question 57: Enforcement of standards is an essential feature of a DBMS. How are these standards applicable in a database?

Answer:

There are standards such as BIS (Bureau of Indian Standards) in the field of gold and ISBN (International Standard Book Number) in the field of publishing.
Similarly, standards such as ANSI (American National Standards Institute) and ISO (International Organization for Standardization) apply to databases. For example, a field Name having a length of 40 characters is a standard.

Exam Tips:

a) Give at least two examples, one from daily life (BIS or ISBN) and one from databases (ANSI, ISO or the field length).

 

Question 58: 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, then what is the cardinality of \(T1 \cap T2\)? Justify your answer.

Answer:

Cardinality of T1 is 10, so it has 10 rows. Cardinality of T2 is 8, so it has 8 rows.
Normally \(T1 \cup T2\) has 10 + 8 = 18 rows. Here it has 13 rows, which means 5 duplicate rows were eliminated.
So 5 rows are common to both tables, that is, the cardinality of \(T1 \cap T2\) is 5.

Exam Tips:

a) Use the relation |T1 \(\cup\) T2| = |T1| + |T2| - |T1 \(\cap\) T2| and show the substitution.

 

Question 59: The cardinality of table T1 is 10 and of table T2 is 8, and the two relations are union compatible.
a) What will be the maximum possible cardinality of \(T1 \cup T2\)?
b) What will be the minimum possible cardinality of \(T1 \cap T2\)?

Answer:

a) The maximum cardinality of \(T1 \cup T2\) occurs when there are no common tuples. It is then the sum of the cardinalities: 10 + 8 = 18.
b) \(T1 \cap T2\) consists of the common tuples of T1 and T2. If there are no common tuples, the intersection is empty, so the minimum cardinality is 0.

Exam Tips:

a) Maximum union occurs when the two relations have nothing in common, and that same case gives the minimum intersection.

 

Question 60: Consider the relations City (city_name, state) and Hotel (name, address, city_name). Answer the following queries in relational algebra.
a) Find the names and addresses of hotels in Kochi.
b) List the details of cities in Kerala state.
c) List the names of the hotels in Thrissur.
d) Find the names of the different hotels.
e) Find the names of hotels in Kozhikode or Munnar.

Answer:

a) \(\pi_{name,address}(\sigma_{city\_name="Kochi"}(Hotel))\)
b) \(\sigma_{state="Kerala"}(City)\)
c) \(\pi_{name}(\sigma_{city\_name="Thrissur"}(Hotel))\)
d) \(\pi_{name}(Hotel)\)
e) \(\pi_{name}(\sigma_{city\_name="Kozhikode" \lor city\_name="Munnar"}(Hotel))\)

Exam Tips:

a) Use SELECT for conditions on rows and PROJECT for the columns to be shown.
b) Use the OR symbol (\(\lor\)) to combine two conditions in part (e).

 

Question 61: Using the instance of the EMPLOYEE relation shown in Question 23, write the result of the following relational algebra expressions.
a) \(\sigma_{Department="Sales"}(EMPLOYEE)\)
b) \(\sigma_{Salary>20000 \land Department="Sales"}(EMPLOYEE)\)
c) \(\sigma_{Salary>20000 \lor Department="Sales"}(EMPLOYEE)\)
d) \(\pi_{Name,Salary}(EMPLOYEE)\)
e) \(\pi_{Name,Salary}(\sigma_{Designation="Manager"}(EMPLOYEE))\)
f) \(\pi_{Name,Department}(\sigma_{Designation="Clerk" \land Salary>20000}(EMPLOYEE))\)

Answer:

a)

Emp_CodeNameDepartmentDesignationSalary
1001DhanyaSalesManager25000
1003ShajanSalesClerk13000

b)

Emp_CodeNameDepartmentDesignationSalary
1001DhanyaSalesManager25000

c)

Emp_CodeNameDepartmentDesignationSalary
1000SudheeshPurchaseManager25000
1001DhanyaSalesManager25000
1003ShajanSalesClerk13000

d)

NameSalary
Sudheesh25000
Dhanya25000
Fathima12000
Shajan13000

e)

NameSalary
Sudheesh25000
Dhanya25000

f) No rows selected, because no clerk has a salary above 20000.

Exam Tips:

a) Apply the condition to each row of the EMPLOYEE table one by one.
b) AND needs both conditions to be true; OR needs at least one.

 

Question 62: Consider the instance of the BORROWER and DEPOSITOR relations shown in the following figure, which stores the details of customers in a bank. Answer the following queries in relational algebra.
Borrower

Acc_NoNameAmount
AC123Albin50000
AC103Rasheeda25000
AC106Vishnu25000
AC108Aiswarya30000

Depositor
Acc_NoNameAmount
AC123Albin500
AC105Shabana25000
AC116Vishnu125000
AC108Aiswarya3000

a) Display the details of the customers who are either a depositor or a borrower.
b) Display the details of customers who are both a depositor and a borrower.
c) Display the details of the customers who are depositors but not borrowers.
d) Display the name and amount of the customers who are borrowers but not depositors.

Answer:

a) \(\pi_{Acc\_No,Name}(Borrower) \cup \pi_{Acc\_No,Name}(Depositor)\)

Acc_NoName
AC123Albin
AC105Shabana
AC116Vishnu
AC108Aiswarya
AC103Rasheeda
AC106Vishnu

b) \(\pi_{Acc\_No,Name}(Borrower) \cap \pi_{Acc\_No,Name}(Depositor)\)

Acc_NoName
AC123Albin
AC108Aiswarya

c) \(\pi_{Acc\_No,Name}(Depositor) - \pi_{Acc\_No,Name}(Borrower)\)

Acc_NoName
AC105Shabana
AC116Vishnu

d) \(\pi_{Name,Amount}(Borrower \bowtie (\pi_{Acc\_No,Name}(Borrower) - \pi_{Acc\_No,Name}(Depositor)))\)

NameAmount
Rasheeda25000
Vishnu25000

Exam Tips:

a) Union, intersection and difference need union compatible relations, so first project the common attributes (Acc_No and Name).
b) Vishnu appears twice with different account numbers, so Acc_No must be included to separate the two customers.

 

Question 63: Consider the instance of the CUSTOMER and BRANCH relations shown in the following table. Write the Cartesian product of the two relations.
CUSTOMER

Acc_NoNameBranch_IDAmount
AC123AlbinB100150000
AC103RasheedaB100125000
AC106VishnuB100125000

BRANCH
Branch_IDName
B1001Kochi
B1002Guruvayur
B1077Idukki

Answer:

CUSTOMER \(\times\) BRANCH has 3 \(\times\) 3 = 9 tuples and 6 attributes:

Acc_NoNameBranch_IDAmountBranch_IDName
AC123AlbinB100150000B1001Kochi
AC123AlbinB100150000B1002Guruvayur
AC123AlbinB100150000B1077Idukki
AC103RasheedaB100125000B1001Kochi
AC103RasheedaB100125000B1002Guruvayur
AC103RasheedaB100125000B1077Idukki
AC106VishnuB100125000B1001Kochi
AC106VishnuB100125000B1002Guruvayur
AC106VishnuB100125000B1077Idukki

Exam Tips:

a) Pair every tuple of the first relation with every tuple of the second.
b) Check your answer: the number of tuples is the product of the two cardinalities and the degree is the sum of the two degrees.

 

Kerala Board Solutions for Class 12 Computer Science Chapter 08 Database Management System

Official Kerala Board Solutions for Chapter 08 Database Management System

Access structured Kerala Board textbook solutions for Chapter 08 Database Management System. Designed in alignment with the latest academic curriculum for Class 12 Computer Science, these answers cover all end-of-chapter exercises to support daily learning and homework completion.

Step-by-Step Explanations for Chapter 08 Database Management System

Clear, methodical explanations accompany every challenging problem within the Class 12 Computer Science text. Engaging with these detailed answers lays a solid foundation for advanced learning and improves foundational clarity for upcoming assessments.

Next Steps in Your Computer Science Revision

Frequent review of these structured answers builds strong analytical capabilities and response efficiency. Maximize your academic readiness by combining these textbook solutions with our curated study materials and mock evaluations for Class 12 Computer Science.

FAQs

Where can I find the latest Kerala Plus Two Computer Science Previous Questions Chapter 8 Database Management System for the 2026-27 session?

The complete and updated Kerala Plus Two Computer Science Previous Questions Chapter 8 Database Management System is available for free on StudiesToday.com. These solutions for Class 12 Computer Science are as per latest Kerala Board curriculum.

Are the Computer Science Kerala Board solutions for Class 12 updated for the new 50% competency-based exam pattern?

Yes, our experts have revised the Kerala Plus Two Computer Science Previous Questions Chapter 8 Database Management System 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.

How do these Class 12 Kerala Board solutions help in scoring 90% plus marks?

Toppers recommend using Kerala Board language because Kerala Board marking schemes are strictly based on textbook definitions. Our Kerala Plus Two Computer Science Previous Questions Chapter 8 Database Management System will help students to get full marks in the theory paper.

Do you offer Kerala Plus Two Computer Science Previous Questions Chapter 8 Database Management System in multiple languages like Hindi and English?

Yes, we provide bilingual support for Class 12 Computer Science. You can access Kerala Plus Two Computer Science Previous Questions Chapter 8 Database Management System in both English and Hindi medium.

Is it possible to download the Computer Science Kerala Board solutions for Class 12 as a PDF?

Yes, you can download the entire Kerala Plus Two Computer Science Previous Questions Chapter 8 Database Management System in printable PDF format for offline study on any device.