Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
209 views

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

Uploaded by

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

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

Uploaded by

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

Unit 3.

Database Management System using LibreOffice Base


Chapter 8. Introduction to Database Management System

A. Multiple-choice questions.
Question 1:
Which of the following can not be considered as an example of a database?
(a) Dictionary
(b) Telephone directory
(c) Marks Register
(d) Newspaper
Answer: (d) Newspaper
Question 2:
Which of the following is NOT a DBMS?
(a) MS Access
(b) Open Office Base
(c) MS Excel
(d) MySQL
Answer: (c) MS Excel
Question 3:
DBMS stands for __________.
(a) Data and Books Management System
(b) Database Management System
(c) Duplicate Books Management System
(d) Data Management Multi System
Answer: (b) Database Management System
Question 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
Answer: (a) Relational Data Model
Question 5:
The details associated with an entity are called ________.
(a) Table
(b) Attributes
(c) Records
(d) Primary key
Answer: (b) Attributes
Question 6:
A ________ is represented as rows in a table.
(a) field
(b) attribute
(c) record
(d) candidate key
Answer: (c) record
Question 7:
In which of the following forms can a data value be represented?
(a) Numeric
(b) Character
(c) Alphanumeric
(d) All of the above
Answer: (d) All of the above
Question 8:
Which of the following uniquely identifies a row in a table?
(a) Primary key
(b) Alternate key
(c) Foreign key
(d) Candidate key
Answer: (a) Primary key
Question 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
Answer: (c) form
Question 10:
A _______ is a question asked from a database.
(a) query
(b) report
(c) form
(d) field
Answer: (a) query
B. State whether the following statements are True or False.
Question 1:
A database cannot be organised.
Answer: False
Question 2:
Data is the collection of raw facts.
Answer: True
Question 3:
A table can be created without a primary key.
Answer: False
Question 4:
Two tables can be related in a network data model.
Answer: False
Question 5:
MS Access is an example of a database.
Answer: False
C. Fill in the blanks.
Question 1:
The raw facts constitutes ________.
Answer: Data
Question 2:
An ________ is a real world object about which information is to be stored in a database.
Answer: Entity
Question 3:
The output of a query may be displayed in the form of ________.
Answer: Report
Question 4:
The data values for all the fields related to a person or object is called a ______.
Answer: Record
Question 5:
All the field values that are eligible to be the primary key are the _______ keys for that
table.
Answer: Candidate
D. Answer the following questions.
Question 1:
Define the terms:
(a) Database (b) Data redundancy (c) Report
Answer:
(a) Database: A database is a collection of logically related data items stored in an organised
manner.
(b) Data Redundancy: Duplication of data is called Data Redundancy. Same data is stored
multiple times either in same table or different table is known as Data Redundancy.
(c) Report: The result of the query which is presented in the proper format, is known as Report.
A report is a document that presents data in a structured and easily readable format, often used
for summarizing and analyzing data stored in a database.
Question 2:
Give one point of difference between
(a) Data and Information,
(b) Form and Query,
(c) Network and hierarchical data model
Answer: One point of difference between
(a) Data and Information
(i) Data is an unprocessed data, while information is a processed data.
(ii) Data is the collection of raw facts, figures, and symbols, while information is the meaningful
collection 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. In simple terms, it is a
question asked from the database.
(c) Network and hierarchical data model
In the Network model, multiple records are linked to same master file. It is also considered as an
inverted tree.

In the Hierarchical model, the data is organized into a tree like structure.
Question 3:
Give any four advantages of a DBMS.
Answer: Advantages of a DBMS are:-
• Organised Storage: The data in the database is stored in an organised manner.
• Data Sharing: If the same data set is required for different applications then
the database can be shared with other applications.
• Minimal Data Redundancy: Database reduce the duplication of data, i.e. data
redundancy.
• Data Consistency: By minimising data redundancy, chances of inconsistent data
being stored is reduced. Inconsistent means the mobile number of one student is
changed in one table and not changed in another table.
Question 4:
Consider the table given below and answer the questions that follow
Table: Library
Book_Id BookName AuthorName Price Publisher

F001 Pride and Prejudice Jane Austen 550 ABC

S004 Amazing Astronomy E. Shane 1050 ABC

C005 IT and Mankind MHA Diwaan 2500 HYM


(a) Name the fields in the given table.
(b) Which field should be made the primary key?
(c) Is there any alternate key in the table?
(d) How is primary key different from foreign key? Explain with example.
Answer:
(a) Book_Id, BookName, AuthorName, Price, Publisher
(b) Book_Id
(c) BookName
(d) The primary key is a key, which uniquely identifies the record in a table. While the foreign
key is used to make the relationship between two tables. A foreign key is a non-key, whose value
is derived from the primary key of the master table.
Unit 3: Database Management System using LibreOffice Base
Chapter 9. Starting with LibreOffice Base

