0% found this document useful (0 votes)
369 views16 pages

Dbms Grade 10

Uploaded by

nisha.kawale
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)
369 views16 pages

Dbms Grade 10

Uploaded by

nisha.kawale
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/ 16

Unit-3.

Database Management System


Ch.8-Introduction to Database Management System

A. Multiple choice questions


1. Which of the following can 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. False
2. Data is the collection of raw facts.True
3. A table can be created without a primary key.False
4. Two tables can be related in a network data model.False
5. MS Access is an example of a database.True

C. Fill in the blanks


1. The raw facts constitutes _____Data________.
2. An _____Entity________ is a real world object about which information is to be stored in a
database
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_____.
5. All the field values that are eligible to be the primary key are the _____Candidate______ keys for
that table.

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
(b) Data redundancy : Data redundancy is when multiple copies of the same information are stored
in more than one place at a time.
(c) Report : The report helps us to present the retrieved data in a user friendly, understandable and
formatted manner.

2. Give one point of difference between


(a) Data and Information,
Data Information
The raw facts constitute data. Information is the processed or organised form
of data.

(b) Form and Query,


Forms Query
Form is the user-friendly data entry screen that A query is used to retrieve the desired
allows to entry the data in the table easily by any information from the database on some criteria.
user.

(c) Network and hierarchical data model


Network Data Model Hierarchical Data Model
In Network Data Model, multiple records are In Hierarchical Data Model, the data is organised
linked to same master file into a tree like structure. The data is stored in
the form of linked record.

3. Give any four advantages of a DBMS.


Ans- • 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.
4. Consider the table given below and answer the questions that follow

(a) Name the fields in the given table.


Ans- Book_Id, Book Nme, Author Name, Price and Publisher
(b) Which field should be made the primary key?
Ans- Book_Id
(c) Is there any alternate key in the table?
Ans- Book Name field can be an Alternate key in the given table.
(d) How is primary key different from foreign key? Explain with example.
Primary key Foreign key
Primary key is used to identify the record in a A foreign key establishes a relationship between
table uniquely tables by referencing the primary key of another
table.
The field designated as Primary key must It can contain duplicate values.
contain Unique Values
It cannot contain NULL values. It can contain Null Values.
A table can have only one Primary Key A table can have more than one Foreign Key.

Ch.9-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. True
2. Memo data type can be used to store descriptive data. True
3. A Boolean data type can have two or more than two values. True
4. We cannot store audio data in LibreOffice Base. True
5. The properties of a field change according to the data type selected. True
6. Field description may or may not be entered while
designing a table. True

7. is pressed to move to the last record. False


8. appears when the record is being edited. True
9. A table once created in a database cannot be edited. False
10. Sort dialog box can only help to sort data in ascending order. False

C. Fill in the blanks


1. A data type refers to the type of data that will be stored in
that particular field.
2. The _Alphanumeric data is a combination of letters, numbers or special characters.
3. numeric data type can be used to store Aadhar number.
4. The Boolean data type used to store digitized images.
5. The shortcut key to save a table is Ctrl+S
6. Task Pane on the Base Interface Window displays information about the type of view of
the object in the database.
7. A Key icon appears before the field name indicating that it is a primary key.
8. The data can be entered in a table only in Data view.
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 Varchar
Memo is used to store some descriptive data It is used for relatively short entries
It can store more than 255 characters. Memo Varchar stores upto the specified
data type allows to store text data upto length.Number of byes allotted depends on
64,000 characters. the number of characters entered by the user

(b) Number and Decimal data type


Number Decimal
Number data type is used to store integers or Decimal data type includes decimal
whole numbers. places,making it ideal for financial
calculations or any calculation requiring
precision.

(c) Design View and Datasheet view of a table


Design view Datasheet view
The design view allows you to view and The Datasheet view is used to enter the data
modify the structure of your table and to set into the table.
the fied properties

2. Name the menu items present on the Base User Interface.


Ans- File
 Edit
 View
 Insert
 Tools
 Windows
 Help

3. How can we define a primary key in a table?


Ans- every table must have a primary key that uniquely identifies a record in the table. 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. A pop up menu appears. Select the
Primary Key option from pop up menu A key icon appears before the field name indicating
that it is a primary key.

4. Write steps to sort the table in descending order of primary key.


Ans- Step 1. Open the Event table in datasheet view and select the field on which you want
to sort.
Step 2. From the tool bar click Sort Ascending icon if the table has to be sorted in
ascending order of selected field.
Step 3. The table will be sorted in the ascending order

5. What is the use of navigation box with respect to tables in


a database?
Ans- The navigation box is used to navigate through various records of the table. Navigation
box is present at the bottom of the datasheet window.

Ch.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

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

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. 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 Design view.
2. The most important prerequisite for setting a relationship between the two tables is that there
must be a common field between them.
3. In One-To-One_relationship, one specific record of a master table has one and only one
corresponding record in the transaction table.
4. One-To-Many is one of the most common types of relationship between the tables in a database.
5. A record being entered in a Transaction table must always exist in a Master table.
6. The principle of _Referential Integrity helps prevent missing data by keeping deleted data from
getting out of synch.
7. Creating _Relationship between tables restricts the user from entering invalid data in the
referenced fields.
8. Data integrity is maintained by DBMS.
9. A relationship between customers and products is an example of Many-to-Many relationship.
10. The Relationship window is used to set relationships
between the tables.

D. Answer the following questions


1. Give any two advantages of relating a table in a database.
Ans- a) A relationship can help prevent data redundancy.
b) Creating relationships between tables restricts the user from entering invalid data in the
referenced fields.

