Part 2 Textbook Exercise-Unit 3 Database Management System Using LibreOffice Base
Part 2 Textbook Exercise-Unit 3 Database Management System Using LibreOffice Base
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: