0% found this document useful (0 votes)
25 views18 pages

Part 2 Textbook Exercise-Unit 3 Database Management System Using LibreOffice Base

The document covers the basics of database management using LibreOffice Base, focusing on working with multiple tables, queries, forms, and reports. It includes multiple-choice questions, true/false statements, fill-in-the-blank exercises, and short answer questions to reinforce understanding of key concepts such as relationships between tables, query design, and report generation. Additionally, it emphasizes the importance of referential integrity and data integrity in database management.

Uploaded by

ishaaqmaryamnoor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views18 pages

Part 2 Textbook Exercise-Unit 3 Database Management System Using LibreOffice Base

The document covers the basics of database management using LibreOffice Base, focusing on working with multiple tables, queries, forms, and reports. It includes multiple-choice questions, true/false statements, fill-in-the-blank exercises, and short answer questions to reinforce understanding of key concepts such as relationships between tables, query design, and report generation. Additionally, it emphasizes the importance of referential integrity and data integrity in database management.

Uploaded by

ishaaqmaryamnoor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Unit 3.

Database Management System using LibreOffice Base


Chapter 10 Working with Multiple Tables
A. Multiple choice questions
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
Answer:(d) All of the above
2. Which of the following is checked by a DBMS?
(a) Redundancy
(b) Inconsistency
(c) Both (a) and (b)
(d) Neither (a) nor (b)
Answer:(c) Both (a) and (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.
Answer: (b) Both the tables must have a common field
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
Answer: (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
Answer:(b) One-to-many
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

Answer: (b) One-to-many


7. Which of the following menus contains the Relationship option?
(a) Edit
(b) File
(c) Tools
(d) View
Answer:(c) Tools
8. The list of tables to be added is displayed in the Relationship Screen. dialog box in the
(a) Add Tables
(b) Add Databases
(c) Both (a) and (b)
(a) Neither (a) nor (b)
Answer:(a) Add Tables
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
Answer:(c) Drag and Drop
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
Answer:(d) Set Value
B. State whether the following statements are True or False
1. Redundancy is preferred in a database. [False]
2. In a table, a record for a particular entity should not be repeated. [True]
3. A single field should always have only one data value. [False]
4. If a table is edited, the records already entered in it are deleted. [False]
5. The record in master table should be entered before the corresponding record is entered in the
transaction table. [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. [True]
7. The Relationship option is present in the Widows menu. [False]
8. In a database, the referential integrity is maintained by the user. [False]
9. A relationship is always set between the tables based on a common field. [True]
10. If the master record is deleted, the transaction records will always be deleted. [False
C. Fill in the blanks
1. A table to be edited is displayed in __________ view.
Design
2. The most important prerequisite for setting a relationship between the two tables is th there
must be a __________ between them.
common field
3. In __________ relationship, one specific record of a master table has one and one
corresponding record in the transaction table.
one-to-one
4. __________ is one of the most common types of relationship between the tables in a database.
one-to-many
5. A record being entered in a __________table must always exist in a __________ table.
transaction, master
6. The principle of __________ helps prevent missing data by keeping deleted data from getting
out of synch.
referential integrity
7. Creating __________between tables restricts the user from entering invalid data in the
referenced fields.
relationship
8. Data integrity is maintained by __________.
DBMS
9. A relationship between customers and products is an example of __________ relationship.
Many-to-many
10. The __________ window is used to set relationships between the tables.
relations window
D. Answer the following questions
1. Give any two advantages of relating a table in a database.
Ans: 1. A relationship can help prevent data redundancy.
2. Creating relationships between tables restricts the user from entering invalid data in the
referenced fields.
3. Any updation in the master table is automatically reflected in the transaction tables.
2. How is redundancy or inconsistency controlled in a database? Explain with an example.
Ans. Redundancy or inconsistency is controlled in a database by setting the relationship
between tables which help in checking that neither the records are duplicated nor there is
variable data value for a particular field in two or more tables. After creating relationship
between table, then adding or updating a record in one table reflect the changes in all the
related tables.
3. Define referential integrity. Who maintains referential integrity in a database?
Ans. Referential integrity refers to the relationship between tables. Referential integrity is
used to maintain accuracy and consistency of data in a relationship. LibreOffice Base will
allow only that corresponding record to be entered in the transaction table which already
exists in the master table.
DBMS maintains referential integrity in a database.
4. Differentiate between one to one relationship and one to many relationship. Give suitable
examples to explain your answer.
Ans: One-to-One relationship: In this type of relationship, one specific record
of a master table has one and only one corresponding record in the transaction table.

One-to-Many relationship: In this type of relationship, one specific record of the master table
has more than one corresponding records in the related transaction table. For example
5. Explain many to many relationship with an example.
Ans. Many-to-Many relationship: In this type of relationship, there will be multiple records in
the master table that correspond to multiple records in the transaction table as well.
For example, a teacher in a school may hold multiple responsibilities such as class teacher, an
activity incharge
or examination in-charge. For each responsibility the teacher might be attached with multiple
students.
Chapter 11 Queries in Base
A. Multiple choice questions
1. Which of the following is refer to asking questions from the database?
(a) Report
(b) Table
(c) Query
(d) Database
Answer: (c) Query
2. Which of the following are the ways to design a query?
(a) Wizard
(b) Design View
(c) SQL
(d) All of the above
Answer:(d) All of the above
3. Which is a flexible way to create a query?
(a) Wizard
(b) Design View
(c) Both (a) and (b)
(d) Neither (a) nor (b)
Answer: (b) Design View
4. Into how many parts is the query design window divided?
(a) One
(b) Two
(c) Three
(d) Four
Answer: (b) Two
5. Which of the following is NOT true about queries?
(a) It can be created using multiple tables
(b) Multiple queries can be created in a database
(c) A query can run multiple times
(d) A query once created cannot be edited
Answer:(d) A query once created cannot be edited
6. Which of the following is the shortcut key to run the query?
(a) F3
(b) F4
(c) F5
(d) F6
Answer:(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
Answer:(d) All of the above
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) V
(d) A
Answer:(a) >
9. Which of the following relational operators can be applied to set the criterion whi designing a
query in LibreOffice Base?
(a) >
(b) =
(c) !=
(d) Add Form
Answer:(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
Answer:(c) Add Table or Query
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
Answer:(c) Add Table or Query
B. State whether the following statements are True or False
1. You can run a query only once. [False]
2. A query cannot be created from multiple tables. [False]
3. The shortcut key to run a query is F5.[True]
4. LibreOffice Base provides us with two ways to create a query. [False]
5. A query with numerical data cannot be saved. [False]
6. By default the query result is not sorted. [True]
7. A query can be used to display the average value of a numerical field. [True]
8. While designing a query, the criterion can be set on only one field. [False]
9. Alias is an alternative name for a field in a query. [False]
10. In query Design window, the visible check box is selected by default. [True]
11. A query once created using a wizard can only be edited in the Design view. [True]
C. Fill in the blanks
1. A __________ is a sort of question asked from a database.
Query
2. The result of the query is displayed in __________ form with field names in columns
Report
3. A query can be created in __________ ways.
Three
4. The Query Design window is divided into __________ sections.
two
5. The shortcut key to run the query is __________.
F5
6. The conditions to filter the records are set in the __________ row.
Criterion
7. When a table is selected in a Query wizard, the corresponding fields are displayed in the
__________ list box.
Available fields
8. The result of the query can be displayed in __________or __________order of any particular
field of the table.
ascending, descending
9. At the most search __________ conditions can be given in the query wizard.
three
10. The last step of the Query wizard displays the entire __________ of the query.
Overview
11. The view __________ is a more flexible method to create a query.
Design
12. To edit any query, right click on the icon of the query that has to be edited.
Query
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.
Alias
D. Answer the given questions
1. Define a query? What is the need of creating a query in a database?
Ans. A query is used to collect specific information from the pool of data. A query helps us to
join information from different tables and filter that information.
Queries are required to retrieve the desired data easily and accurately from database.
2. Rearrange the steps given below so as to create a query using a wizard.
Give Alias
Select the fields
Set the criterion
Set the sorting order
Give table name
Ans.
1. Give table name
2. Select the fields
3. Set the sorting order
4. Set the criterion
5. Give Alias
3. What all information is seen in the overview (last step) of the Query wizard?
Ans. Last Step of Query Wizard includes the following (Query Wizard Overview)
Name of the Query - By default, the name of the query is Query_Table1.
The action to be performed after the wizard finishes - By default Display Query option will be
selected. Click and select the Modify Query radio button if the query has to be edited in the
Design view. ke
Complete detail of the query - This section contains a summary about the query that has been
created.
4. What is the use of Alias row in the Design grid of the Query Design window?
Ans. Some times field names are not user friendly so Alias can be used to display meaningful
names of the fields in the output.
5. Name any four mathematical functions that can be applied to numerical data in a query.
Ans. Four mathematical functions that can be applied to numerical data in a query are:
1. Sum
2. Average
3. Minimum
4. Maximum
6. Name the three ways of creating a query in LibreOffice Base?
Answer:
Three ways of creating a query in LibreOffice are
1. design view
2. use wizard
3. SQL view
Chapter 12 Forms and Reports
A. Multiple choice questions
1. Which of the following toolbars contains the Label tool?
(a) Standard Toolbar
(b) Forms Controls Toolbar
(c) Records toolbar
(d) Formatting toolbar
Answer: (b) Forms Controls Toolbar
2. The Record toolbar has the buttons to move to the
(a) first record
(b) second record
(c) last record
(d) all records
Answer:(d) all records
3. Which of the following is NOT true about forms?
(a) It is the front end for data entry
(b) It can contain only text fields
(c) Graphics can be inserted on the form
(d) It can contain only fixed number of records
Answer: (b) It can contain only text fields
4. Which of the following keys is pressed to select only textbox on the form?
(a) Alt
(b) Shift
(c) Ctrl
(d) Tab
Answer:(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
Answer:(b) Help Text
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
Answer:(c) Report
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)
Answer:(b) Standard (long)
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
Answer:(a) Design 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
Answer:(c) Both a and 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)
Answer:(c) Both (a) and (b)
B. State whether the following statements are True or False.
1. Report is an object of a database but form is not. [False]
2. We can choose the layout of the form. [True]
3. We have to add all fields of the table on the form. [False]
4. There are two ways n which a form can be created. [True]
5. A report is generated in a separate window. [True]
6. Once a control is added on to the form, it cannot be repositioned. [False]
7. The Record toolbar has the button to add a new record. [True]
8. We can create a report only using a table. [False]
9. By default, the records in a report are sorted in descending order. [False]
10. We can group data based on a particular field in a report. [True]
11. A report can have data only in row and column format. [False]
12. We can insert both date and time of generation of report. [True]
13. A report once created cannot be edited. [False]
C. Fill in the blanks.
1. A form can be used for ___________ and ___________.
Enter, view data
2. Each field control consists of a ___________ and ___________.
label, field value
3. A ___________ is a piece of text that specifies the data that should be entered in the field
value text box.
Label
4. By default the border of the field text value is displayed in ___________.
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.
tool tip
6. The default orientation option for a report is ___________.
landscape
7. A ___________ is the manner in which the labels, field values, titles etc. will be displayed in
the report.
Layout
8. The option to insert date and time in the report is present in ___________ menu.
Insert
9. A Report Wizard contains ___________ steps.
Six
10. A ___________ type of report changes automatically as the field values in the base table or
query change.
Dynamic
D. Answer the following questions
1. Give one difference between a form and a report.
Ans.
Form
A form provides an interface that allows users to enter, change and view the data in a table.
Report
Reports are used to present data in a format that can be printed.
2. What is a field control with respect to forms?
Ans. A field control consists of a label and the field value text box. 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 box
4. Name the two ways to create a form in LibreOffice Base.
Ans. Two ways to create a form in LibreOffice Base are:
1. Using a wizard
2. Using the Design View
5. What is the difference between a static and a dynamic report?
Ans. Difference between a static and a dynamic report are:

6. Write the function of Forms Controls toolbar and Records toolbar.


Ans. Form Control Toolbar: This toolbar contains various controls that can be added to the
form. for example Label, Text field, Radio button etc.
Record Toolbar: The Records toolbar contains the navigation control buttons. With the help of
these buttons we can move from one record to another record.

You might also like