Unit-3 DBMS
Unit-3 DBMS
LibreOffice Base
(c) MS Excel
(d) MySQL
[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
Ans. (c) Form
(a) Query – To fetch records from table
(b) report – Represent data from tables in summarized manner
(d) field – Represents a column of a table
Ans.: False
A database can be organized in efficient manner.
Ans.: True
Ans.: True
Ans.: False
Two tables can be related in a relational data model.
Ans.: False
MS Access is an example of DBMS.
[2] An ________________ is a real world object about which information is to be stored in a database.
Ans.: entity
Ans.: report
[4] The data values for all the fields related to a person or object is called a _____________.
Ans.: report
[5] All the field values that are eligible to be the primary key are the __________ keys for that table
Ans.: candidate
Ans.:
1. Database: A database is a collection of logically related data items stored in an organised manner. The information
being stored in a database can be added, modified, deleted or displayed according to the requirements of the user.
2. Data Redundancy: The same data field repeated in different table is known as data redundancy.
3. Report: The output of query stored formal and proper layout is called report. A report represents the query output
in printed form or summarized manner.
Ans.:
Data Information
Raw facts are known as data Process data or meaningful data is known as information
Only roll numbers, marks, names are data Report cards along with appropriate data are information
1, ‘Madhav’, 98.5 Rollno – 1, Name – ‘Madhav’, Percentage – 98.5
Form Query
A form is a way to supply data in an easy and user friendly Query is used to retrieve information from database
manner. table
A form is used to display and input A query is a question asked from database
Multiple records are linked to same master file Data is organized into tree like structure
Master is present at the bottom of the tree and branches It forms a hierarchy and all the records are linked
contains information linked to master each other at various levels
Ans.:
Organized Storage – The data in the database is stored in an organised manner, so that retrieval of the required data
is fast and accurate.
Data Analysis – A database helps in analysis of data based on certain criteria. It is easy to find out maximum or
minimum value, average or mean using a database.
Data Sharing – If the same data set is required for different applications then the database can be shared with other
applications. Hence using a database means making once and using it repeatedly for multiple applications.
Minimal Data Redundancy – In the event of requiring the same data field in several tables the data field might get
repeated in number of tables. This is called as data redundancy. This can be reduced by using DBMS tools.
Data Consistency – By minimizing data redundancy, chances of inconsistent data being stored is reduced. For
example, it should not happen that the name of the student is changed in one table and not in another. Such
inconsistency is reduced by using a DBMS.
[3] Consider the table given below and answer the questions that follow:
Table: Library
Ans.:
(c) As far as this table data Book_Name, and Author can be an alternate key
(d) Primary key identifies unique records from relation. The value entered in the filed of primary cannot be
repeated. A foreign key is a value taken from primary key of another table. It can be repeated in the column.
That’s all from NCERT solutions Information Technology Chapter 8 Introduction to Database Management System. I
hope it is helpful for you. If you have any specific concerns, feel free to share your valuable feedback for this
article.
[2] A currency data type can only store monetary data that is in dollars.
(a) True
(b) False
(c) Neither a nor b
(d) Both a and b
[3] Which of the following data can a date data type store?
(a) Date
(b) Time
(c) Both date and time
(d) Neither date nor time
spreadsheet software
(b) It is free and open source software
(c) It can store only character data
(d) It is a licensed software.
[5] Which of the following methods can be used to create a table in Base?
(a) Using a table wizard
(b) Design View
(c) Both a and b
(d) Neither a nor b
[6] The related objects of a database can be seen in _____________ pane of the Base Database window.
(a) Database
(b) Task
(c) Title Bar
(d) Menu Bar
[8] The Design view of Table Creation window in LibreOffice Base is divided into _______ sections or panes.
(a) 2
(b) 3
(c) 4
(d) 5
Ans. (a) 2
[9] While entering records in a table, we can move to the next field by pressing the ________ key.
(a) Tab
(b) Ctrl
(c) Enter
(d) Shift
Now lets discuss type B questions. Type consists of questions of True or False. Lets disucss!
Ans. True
Ans. True
[3] A Boolean data type can have two or more than two values.
Ans. False
Ans. False
[5] The properties of a field change according to the data type selected.
Ans. False
[6] Field description may or may not be entered while designing a table.
Ans. True
Ans. False
[8]
Ans. True
Ans. False
[10] Sort dialog box can only help to sort data in ascending order.
Ans. False
In the next section I am going to discuss Type C questions which are Fill in the blanks questions.
[1] A data type refers to the type of data that will be stored in ___________ that particular field.
Ans. Datatype
The question is not proper.
Ans. Text
[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.
Ans. Key
Ans.: Datasheet
[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 _____________.
Ans.: Sorting
Memo Varchar
Number Decimal
It allows higher numbers and can store more digits than
It can store number as exactly as precise it can defined.
specified
If user has specified Numeric(6,2) that means 6 total If user has specified Decimal(6,2) that means 1-6 total
digitals with 2 decimal places. No more or no less digits digitals with 2 decimal places. Means it can store 11.56
before or after decimals. but not 11.005.
It shows only field names and data types of fields of the It shows all the records of tables entered by user along
table but no records. with fields title.
It allows to create or change the table structure only. It allows to change information entered in the table.
Row does not represent any record. As much fields are Each row represents a record in the datasheet view. If
available in the table that much rows are displayed in five records are entered in the table, it displays five
design view. rows.
[2] Name the menu items present on the Base User Interface.
Answer:
1. File – New, Open, Recent Documents, Close, Wizards, Save, Save As, Save All, Check out, Cancel Check out,
Check in, Export, Send and Exit
LibreOffice
Edit – Undo, Cut, Copy, Paste, Paste Special, Select All, Open Database Object, Edit, Delete, Rename, Create as
View, Edit in SQL view, Form Wizard, Report, Report Wizard, Database – Properties, Connection Type, Advanced
Settings
View – Tables, Queries, Forms, Reports, Toolbars, Status Bar, Sort Ascending, Sort Descending, Refresh Tables,
Preview
Insert – Form, Report, Report Wizard, Query (Design View), Query (SQL View), Table Design, View Design, View
Simple, Folder
7. Help – LibreOffice Help, What’s This?, User Guides, Show Tip of the Day, Get Help Online, Send Feedback,
Restart in Safe Mode, Get Involved, Donate to LibreOffce, License Information, Check for Updates, About
LibreOffice
[2] Label the components – Title Bar, Database Pane, Tasks Pane, Status Bar of the LibreOffice Base User Interface.
Answer:
[3] How can we define a primary key in a table?
Answer:
1. To make a particular field as the primary key, place the mouse pointer before the field name, say Event Id in
our above example and right click.
2. A pop up menu appears. Select the Primary Key option from pop up menu.
3. A key icon appears before the field name indicating that it is a primary key. Click on the key icon.
[4] Write steps to sort the table in descending order of primary key.
Answer:
To sort the table in descending order of primary key follow these steps:
3. Click on Data > Sort Descending option or Sort Descending icon from toolbar.
[5] What is the use of navigation box with respect to tables in a database?
Answer:
The navigation box is present at the bottom of datasheet view. It allows to navigate through various records in a
database table. It indicates the current record of a table at any time. It has following components:
• Record Selector Box – It is a text box where the currently active record number is displayed. User may enter
the record number to see in this text box.
database?
(a) Add a field in a table
(b) Rename a table
(c) Delete a table
(d) All of the above
DBMS?
(a) Redundancy
(b) Inconsistency
(c) Both (a) and (b)
(d) Neither (a) nor (b)
[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
Ans.: (b) The corresponding record in transaction table can only be entered once.
[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
Table 1: Item
Item_Code
Item_Name
Price
Qty
Category_Code
Table 2: Item_Category
Category_Code
Cat_Name
Item_Code
Cat_Disc
”Answer”
[8] The list of tables to be added is displayed in the ____________ dialog box in the Relationship Screen.
(a) Add Tables
(b) Add Databases
(c) Both (a) and (b)
(a) Neither (a) nor (b)
”Answer”
[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
Ans.:False
No redundancy can be avoided in database.
Ans.: True
[3] A single field should always have only one data value.
Ans.: False
A single filed should always have more than one values.
[4] If a table is edited, the records already entered in it are deleted.
Ans.: False
No when table is edited, the records remains as it was.
[5] The record in master table should be entered before the corresponding record is entered in the transaction
table.
Ans.: True
[6] In one-to-many relationship, one specific record of the master table has more than one corresponding
records in the related transaction table.
Ans.: True
Ans.: False
The Relationship option is present in the Tools menu.
Ans.: False
The Relationship option is present in the Tools menu.
[19] A relationship is always set between the tables based on a common field.
Ans.: True
[20] If the master record is deleted, the transaction records will always be deleted.
Ans.: False
No if master record is deleted then it is not necessary that transaction records also deleted.
C. Fill in the blanks
[1]A table to be edited is displayed in _____________ view.
Ans.: Design
[2] The most important prerequisite for setting a relationship between the two tables is that there must be a
________________between them.
[3] In ________________relationship, one specific record of a master table has one and only one
corresponding record in the transaction table.
Ans.: one-to-one
[4] ___________________is one of the most common types of relationship between the tables in a
database.
Ans.: one-to-many
[5] A record being entered in a ________________ table must always exist in a table.
[6] The principle of _______________helps prevent missing data by keeping deleted data from getting out
of synch.
[7] Creating ________________ between tables restricts the user from entering invalid data in the
referenced fields.
Ans.: relationship
Ans.: DBMS
[10] The ______ window is used to set relationships between the tables.
Ans.:
1. Data Redundancy
2. Data Inconsistency
Ans.:
Redundancy: Data redundancy refers to reducing the repeated data field in several tables. It can be controlled by
using primary key or unique key constraints.
Inconsistency: When data redundancy is applied into table it should not happen that the same data changed in one
table should not in another.
Ans.:
Referential Integrity refers to establish a relationship between two tables which can help in data redundancy and
prevent missing data by keeping deleted data from getting out of synch. The referential integrity is maintained by
Primary key and Foreign Key.
[4] Differentiate between one to one relationship and one to many relationship. Give suitable examples
to explain your answer.
Answer:
Ans.:
Many to many relationship the multiple records are related with a master table that correspond to multiple records
in the transaction table.
For example – A company store has tables such as Supplier, Product and Customer where all tables are related with
product id and different ids of supplier as well as customer.
[1] Which of the following is refer to asking questions from the database?
(a) Report
(b) Table
(c) Query
(d) Database
Ans.:(c) Query
(a) Reports display the query results in summarized manner
(b) Table is container to store data in tabular form
(d) Database is systematics way to store data in different objects
[4] Into how many parts is the query design window divided?
(a) One
(b) Two
(c) Three
(d) Four
[6] Which of the following is the shortcut key to run the query?
(a) F3
(b) F4
(c) F5
(d) F6
Ans.: (c) F5
[7] Which of the following functions can be performed on numerical data while designing a query?
(a) Sum
(b) Minimum
(c) Maximum
(d) All of the above
[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) All of the above
[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
Now lets discuss True or False statements from NCERT Solutions Chapter 11 Queries in Base.
Ans.: False
[2] A query cannot be created from multiple tables
Ans.: False
Ans.: True
Ans.: False
Ans.: False
Ans.: True
[7] A query can be used to display the average value of a numerical field.
Ans.: True
[8] While designing a query, the criterion can be set on only one field.
Ans.: False
Ans.: True
[10] In query Design window, the visible check box is selected by default.
Ans.: True
[11] A query once created using a wizard can only be edited in the Design view.
Ans.: True
Lets see Fill in the blanks now for NCERT Solutions Chapter 11 Queries in Base. Here we go!
Ans.: query
[2] The result of the query is displayed in _____________ form with field names in columns
Ans.: report
Ans.: Two
1 Add Table or Query
2 Query Specification
Ans.: F5
[6] The conditions to filter the records are set in the ____________ row.
Ans.: criterion
[7] When a table is selected in a Query wizard, the corresponding fields are displayed in the __________________
list box.
[8] The result of the query can be displayed in ____________ or _______________ order of any particular field of the
table.
Ans.: ascending, descending
[9] At the most _____________ search conditions can be given in the query wizard.
[10] The last step of the Query wizard displays the entire ____________ of the query.
Ans.: overview
Ans.: design
[12] To edit any query, right click on the _____________ icon of the query that has to be edited.
[13] In the _____________ row of the Query Design grid, we can type the column heading that will be displayed
instead of field name when we run the query.
Ans.: alias
Now lets start descriptive questions and answers from NCERT Solutions Chapter 11 Queries in Base. Here we go!
Ans.: A query is a SQL command used to retrieve, manipulate, or manage data in a database. It acts as a tool for users
to interact with the database and access the required information. It is also a general question asked to database to
fetch records from table(s).
Need of query:
1. Data Retrieval
2. Data Manipulation
3. Filtering data
4. Aggregation or Analysis
5. Data Integrity or Consistency
[2] Rearrange the steps given below so as to create a query using a wizard.
1. Give Alias
2. Select the fields
Answer:
4. Give Alias
[3] What all information is seen in the overview (last step) of the Query wizard?
[4] What is the use of Alias row in the Design grid of the Query Design window?
Ans.: The alias row in design grid of the query design window shows the alias names for fields selected in the query.
Sometime user don’t want to display the same field name as specified in the table. So other names can be given
using alias row.
[5] Name any four mathematical functions that can be applied to numerical data in a query.
Ans.: The mathematical functions that can be applied to numerical data in query are as follows:
1. sum()
2. max()
3. min()
4. avg()
5. count()
[4] Which of the following keys is pressed to select only textbox on the form?
(a) Alt
(b) Shift
(c) Ctrl
(d) Tab
Ans.:(c) Ctrl
[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
Ans.:(b) Help Text
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
[9] Using which of the following objects in a database, can a report be generated?
(a) Tables
(b) Queries
(c) Both a and b
(d) Neither a nor b
[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)
Ans.:(c) Both (a) and (b)
Ans.: False
Report and Form both are an object of a databse.
Ans.: True
Ans.: False
Not necessarily, we can add the fields on form as per requirements.
Ans.: True
Ans.: True
Ans.: False
A control added on to the form can be repositioned any time.
[7] The Record toolbar has the button to add a new record.
Ans.: True
Ans.: False
A report can be created using a query.
Ans.: False
Records in the report are not sorted by default.
Ans.: True
[11] A report can have data only in row and column format.
Ans.: False
A report can have data in any format as per user’s customization.
Ans.: True
Ans.: False
A report once created can be edited anytime.
[3] A __________ is a piece of text that specifies the data that should be entered in the field value text box.
Ans.: label
[4] By default the border of the field text value is displayed in ___________.
Ans.: 3D
[5] A __ is a small piece of text that is displayed when the mouse pointer is placed on a particular control
on the form.
Ans.: tooltip
report is ___________,
Ans.: landscape
[7] A ______________ is the manner in which the labels, field values, titles etc. will be displayed in the
report.
Ans.:layout
[8] The option to insert date and time in the report is present in _______________ menu.
Ans.: insert
[10] A _______________ type of report changes automatically as the field values in the base table or query
change.
Ans.: dynamic
Answer:
Form Report
Form is used to enter and view data. Report is used to display data in formatted manner.
Forms can have a single record each. Report can have multiple records on each page.
Forms mostly used for soft copy only display and data entry. Reports are mostly used for hard copy (printed)
Ans.: A field control in form represents a label and field text to represent a record on form. A label is a piece of text
that specifies the data that should be entered in the field value text box. A field value text box is linked to the
respective field in the table.
[3] Which tool on the Forms Record toolbar is used to insert text on the form?
Ans.: Text Field tool on the Forms Record toolbar is used to insert text on the form.
Answer:
Display the same data from when they are created. Updates automatically as data changes in the source.
They are text centric and no interactive features. They allows users to interact with data and identify the insights.
Used for daily, monthly or weekly reporting Used for data analysis such as financial analysis, sales funnel etc.
[6] Write the function of Forms Controls toolbar and Records toolbar.
Answer:
The Form Controls toolbar or sub-menu contains The Records toolbar contains the navigation control buttons
tools that you need to create an interactive form. You in the extreme left. With the help of these buttons, we can
can use the toolbar or sub-menu to add controls to a traverse and view the records in the file. As we move from
form in a text, drawing, spreadsheet, presentation, or one record to another, the record number in the record text
HTML document, for example a button that runs a boxes changes. It also contains command buttons such as
macro. add a new record, save a record, delete a record etc.