0% found this document useful (0 votes)
3 views

PdfUnit 3DBMS BaseQn Ans

This document provides an overview of Database Management Systems (DBMS) using LibreOffice Base, including multiple choice questions, true/false statements, fill-in-the-blanks, and definitions related to databases. It covers topics such as data types, primary keys, relationships between tables, and advantages of using a DBMS. Additionally, it includes practical examples and exercises to reinforce understanding of database concepts.

Uploaded by

bhadanaantra
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

PdfUnit 3DBMS BaseQn Ans

This document provides an overview of Database Management Systems (DBMS) using LibreOffice Base, including multiple choice questions, true/false statements, fill-in-the-blanks, and definitions related to databases. It covers topics such as data types, primary keys, relationships between tables, and advantages of using a DBMS. Additionally, it includes practical examples and exercises to reinforce understanding of database concepts.

Uploaded by

bhadanaantra
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Unit 3.

Database Management System using


LibreOffice Base

Introduction to Database Management System

A. Multiple choice questions


1. Which of the following cannot be considered as an example of a database?
(a) Dictionary
(b) Telephone directory
(c) Marks Register
(d) Newspaper
2. Which of the following is NOT a DBMS?
(a) MS Access
(b) Open Office Base
(c) MS Excel
(d) MySQL
3. DBMS stands for ______________________.
(a) Data and Books Management System
(b) Database Management System
(c) Duplicate Books Management System
(d) Data Management Multi System
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
5. The details associated with an entity are called ____________.
(a) Table
(b) Attributes
(c) Records
(d) Primary key

6. A __________ is represented as rows in a table.


(a) field
(b) attribute
(c) record
(d) candidate key
7. In which of the following forms can a data value be represented?
(a) Numeric
(b) Character
(c) Alphanumeric
(d) All of the above
8. Which of the following uniquely identifies a row in a table?
(a) Primary key
(b) Alternate key
(c) Foreign key
(d) Candidate key
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
10. A _____________ is a question asked from a database.
(a) query
(b) report
(c) form
(d) field

B. State whether the following statements are True or False


1. A database cannot be organised. F
2. Data is the collection of raw facts. T
3. A table can be created without a primary key. F
4. Two tables can be related in a network data model. F
5. MS Access is an example of a database. F
C. Fill in the blanks
1. The raw facts constitutes _____________.
Data
2. An _____________ is a real world object about which information is to be stored in
a database
Entity
3. The output of a query may be displayed in the form of ________.
Report
4. The data values for all the fields related to a person or object is called a ______
Record
Book_Id Book Name Author Name Price Publisher
F001 Pride and Prejudice Austen 550 ABC
S004 Amazing Astronomy E. Shane 1050 ABC
C005 IT and Mankind MHA Diwaan 2500 HYM
Table: Library
4. Consider the table given above and answer the questions that follow
(a) Name the fields in the given table.
Book_Id, Book Name, Author Name, Price, Publisher
(b) Which field should be made the primary key?
Book_Id
(c) Is there any alternate key in the table? No
(d) How is primary key different from foreign key? Explain with example
A primary key or simply a key is a field that uniquely identifies a row in a table.
The key identifier can be the value of a single column or of multiple columns.
Foreign Key – If a field or a combination of fields of one table can be used to
uniquely identify records of another table, then that particular field is known as the
foreign key.
Teacher Table
T_ID Name Salary Designation
101 abc 20000 Techer
102 pqr 25000 HM
103 Wrst 20000 TGT