A. Multiple-choice questions.
Question 1:
Which of the following is NOT a type of text data type?
(a) Memo
(b) Varchar
(c) Float
(d) Char
Answer: (c) Float
Question 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
Answer: (b) False
Question 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
Answer: (c) Both date and time
Question 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.
Answer: (b) It is free and open-source software
Question 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
Answer: (c) Both a and b
Question 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
Answer: (a) Database
Question 7:
Which is the shortcut key to open an existing database?
(a) Ctrl+ D
(b) Ctrl+O
(c) Ctrl+E
(d) Ctrl+F
Answer: (b) Ctrl+O
Question 8:
The Design view of the Table Creation window in LibreOffice Base is divided into __________
sections or panes.
(a) 2
(b) 3
(c) 4
(d) 5
Answer: (a) 2
Question 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
Answer: (a) Tab
Question 10:
Which of the following is true about the primary key of a table?
(a) Every table must have a primary key
(b) The data values in the primary key field cannot be duplicated.
(c) A primary key field cannot be left blank
(d) All of the above
Answer: (d) All of the above
B. State whether the following statements are True or False.
Question 1:
The text data can contain special characters.
Answer: True
Question 2:
Memo data type can be used to store descriptive data.
Answer: True
Question 3:
A Boolean data type can have two or more than two values.
Answer: False
Question 4:
We cannot store audio data in LibreOffice Base.
Answer: False
Question 5:
The properties of a field change according to the data type selected.
Answer: True
Question 6:
Field descriptions may or may not be entered while designing a table.
Answer: True
Question 7:

is pressed to move to the last record.


Answer: False
Question 8:

appears when the record is being edited.


Answer: True
Question 9:
A table once created in a database cannot be edited.
Answer: False
Question 10:
Sort dialog box can only help to sort data in ascending order.
Answer: False
C. Fill in the blanks.

Question 1:
A ________ refers to the type of data that will be stored in that particular field.
Answer: Data Type
Question 2:
The _______ data is a combination of letters, numbers or special characters.
Answer: Text
Question 3:
_________ data type can be used to store Aadhar number.
Answer: Text
Question 4:
The ______ data type is used to store digitized images.
Answer: Binary
Question 5:
The shortcut key to save a table is _________.
Answer: Ctrl + S
Question 6:
_________ on the Base Interface Window displays information about the type of view of the
object in the database.
Answer: Tasks Pane
Question 7:
A ________ icon appears before the field name indicating that it is a primary key.
Answer: Key
Question 8:
The data can be entered in a table only in _________ view.
Answer: Datasheet
Question 9:
The black pointing arrow just before the field name in a table is called ___________.
Answer: Record Pointer
Question 10:
The process of arranging the records in a particular order on any filed is called ____________.
Answer: Sorting

D. Answer the given questions


[1] Differentiate between:
(a) Memo and Varchar data type
(b) Number and Decimal data type
(c) Design View and Datasheet view of a table

Memo Varchar

It is used to store up to maximum length It is used to store up to the specified


data indicated by user. length by user.

It can store the descriptive values having


It can store text values up to 255
more than 255 characters. It can store data
characters.
up to 64,000 characters.

It can store values like names, cities,


It can store values like remarks, address,
locations, any other short texts having
description etc.
various length characters.

Number Decimal

It can store number as exactly as precise it It allows higher numbers and can store
can defined. more digits than specified

If user has specified Numeric(6,2) that If user has specified Decimal(6,2) that
means 6 total digitals with 2 decimal means 1-6 total digitals with 2 decimal
places. No more or no less digits before or places. Means it can store 11.56 but not
after decimals. 11.005.

In this data type 0 is automatically ignored


and not displayed in the value. For It accept 0s in value. For example the
example, the value 6000.50 will be 6000.50 will be accepted as 6000.50
accepted as 6000.5
Design View Datasheet View

It is not a default view of a database table. It is a default view of database table.

It shows only field names and data types It shows all the records of tables entered
of fields of the table but no records. by user along with fields title.

It allows to create or change the table It allows to change information entered


structure only. in the table.

Each row represents a record in the


Row does not represent any record. As
datasheet view. If five records are
much fields are available in the table that
entered in the table, it displays five
much rows are displayed in design view.
rows.

[2] Name the menu items present on the Base User Interface.
Answer:
Base user interface offers these menu items:
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
2. 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
3. View – Tables, Queries, Forms, Reports, Toolbars, Status Bar, Sort Ascending, Sort
Descending, Refresh Tables, Preview
4. Insert – Form, Report, Report Wizard, Query (Design View), Query (SQL View), Table
Design, View Design, View Simple, Folder
5. Tools – Relationships, User Administration, Table Filter, SQL, Macros, XML Filter
Settings, Extensions, Customize, Options
6. Window – Close Window, Database
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
[3] Label the components – Title Bar, Database Pane, Tasks Pane, Status Bar of the LibreOffice
Base User Interface.
Answer:

[4] How can we define a primary key in a table?


Answer:
Follow these steps to define primary key:
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.
[5] 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:
1. Open database and table in datasheet view.
2. Select the Primary Key field.
3. Click on Data > Sort Descending option or Sort Descending icon from toolbar.
4. The fields and records gets sorted in descending order.
[6] 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.
• Navigation Buttons – These are used to scroll vertically in the table.
o |<: Used to move to first record
o > and <: Used to navigate to Next and Previous record
o >|: Used to move last record
o +: Used to insert a new record

You might also like