c)Any updation in the master table is automatically reflected in the transaction tables.
Ans- Relations are set up between the tables to control data redundancy and inconsistency. This
helps in proper maintenance of a database by checking that neither the record are duplicated nor
there is variable data value for a particular field in two or more tables.If you set up relation between
tables,then adding or updating a record in one table reflect the changes in all the tables.

2. How is redundancy or inconsistency controlled in a database? Explain with an example.


Ans- Relations are set up between the tables to control data redundancy and inconsistency.This
helps in proper maintenance of a database by checking that neither the records nor there is variable
data value for a particular field in two or more tables. If you set up relations between tables, then
adding or updating a record in one table reflects the changes in all the related tables.

3. Define referential integrity. Who maintains referential integrity in a database?


Ans- Referential Integrity is used to maintain accuracy and consistency of data in a
relationship.According to the principal of referential integrity, no unmatched foreign key values
should exist in the database.
The referential integrity in a database is maintained by DBMS.

4. Differentiate between one to one relationship and one to many relationship. Give suitable
examples to explain your answer.
Ans-
One-to-One One-to-Many
In this type of relationship, one specific record of in this type of relationship, one specific record of
a master table has one and only one the master table has more than one
corresponding record in the transaction table. corresponding records in the related transaction
For example, the record for Admission_No in the table.
master table (Student_Detail) will have only one For example, one teacher can teach multiple
corresponding record of same value of students or multiple classes, or one person can
Admission No in the transaction table of sell multiple products. So we can say that there
Student_ Result. is a one to may relationship between a teacher
and class or teacher and student or seller and
products

5. Explain many to many relationship with an example.


Ans-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. So this type of relationship will be many to many relationship.

Ch.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

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) All of these

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 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. True
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 Query is a sort of question asked from a database.


2. The result of the query is displayed in Reports form with field names in columns
3. A query can be created in Three ways.
4. The Query Design window is divided into Two sections.
5. The shortcut key to run the query is F5
6. The conditions to filter the records are set in the Criterion row.
7. When a table is selected in a Query wizard, the corresponding fields are displayed in the
Aviailable fields list box.
8. The result of the query can be displayed in Ascending or Descending order of any particular field
of the table.
9. At the most Three search conditions can be given in the query wizard.
10. The last step of the Query wizard displays the entire Overview of the query.
11. The Design view is a more flexible method to create a query.
12. To edit any query, right click on the Query icon of the query that has to be edited.
13. In the Alias 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.

D. Answer the given questions


1. Define a query? What is the need of creating a query in a database?
Ans- Query is used to retrieve the data from the database as per your requirement by providing the
desired specifications. Depending upon given specification, the desired record are searched from the
database and then displayed in the desired manner.

2. Rearrange the steps given below so as to create a query using a wizard.


a. Give Alias
b. Select the fields
c. Set the criterion
d. Set the sorting order
e. Give table name

Ans- a. Give table name


b. Select the fields
c. Set the sorting order
d. Set the criterion
e. Give Alias

8. What all information is seen in the overview (last step) of the Query wizard?
Ans- The last step of the Query wizard displays the entire overview of the query
It includes the following:
• Name of the Query – By default, the name of the query is Query_Events by default. If desired, type
the new name in the text box.
• 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.
• Complete detail of the query – This section contains a summary about the query that has been
created.

9. What is the use of Alias row in the Design grid of the Query Design window?
Ans-Alias row is used to display meaningful names in the output. An Alias is an alternative name for
a field in a query.

10. Name any four mathematical functions that can be applied to numerical data in a query.
Ans- Count
Sum
Minimum
Maximum
Average
11. Name the three ways of creating a query in LibreOffice Base?
Ans- A query can be created in three ways.
(i) Using a Wizard
(ii) In Design View
(iii) In SQL view

Ch.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

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. 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 Enter and View data.
2. Each field control consists of a label and Field values.
3. A label is a piece of text that specifies the data that should be entered in the field value
text box.
4. By default the border of the field text value is displayed in 3D.
5. A tool tip is a small piece of text that is displayed when the mouse pointer is placed on a
particular control on the form.
6. The default orientation option for a report is landscape.
7. A Layout is the manner in which the labels, field values, titles etc. will be displayed in the
report.
8. The option to insert date and time in the report is present in Insert menu.
9. A Report Wizard contains Six steps.
10. A dynamic type of report changes automatically as the field values in the base table or
query change.

D. Answer the following questions


1. Give one difference between a form and a report.
Ans-
Forms Reports
Forms is the user-friendly data entry screen The Report helps to present the retrieved
that allows to enter the data in the table data in a user friendly, understandable and
easily by any user. formatted manner.

2. What is a field control with respect to forms?


Ans- 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. A label is a piece of text that
specifies the data that should be entered in the field value text box.

3. Which tool on the Forms Record toolbar is used to insert text on the form?
Ans-Text box tool is used to insert text on the form.

4. Name the two ways to create a form in LibreOffice Base.


Ans- There are two ways to create a form:
• Using a wizard
• Using the Design View

5. What is the difference between a static and a dynamic report?


Ans-
Static Report Dynamic Report
Static report are the fixed snapshot of data Dynamic Report Upadated automatically
at a specific time based on database changes.
In Static Report, as the field values is the In Dynamic report, as the field values in the
base table or query changes, the report will base table or query changes, the report will
not change automatically also change automatically.
It contains pre-defined set of data. It reflects current state of the database.
It requires manual re-running or editing It gets updated automatically based on user
interaction.
This is not the default type of report This is the default type of report.

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.E.g. Adding a calendar to a date field, Adding text to the form. Adding a new record
using a form.
Record Toolbar: The Record Toolbar contains the navigation control buttons in the extreme
left.With the help of these we can traverse and view the records in the file. As we move
from one record to another, the record number in the record will be visible.

You might also like