Unit 3_DBMS_Notes
Unit 3_DBMS_Notes
NOTES
Chapter 8. Introduction to Database Management System
• Multiple choice questions
4. Which of the following data models sets a relation between the two or more tables?
(a) Relational Data Model
(b) Network Data Model
(c) Hierarchical Data Model
(d) Connection Data Model
9. A ___________is a feature of a database using which we can enter data in a table in an easy and user
friendly manner.
(a) query
(b) report
(c) form
(d) field
Data Security:
A DBMS provides multiple layers of security by restricting access to authorized users through
authentication and role-based permissions. Sensitive information like salaries or medical records is
protected, ensuring that only individuals with appropriate rights can view or modify it.
4. Consider the table given below and answer the questions that follow
Table: Library
Book_Id Book Name Author Name Price Publisher
F001 Pride and Prejudice Jane Austen 550 ABC
S004 Amazing Astronomy E. Shane 1050 ABC
C005 IT and Mankind MHA Diwaan 2500 HYM
Foreign Key:
A foreign key is a field in one table that refers to the primary key in another table to establish a
relationship between the two tables.
Example: If another table named Borrowers contains a field Book_Id, it will act as a foreign key linking
it to the primary key (Book_Id) in the Library table, ensuring referential integrity.
ANSWERS
A. Multiple choice questions 1. (d) 2. (c) 3. (b) 4. (a) 5. (b) 6. (d) 7. (d) 8. (a) 9. (c) 10. (a)
1. A data type refers to the type of data that will be stored in that particular field.
2. The _____________ data is a combination of letters, numbers or special characters.
3. ________ data type can be used to store Aadhar number.
4. The __________ data type used to store digitized images.
5. The shortcut key to save a table is _______________.
6. ______________ on the Base Interface Window displays information about the type of view of the
object in the database.
7. A __________ icon appears before the field name indicating that it is a primary key.
8. The data can be entered in a table only in __________ view.
9. The black pointing arrow just before the field name in a table is called ____________.
10. The process of arranging the records in particular order on any filed is called _______________.
1. Differentiate between:
(a) Memo and Varchar data type
(b) Number and Decimal data type
(c) Design View and Datasheet view of a table
Ans.
Memo Varchar
The Memo data type is used to store The Varchar data type is used to store
long text, such as detailed variable-length strings or text, typically for
descriptions, comments, or notes. shorter data like names and addresses.
It can store text up to a certain limit, usually
It can store up to 65,536 characters,
255 characters, depending on the system
depending on the database system.
configuration.
It is ideal for fields that require large It is suitable for fields that contain concise
text storage, such as product information, such as first names, last names,
descriptions or feedback. or city names.
Due to its large size, it may perform Varchar fields perform better since they
slower, especially during indexing store smaller text, making them more
operations. efficient for searches and indexing.
Number Decimal
Used for storing exact numeric values with
Used to store integers or numeric
decimals, ideal for financial or precise
values without fractions.
calculations.
Provides high precision, suitable for
Offers less precision and is not
monetary values, percentages, or scientific
suitable for storing fractional values.
measurements.
Takes up less storage space,
Requires more storage space to maintain
depending on the type (e.g., Integer,
precise decimal points.
Long).
Commonly used for counting items or
Preferred for fields requiring precision, such
storing whole numbers, such as age or
as prices or tax rates.
quantity.
2. Name the menu items present on the Base User Interface
Ans. The following menu items are available in the LibreOffice Base interface:
3. Label the components – Title Bar, Database Pane, Tasks Pane, Status Bar of the LibreOffice Base User
Interface.
Ans. Below are the main components of the LibreOffice Base interface:
• Title Bar: Located at the top, it displays the name of the open database and the LibreOffice Base
application title.
• Database Pane: Found on the left side, it contains options for Tables, Queries, Forms, and
Reports, helping navigate between different database objects.
• Tasks Pane: Situated to the right of the Database Pane, it offers actions like creating or editing
tables, queries, forms, and reports.
• Status Bar: Located at the bottom, it displays the status of the current database, including the
mode and any active tasks.
1. Which of the following actions can be performed once the tables are created in a database?
(a) Add a field in a table
(b) Rename a table
(c) Delete a table
(d) All of the above
3. Which of the following is required to set a relationship between the two tables?
(a) Both the tables must be in different databases
(b) Both the tables must have a common field
(c) Both the tables must have the same name
(d) Both tables must be stored in documents folder only.
4. If a record is added in a master table, which of the following is NOT true for transaction table
(a) The record in the master table is called the master record
(b) The corresponding record in transaction table can only be entered once.
(c) The record in the transaction table is called the transaction record.
(d) It is possible to add a record in the master table
5. Which type of relationship exists between a student and the subjects studied by him/her?
(a) One-to-one
(b) One-to-many
(c) Many-to-many
(d) All of the above
6. Consider the following tables. Which type of relationship can be established between the two tables?
(a) One-to-one
(b) One-to-many
(c) Many-to-many
(d) None of the above
9. In the relationship design screen, the relationship between the two tables is done using __________
operation.
(a) Click
(b) Double Click
(c) Drag and Drop
(d) Right click
10. Which of the following is NOT an option that can be used to maintain referential integrity in a
database?
(a) No Action
(b) Set NULL
(c) Set Default
(d) Set Value
4. Differentiate between one to one relationship and one to many relationship. Give suitable examples
to explain your answer.
Ans.
• One-to-One Relationship: Each record in Table A relates to one and only one record in Table
B, and vice versa.
Example: A Person table and a Passport table. Each person has one unique passport, and
each passport belongs to one person.
• One-to-Many Relationship: One record in Table A can relate to multiple records in Table B, but
each record in Table B relates to only one record in Table A.
Example: A Customer table and an Orders table. A customer can place multiple orders, but
each order is associated with only one customer.
ANSWERS
1. (d) 2. (c) 3. (b) 4. (b) 5. (b) 6. (b) 7. (c) 8. (a) 9. (c) 10. (d)
1. False 2. True 3. False 4. False 5. True 6. True 7. False 8. False 9. True 10. False
1. Design
2. common field
3. one-to-one
4. one-to-many
5. transaction, master
6. referential integrity
7. relationship
8. DBMS
9. Many-to-many
10. 10.
Chapter 11. Queries in Base
• Multiple choice questions
8. In a Query Design wizard, which of the following buttons is clicked to move a field from ‘Available
fields’ list box to ‘Fields in the query‘ list box?
(a) >
(b) < 9
(c) ∨
(d) ∧
9. Which of the following relational operators can be applied to set the criterion while designing a query
in LibreOffice
Base?
(a) >
(b) =
(c) !=
(d) Add Form
10. Which of the following dialog box is present when the Query Design window is opened for the first
time to design a query?
(a) Add Table
(b) Add Query
(c) Add Table or Query
(d) None of the above
11. Which of the following step is not performed if there is no numerical data to be worked upon in a
query?
(a) Selection of fields
(b) Giving Aliases
(c) Summarizing
(d) Selection of tables
8. What all information is seen in the overview (last step) of the Query wizard?
Ans. In the overview step, you can review the following:
• Selected fields
• Applied sorting order
• Criteria for filtering records
• Alias names (if any)
• The query structure before running it.
9. What is the use of Alias row in the Design grid of the Query Design window?
Ans.
The Alias row is used to provide alternate names for columns in the query output. This is useful for
improving readability or when column names are too long or technical.
10. Name any four mathematical functions that can be applied to numerical data in a query.
Ans.
• SUM(): Adds up values in a column.
• AVG(): Calculates the average of values.
• MIN(): Returns the smallest value.
• MAX(): Returns the largest value.
11. Name the three ways of creating a query in LibreOffice Base?
Ans.
• Using Query Wizard
• Using Design View
• Using SQL View
ANSWERS
1. (c) 4. (b) 7. (d) 10. (c) 2. (d) 5. (d) 8. (a) 11. (c) 3. (b) 6. (c) 9. (d)
1. False 2. False 3. True 4. False 5. False 6. True 7. True 8. False 10. True 11. True
1. Query
2. Report
3. Three
4. two
5. F5
6. Criterion
7. Available fields
8. ascending, descending
9. three
10. Overview
11. Design
12. Query
13. Alias
Chapter 12. Forms and Reports
4. Which of the following keys is pressed to select only textbox on the form?
(a) Alt
(b) Shift
(c) Ctrl
(d) Tab
5. Which of the following properties in the Properties: Label Field text box is used to insert a tool-tip on the
form?
(a) Tool Text
(b) Help Text
(c) Tool Tip
(d) Help Tip
6. Which of the following objects of LibreOffice Base is used to display data retrieved from one or more tables
in a presentable manner?
(a) Query
(b) Form
(c) Report
(d) Panel
7. Which of the following values of Date Format property is selected to view a calendar on the form?
(a) Standard (short)
(b) Standard (long)
(c) Default
(d) Standard (Medium)
8. Which of the following commands on the Forms Control toolbar is used to toggle between Design View and
Form view?
(a) Design Mode
(b) Toggle Mode
(c) View Mode
(d) Print mode
10. Which of the following components open along with the Report Wizard?
(a) Report Builder
(b) Add Fields dialog box
(c) Both (a) and (b)
(d) Neither (a) nor (b)
3. Which tool on the Forms Record toolbar is used to insert text on the form?
Ans.
The Label Field tool is used to insert static text on the form, such as titles, descriptions, or instructions.
• Static Report: Displays data as it was at the time of report generation. It does not change unless
manually updated.
• Dynamic Report: Automatically updates to reflect any changes in the underlying database data
whenever it is opened or refreshed.
ANSWERS
1. (b) 6. (c) 2. (d) 7. (b) 3. (b) 8. (a) 4. (c) 9. (c) 5. (b) 10. (c)
3. label
4. 3D
5. tool tip
6. landscape
7. Layout
8. Insert
9. Six
10. dynamic