Department Table
T_ID D_ID Department
101 D101 Science
102 D103 GK
103 D105 PE
In Teacher table T_ID is primary key while in Department table T_ID will act as
foreign key
5. All the field values that are eligible to be the primary key are the ___________ keys
for that table
Candidate
D. Answer the following questions
1. Define the terms
(a) 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.
(b) 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.
(c) Report
The output of a query may be displayed in the form of reports. The usual result of the
query is in the form of rows and columns. But if we want the report to be formal and
in proper layout, then we can use the Reports feature of RDBMS.
2. Give one point of difference between
(a) Data and Information,
The raw facts constitutes data.
Information is the processed or organized form of data.
(b) Form and Query,
A form is a feature of a database using which we can enter data in a table in an easy
and user friendly manner.
A query is used to retrieve the desired information from the database.
(c) Network and hierarchical data model
Network data Model : multiple records are linked to same master file. It is also
considered as an inverted tree where master is present in the bottom of the tree and
the branches contain information linked to the master.
hierarchical data model : the data is organized into a tree like structure. The data is
stored in the form of records. A record is a collection of fields and its data values. All
these records are linked to each other at various levels, thereby forming a hierarchy.
3. Give any four advantages of a DBMS.
Organised 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.
Starting with LibreOffice Base
A. Multiple choice questions
1. Which of the following is NOT a type of text data type?
(a) Memo
(b) Varchar
(c) Float
(d) Char
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
4. Which of the following is true about LibreOffice Base?
(a) It is a 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
7. Which is the shortcut key to open an existing database?
(a) Ctrl+ D
(b) Ctrl+O
(c) Ctrl+E
(d) Ctrl+F
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
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
10. Which of the following is true about primary key of a table?
(a) Every table must have a primary key
(b) The data values in primary key field cannot be duplicated.
(c) A primary key field cannot be left blank
(d) All of the above
B. State whether the following statements are True or False
1. The text data can contain special characters. T
2. Memo data type can be used to store descriptive data. T
3. A Boolean data type can have two or more than two values. F
4. We cannot store audio data in LibreOffice Base .F
5. The properties of a field change according to the data type selected. T
6. Field description may or may not be entered while designing a table. T
7. A table once created in a database cannot be edited. F
8. Sort dialog box can only help to sort data in ascending order. F
C. Fill in the blanks
1. A data type refers to the type of data that will be stored in that particular field.
Data type
2. The _____________ data is a combination of letters, numbers or special
characters.
Text
3. ________ data type can be used to store Aadhar number.
Text
4. The __________ data type used to store digitized images.
Binary
5. The shortcut key to save a table is _______________.
Ctrl+S
6. ______________ on the Base Interface Window displays information about the type
of view of the object in the database.
Tasks Pane
7. A __________ icon appears before the field name indicating that it is a primary key.
Key
8. The data can be entered in a table only in __________ view.
Datasheet
9. The black pointing arrow just before the field name in a table is called _______
Record pointer
10. The process of arranging the records in particular order on any filed is called __
Sorting
D. Answer the given questions
1. Differentiate between:
(a) Memo and Varchar data type
Memo : Stores up to the maximum length indicated by user. It is used to store some
descriptive data having more than 255 characters.
Varchar : Stores upto the specified length. The number of bytes allocated depends
on the number of characters entered by the user. For example, the address is
defined as varchar (50), and if the address entered by the user is of 20 characters
then only 20 bytes will be occupied in the database.
(b) Number and Decimal data type
Numeric data types : consists of numbers. The numbers can be integer or real
numbers on which any type of arithmetic calculations can be performed.
Decimal data type : Only decimal numbers can be represented.
(c) Design View and Datasheet view of a table
Design View : This view is used to design the structure of the table. In this view,
fields can be add or delete.
Datasheet view : This view is used to enter the values to the tables. In this view,
records can be add or delete.
2. Name the menu items present on the Base User Interface,
File, Edit , insert, view, Tools, Window , Help
4. How can we define a primary key in a table?
A primary key or simply a key is a field that uniquely identifies a row in a table.
The key identifier can be the value of a single column or of multiple columns. The
primary key is a unique identifier for the table.
5. Write steps to sort the table in descending order of primary key.
From the tool bar click Sort Ascending icon if the table has to be sorted in ascending
order of selected field. Alternatively select Sort Descending icon if the table has to
be sorted in descending order of selected field.
6. What is the use of navigation box with respect to tables in a database?
To navigate through various records of the table, we use the navigation box present
at the bottom of the datasheet window.
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
2. Which of the following is checked by a 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
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
Item_Code Category_Code
Item_Name Cat_Name
Price Item_Code
Qty Cat_Disc
Category_Code
7. Which of the following menus contains the Relationship option?
(a) Edit
(b) File
(c) Tools
(d) View
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)
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
B. State whether the following statements are True or False
1. Redundancy is preferred in a database. F
2. In a table, a record for a particular entity should not be repeated. T
3. A single field should always have only one data value. F
4. If a table is edited, the records already entered in it are deleted. F
5. The record in master table should be entered before the corresponding record is
entered in the transaction table. T
6. In one-to-many relationship, one specific record of the master table has more than
one corresponding records in the related transaction table. T
7. The Relationship option is present in the Widows menu. F
8. In a database, the referential integrity is maintained by the user. F
9. A relationship is always set between the tables based on a common field. T
10. If the master record is deleted, the transaction records will always be deleted. F
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 that there must be a ________________between them.
Common field
3. In ________________relationship, one specific record of a master table has one
and only 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.
Relationship Design Window
D. Answer the following questions
1. Give any two advantages of relating a table in a database.
•Creating relationships between tables restricts the user from entering invalid data in
the referenced fields.
• 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.
Redundancy and 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 tables then adding or updating a record in one of the table
reflect the changes in all the related tables.
3. Define referential integrity. Who maintains referential integrity in a database?
According to the principle of referential integrity, no unmatched foreign key values
should exist in the database. Once the relationship between the two tables has been
set, the integrity of data will be managed by the DBMS. LibreOffice Base will allow
only that corresponding record to be entered in the transaction table which already
exists in the master table.
4. Differentiate between one to one relationship and one to many relationship. Give
suitable examples to explain your answer.
One to one relationship : One specific record of a master table has one and only one
corresponding record in the transaction table.
One to many relationship : As the name says, in this type of relationship, one specific
record of the master table has more than one corresponding records in the related
transaction table.
5. Explain many to many relationship with an example.
Many to many relationship : there will be multiple records in the master table that
correspond to multiple records in the transaction table as well.
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
2. Which of the following are the ways to design a query?
(a) Wizard
(b) Design View
(c) SQL
(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)
4. Into how many parts is the query design window divided?
(a) One
(b) Two
(c) Three
(d) Four
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
6. Which of the following is the shortcut key to run the query?
(a) F3
(b) F4
(c) F5
(d) F6
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
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
B. State whether the following statements are True or False
1. You can run a query only once F
2. A query cannot be created from multiple tables F
3. The shortcut key to run a query is F5. T
4. LibreOffice Base provides us with two ways to create a query. F
5. A query with numerical data cannot be saved. F
6. By default the query result is not sorted. T
7. A query can be used to display the average value of a numerical field. T
8. While designing a query, the criterion can be set on only one field. F
9. Alias is an alternative name for a field in a query. T
10. In query Design window, the visible check box is selected by default. T
11. A query once created using a wizard can only be edited in the Design view. T
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?
A query is used to retrieve and display data from one or more tables in a database.
This is done by giving specific search criteria to the DBMS so that we
are able to view the exact information that we want. Using a query, we can specify
the fields that we want to display and also the criterion based on which the records to
be filtered.
2. Rearrange the steps given below so as to create a query using a wizard.
3. Give Alias
4. Select the fields
5. Set the criterion
6. Set the sorting order
7. Give table name
Give table name>> Select the fields>> Set the sorting order>>Set the criterion>>
Give Alias
8. What all information is seen in the overview (last step) of the Query wizard?
Name of the Query , Complete detail of the query
9. What is the use of Alias row In the Design grid of the Query Design window?
The column header name will be displayed when we run the query. By default
the field names will be displayed as column headers. Many times field names are not
user friendly, so an alias name which is more readable, is chosen to be displayed in
the query output.
10. Name any four mathematical functions that can be applied to numerical data in a
query.
Mathematical functions to find the count, sum, minimum, maximum or average of
data values.
11. Name the three ways of creating a query in LibreOffice Base?
a. Creating a query using wizard
b. Creating a query using design iew
c. Creating a query using SQL
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
2. The Record toolbar has the buttons to move to the
(a) first record
(b) second record
(c) last record
(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
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
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)
B. State whether the following statements are True or False
1. Report is an object of a database but form is not. F
2. We can choose the layout of the form. T
3. We have to add all fields of the table on the form .F
4. There are two ways n which a form can be created. T
5. A report is generated in a separate window. T
6. Once a control is added on to the form, it cannot be repositioned. F
7. The Record toolbar has the button to add a new record. T
8. We can create a report only using a table. F
9. By default, the records in a report are sorted in descending order. F
10. We can group data based on a particular field in a report. T
11. A report can have data only in row and column format. F
12. We can insert both date and time of generation of report. T
13. A report once created cannot be edited. F
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.
A form is an object of the database that has a user friendly interface where data can
be entered and seen in an attractive and easy-to-read format.
A report is used to present the retrieved data in an attractive and customized
manner. We can create a report based on a table or a query or both.
2. What is a field control with respect to forms?
A form contains field controls arranged in a presentable and user friendly manner.
Each field control consists of a label and the field value text box.
3. Which tool on the Forms Record toolbar is used to insert text on the form?
Text box.
4. Name the two ways to create a form in LibreOffice Base.
To create a form,,
a. Using Wizard
b. Using design view
5. What is the difference between a static and a dynamic report?
Dynamic report : By default the type of report is Dynamic. That means as the field
values in the base table or query change, the report will also change automatically.
Static Report : If you don’t want automatic updation of the report, choose the Static
option. In this step, specify whether you would like to modify the report or create the
report once the wizard finishes
6. Write the function of Forms Controls toolbar and Records toolbar.
The forms control toolbar : contains various tools to add or edit controls on the form.
Report Controls toolbar. :Various controls can be inserted using the Report Controls
toolbar.

You might also like