|

Database Management System Questions and Answers – Class 10 IT (402)

Want to score high marks in your CBSE exam? Don’t miss these Most Important Database Management System Questions and Answers for Class 10!

As per the latest CBSE syllabus of Class 10 IT, the Database Management System chapter carries 12 marks, making it one of the most important chapters for your exam preparation. This specially selected question set has been prepared after a thorough analysis of previous years’ CBSE question papers and question patterns.

Practice these important DBMS questions with answers, strengthen your concepts, and prepare confidently to score maximum marks in your exam. Don’t leave these 12 marks behind! 🚀

SECTION A: SHORT ANSWER QUESTIONS (1-2 marks each)

Q1. What is a DBMS? Name two examples.

Answer: A DBMS (Database Management System) is software used to create, update and retrieve data. Examples: MS Access and LibreOffice Base (Oracle and MySQL are also correct).

Q2. Explain the term Data Redundancy.

Answer: Data redundancy refers to the unnecessary duplication or repetition of the same data field across multiple tables in a database.

Q3. How does a DBMS ensure Data Consistency?

Answer: By minimizing data redundancy and setting relationships between tables, a DBMS ensures that any change made to a record in one table is automatically reflected in all related tables, preventing mismatched or inconsistent data values.

Q4. Define the terms entity and attribute in context of RDBMS.

Answer:
Entity: An entity is a real-world object about which information is stored in a database, for example an Item.
Attribute: Attributes are the details associated with the entity, such as item code and rate. They are represented as columns.

Q5. Differentiate between a field and a record.

Answer: A field is the smallest entity in a database. It is an individual characteristic shown as a column. A record is the set of data values of all fields for one person or object, shown as a row.

Q6. What is a primary key?

Answer: A primary key is a field that uniquely identifies a row in a table. No two rows can have the same value in it, and it cannot be left blank.

Q7. What is a foreign key?

Answer: A foreign key is a field of one table that can uniquely identify records of another table. It is used to build a relation between the two tables.

Q8. What is a Composite Key? Give an example.

Answer: A composite key is a primary key formed by combining more than one field to uniquely identify a record in a table. For example, combining Roll Number and Student Name to uniquely identify a student record.

Q9. Differentiate between a Candidate Key and an Alternate Key.

Answer: All fields in a table that are eligible to serve as a primary key (having unique, non-null values) are called Candidate Keys. Out of these candidate keys, the ones not chosen as the primary key are called Alternate Keys.

Q10. State the use of the Memo data type.

Answer: The Memo (LONGVARCHAR) data type stores descriptive text of more than 255 characters, up to 64,000 characters.

Q11. Differentiate between CHAR and VARCHAR data types in LibreOffice Base.

Answer:
CHAR (Text fix) stores a fixed number of characters as specified by the user, occupying the exact allocated space regardless of input length.
VARCHAR (Text) stores variable-length text up to a specified limit and allocates memory bytes strictly according to the actual number of characters entered.

Q12. State the most important prerequisite for setting a relationship between two tables.

Answer: There must be a common field between the two tables, and its data type must be the same in both.

Q13. What is a Form in LibreOffice Base? What are the two components of a field control?

Answer: A Form is a user-friendly front-end database object used to enter, view, and modify table data in an attractive layout. Each field control on a form consists of a Label and a Field Value Text Box.

Q14. What is a Tool-tip (Help Text) in a Form and how is it helpful?

Answer: A tool-tip (help text) is a small piece of text displayed when the mouse pointer is placed on a control, guiding the user on what data to enter into that field.

Q15. Differentiate between a Static Report and a Dynamic Report.

Answer:
A Dynamic Report automatically updates its displayed data whenever the values in the underlying base table or query change.
A Static Report retains the data from the time it was created and does not update automatically when source data changes.

Q16. What is Sorting in a database table? Name the two ways to sort data.

Answer: Sorting is the process of arranging records in a table in a particular order based on one or more fields. Data can be sorted in Ascending order or Descending order.

Q17. Define followings: (a) Query (b) Report

Answer:
(a) Query: A query is a database object used to retrieve, filter, sort, or modify specific data from one or more tables based on given conditions.
(b) Report: A report is a database object used to present data in a well-organised and formatted manner. It is mainly used to view, summarise, and print information from a database.

SECTION B: LONG ANSWER QUESTIONS (3-5 marks each)

Q18. Explain any three advantages of using a DBMS.

Answer:

  1. Data Sharing: A single database created once can be shared simultaneously across multiple applications.
  2. Minimal Data Redundancy: It prevents unnecessary repetition of the same data across multiple tables.
  3. Data Consistency & Security: Updating data in one place reflects across related tables, while password protection and encryption prevent unauthorized access.

Q19. Explain the relational database model.

Answer: The relational database model was proposed in 1970 by E. F. Codd. It is the most common database model. Data is stored in different tables made up of rows and columns. The tables are related through common fields, and so the model is called relational.

Q20. Explain the following RDBMS key concepts with suitable examples:
(a) Primary Key (b) Foreign Key (c) Candidate Key (d) Alternate Key

Answer:

(a) Primary Key: A field or combination of fields that uniquely identifies every row in a table and cannot be null or duplicated. Example: Student_ID in a Student Details table.

(b) Foreign Key: A field in one table that refers to the primary key of another table to establish a link between them. Example: Department_ID in an Employee table, referring to Department_ID in a Department table.

(c) Candidate Key: All attributes in a table that qualify to become a primary key because they hold unique, non-blank values. Example: Aadhaar_Number and Employee_ID in an Employee table.

(d) Alternate Key: Those candidate keys that are not selected as the primary key. Example: If Employee_ID is chosen as the primary key, Aadhaar_Number becomes the alternate key.

Q21. Explain the currency, date, boolean and binary data types.

Answer:

  • Currency stores monetary values in the currencies of various countries, for example $100 or Rs. 25.50.
  • Date stores the year, month and day. Time stores hour, minute and second. Timestamp stores both date and time.
  • Boolean stores only two values, such as True/False, Yes/No or On/Off.
  • Binary stores digitised images and sounds as strings of zeros and ones.

Q22. Explain how a table is created in Design View?

Answer:

  1. Click Create Table in Design View in the Tasks Pane.
  2. Type the field name and press Tab.
  3. Select the data type from the Field Type list box.
  4. Set the field properties and, if needed, add a description.
  5. Repeat this for all fields.
  6. Save using Ctrl+S or File > Save As, enter the table name and click OK.

Q23. Explain the three types of relationships that can be established between tables in an RDBMS with examples.

Answer:

The three types of table relationships are:

  1. One-to-One Relationship: One specific record in the master table corresponds to only one record in the transaction table. Example: One person in a Person_Details table having one unique passport record in a Passport_Details table.
  2. One-to-Many Relationship: One specific record in the master table links to multiple records in the transaction table. Example: One customer in a Customer_Details table placing multiple orders in an Order_Details table.
  3. Many-to-Many Relationship: Multiple records in the master table correspond to multiple records in the transaction table. Example: Multiple students enrolling in multiple courses, where each student can join several courses and each course can have several students.

Q24. Define referential integrity with an example.

Answer: Referential Integrity is a rule that ensures every foreign key value in a table matches an existing primary key value in the related table. It prevents invalid or unmatched records.

Example: If Admission_No 1001 is deleted from the Student_Details table, the related record with Admission_No 1001 in the Student_Result table should also be deleted or handled according to the specified rule.

Q25. List any three advantages of relating tables in a database.

Answer:

Three major advantages of relating tables are:

  1. Prevents Data Redundancy: Eliminates the need to repeat identical data across multiple tables.
  2. Maintains Referential Integrity: Prevents missing or orphaned records by keeping deletions synchronized across related tables.
  3. Restricts Invalid Data Entry: Prevents users from entering values in a foreign key field that do not exist in the master table’s primary key.

Q26. Write the steps to create a relationship between the Events and EventCategory tables.

Answer:

  1. Click Tools > Relationships.
  2. In the Add Tables dialog box, add the Events table, then add the EventCategory table.
  3. Click Close.
  4. Drag the common field CategoryID from the Events table and drop it on the EventCategory table.
  5. A line joining the two tables appears.

Q27. Explain the four Referential Integrity options provided by LibreOffice Base in the Relations dialog box.

Answer:

Double-clicking the relationship line opens the Relations dialog box, offering four options to maintain referential integrity:

  • No Action (Default): Prevents the user from updating or deleting a master table record if matching records exist in the transaction table.
  • Update Cascade: Allows updating or deleting the referenced master record and automatically updates or deletes all corresponding records in the transaction table.
  • Set NULL: Assigns a NULL (blank) value to the foreign key fields in all related transaction records if the master record is updated or deleted.
  • Set Default: Assigns a predefined default value to the related foreign key fields in the transaction table when the master record is modified or removed.

SECTION C: CASE-BASED QUESTIONS (5 marks)

Case 1: EMPLOYEES Table

Consider the table EMPLOYEES given below and answer the questions that follow:

EIDNameDOJDepartmentSalary
1101Aarav2018-04-12Sales₹45000.00
2045Meera2016-09-30HR₹38000.00
3067Rohan2019-01-15IT₹52000.50
1523Kavya2020-07-22Sales₹41000.00
4012Imran2017-11-05IT₹58000.00
2890Sneha2021-03-18HR₹36000.75

EID – Employee Identification, DOJ – Date of Joining

(a) Identify and name the candidate keys from the above table.

Answer: EID and Name are the candidate keys because both contain unique values for every record in the given table. However, in practice, employee names may not always be unique.

(b) Identify and write the attribute which is best suitable to be declared as a primary key.

Answer: EID is best suited to be the primary key because it uniquely identifies each employee and does not contain NULL or duplicate values.

(c) Suggest an appropriate data type for the field “Salary”. Justify your answer.

Answer: DECIMAL(10,2) is the most suitable data type for Salary because it stores exact numeric values with two digits after the decimal point. For example, 52000.50.

(d) Explain in short – DATE datatype.

Answer: DATE datatype is used to store calendar dates in the YYYY-MM-DD format. For example, 2018-04-12. It is commonly used for fields like Date of Joining and Date of Birth.

Case Study 2: Online Bookstore Database

An online bookstore maintains records of its books in a table named Books, which has columns: BookID (Primary Key), Title, Genre (Fiction, Science, History), Language, Stock and Price. It also stores order details in another table named Orders, which has columns: OrderNo (Primary Key), BookID, Price, CustName and CustEmail. Based on the above information, answer the following questions:

(a) Name any two columns of the Books table where duplicate values are allowed.

Answer: Title and Genre. Duplicate values are allowed because these columns are not primary keys. Multiple books can have the same title or genre.

(b) Assume that the table Books already contains a book having BookID as B001. Can we enter a new record with BookID as B001? Justify.

Answer: No. BookID is the primary key, and a primary key cannot contain duplicate values. Therefore, another record with BookID B001 cannot be inserted.

(c) Is it possible to store the cover images of the books in a new column of the Books table? If yes, suggest a suitable data type to store images.

Answer: Yes. We can add a new column named CoverImage to store book cover images. The suitable data type is BLOB (Binary Large Object), which is used to store binary data such as images.

(d) Briefly explain the principle of referential integrity with respect to the tables Books and Orders.

Answer: Here, BookID in the Orders table is a foreign key referring to BookID in the Books table. Therefore, an order can be placed only for a book that already exists in the Books table. A book with existing orders cannot be deleted unless the related records are handled appropriately.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *