Data and Information
Data – Data is a collection of facts which do not have any meaning. This
data is unstructured information such as numbers, text, symbols and
images.
Information – Information depends on data, this information has some
meaning. This Information refers to organized and structured data.
Databases and DBMS
Database – A database is a collection of logically related data items
stored in an organized manner, It is also considered as a data bank.
DBMS (Database Management System) – This software that is used to
create, update and retrieve data is known as database management
system. Some of the common examples of DBMS are LibreOffice Base,
MS Access, Open Office Base, Oracle, MySQL.
Data literacy course
Database management course
Advantages of DBMS
Organized Storage – In database data are stored in an organized manner,
so that retrieval of the data is fast and accurate.
Data Analysis – In database you can retrive the data based on certain
criteria for example average, maximum or minimum value etc.
Data Sharing – Databases can share the data with other applications.
Minimal Data Redundancy – In database duplicate data is not allowed, it
means that same data will not be repeated in the table.
Data Consistency – In database if any record is changed in any one of the
tables then the same data will update in other tables also.
Increase Efficiency – In the database the data is organized which helps to
retrieve and search data efficiently.
Increases Accuracy – In the database the data is retrieved accurately
from the database.
Increases Validity – In the database the valid data is being entered and
checked by the database.
Security – Unauthorized access is not allowed in the database.
Database management software
LibreOffice Base software
Data Models
A database can be designed in different ways dependent on data storage. This
structure of the database is known as a data model. The data models describe
the relationships between the data.
Database management course
Data literacy course
There are different data models such as –
Hierarchical data model
Network data model
Relational data model
Hierarchical Data Model
In Hierarchical Data Model the data is organized like tree structure and data is
stored in the form of a table.
Data literacy course
Network Data Model
In this model, multiple records are linked to the same master file. This network
model is considered as a tree where the master table present in the bottom
and other tables linked to the master table.
Data literacy course
Relational Data Model
In relational data models are based on relationships between two or more
tables of the same database. This is the most popular data model.
Relational Database Model
E. F. Codd given the concept of Relational Database Model in 1970. The most
popular type of database model is the relational model. In relational database
models the data elements are stored in different tables, this table is related
through the common fields.
Relational Database Terminology
Some of the common terms used in RDBMS.
Entity – Entity is a piece of data that is stored in the database, for
example student rollno, name and age is the entity of the student
record.
Table – Table is a collection of logically related records, It is organized as
a set of columns.
Field or Columns or attributes – The smallest entity in the database is
known as field, a collection of fields is known as record, a collection of
records make a table and a collection of tables make a database.
Data Values – Data values are raw data represented in character,
numeric or alphanumeric.
Record or Row – The collection of data values of all the fields are known
as record.
Primary Key – The field which uniquely identifies a row in a table. The
primary key used to be a unique identifier for the table.
Relational Database – A relational database is a collection of related
tables.
Foreign Key – The 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.
Candidate Key – All the field values that are eligible to be the primary
key are the candidate key for that table.
Alternate Key – One or two fields in the table are made as primary key
but others are the alternate key.
Objects of an RDBMS
The database is a collection of object or a feature that is used to store,
represent or retrieve data, different types of objects in a database are given
below –
Table – Table is a collection of row and column which is used to store
data. The data in the database is first stored in a table.
Form – A form is used to enter data in a table, form is the interface
between database and users, it is an easiest method to enter data in
database using user friendly manners. A form consists of a text box, radio
button, labels, check box etc.
Queries – Queries are used to retrieve the desired result from the
database.
Reports – The output of any query in the database may be displayed in
the form of reports.
Chapter 9: Starting with LibreOffice Base
Data Types
A data type refers to the type of data that will be stored in that particular field.
The memory size of a field varies according to its data type. There are six
different types of data type in LibreOffice Base –
Text Data Types
Numeric Data Type
Currency Data Type
Date Data Type
Boolean Data Type
Binary Data Type
Text Data Types
The text data consists of a mix of special characters, numbers, and letters. With
text data, no mathematical operations may be carried out. PAN card numbers,
names, marks, and other data types are examples of text data.
The lists of various data types that can store textual data –
Name Data Type Description
Memo data type allows to store
Memo LONGVARCHAR
text data up to 64000 characters.
Character data type is used to
enter fixed number of characters
Text(fix) CHAR
for example AADHAR NO,
ACCOUNT NO, PASSPORT NO etc.
Stores upto the specified length,
the number of bytes allocated
Text VARCHAR
depends on the number of
characters entered by the user.
Numeric Data Type
Numeric Data type contains numbers. The number can be integer, real, float or
double.
Name Data type Signed Range
Tiny Integer TYNYINT No 0-255
Small
SMALLINT Yes -32768 to 32768
Integer
Integer INTEGER Yes -2.14×109 to 2.14×109
BigInt BIGINT Yes -2.3×1018 to 2.3×1018
Number NUMERIC Yes Unlimited
Decimal DECIMAL Yes Unlimited
Float FLOAT Yes
Real REAL Yes 5×10(-324) to 1.79×10(308)
Double DOUBLE Yes
List of different numeric data types are –
Currency Data Type
Currency Data type contains monetary values and can store currencies of
different countries.
Date Data Type
This data type is basically used for date and time. There are various formats
used to store date and time.
List of various forms of date data types are –
Name Description
Stores the year, month and day as it is stored
Date
in the system.
Stores the time of the day as hour, minute
Time
and second.
Timestamp Stores date and time information at once.
Boolean
In boolean data type there are only two values – True or False, This also can be
given in multiple formats like Yes/No, True/False, On/Off.
Binary
The binary datatype is used to store digital images and sounds.
Starting with LibreOffice Base
LibreOffice base is a database management software belonging to LibreOffice
suite, It is free and open source software for creating and managing data. It
also allows you to create a query for retrieving desired results from the
database.
Steps for starting LibreOffice Base –
Step 1: Click on Start > LibreOffice base
Step 2: In Database Wizard, Click on Create a new database
Step 3: After Creating a new database, Click on Yes, register the database
for me
Step 4: Click on Finish, Now your database will be created
Creating a Table
After creating a database now you will start working with objects of the
database, The first object we are going to create is Create Table. There are two
different method to create table –
1. Create Table using design View
2. Create Table using a Wizard
Creating Table in Design View
Step 1: Click on Table
Step 2: Click on Create Table in Design View
Step 3: Enter Field Name, Field Type and Description
Step 4: Click on Save
Steps for Creating Table using a Wizard
Step 1: Click on Table
Step 2: Click on Use Wizard to Create Table
Step 3: Select the field which you want
Step 4: Click on Finish
Chapter 10: Working with Multiple Tables
After creating tables in a database, you can also create relationships between
two or more tables to control data redundancy and inconsistency. When you
create a relationship between two or more tables then adding or updating a
record in one table reflects the changes in all the related tables.
Master table vs Transaction table
If the School wants to manage student fees collection in a database, then they
will create two tables, one for Student Details and second for Free details, here
the Student Details will be master table and Fee details will be transaction
table.
Relationships between Tables
A relationship is a connection between two or more tables that contain data,
the relationships between tables are based on a common field. This
relationship helps to improve table structures and reduce redundancy of the
data.
Types of Relationships
The relationships between two or more tables in a database is based on the
number of records, Primarily there are three different types of relationships
that can be set up between two or more tables.
1. One-to-One
2. One-to-many
3. Many-to-Many
One-to-One relationship
In a One-to-One relationship, the master table and transaction table both have
one record.
One-to-Many relationship
In a One-to-Many relationship, the master table having one record and
transaction table having multiple records. This is a very common type of
relationship between the tables in the database.
Many-to-Many relationship
In a One-to-Many relationship, the master table has multiple records and the
transaction table has multiple records.
Advantages of Relating Tables in a Database
1. A relationship helps to prevent data redundancy.
2. Relationships between tables help to restrict from entering invalid data
in the referenced field.
3. It helps to prevent missing data by keeping deleted data from getting out
of sync.
4. Any update in the master table is automatically reflected in the
transaction tables.
Primary Key, Composite Primary Key and Foreign Key in a Database
In the RDBMS data can be integrated using keys. These are Primary Key,
Composite Primary Key, and Foreign Key, Key are used to make the relationship
between the tables.
1. Primary Key – This unique field is called the Primary Key (PK). primary
key is a field or a set of fields that uniquely identify each record in a
table. A primary key must be unique and cannot contain null values.
2. Composite Primary Key – A composite primary key is a primary key that
consists of two or more fields that together uniquely identify each record
in a table.
3. Foreign Key – Foreign key is used to link one table to another table using
referencing where the first table will be primary key, and the second
table will be foreign key. It is used to make relationship between two
tables.
Referential Integrity
As per the principle rule of the database, no unmatched foreign key values
should exist in the database. Referential integrity processes concentrate on
ensuring data consistency and the link between tables.
LibreOffice Base gives us following four options to maintain referential
integrity –
1. No action – This is default option, this option states that no update or
delete are allowed in the master table if any related record exists in the
transaction table.
2. Update cascade – This option allows to delete or update the referenced
field but the related records that are also available in any transaction
tables will also be deleted or updated.
3. Set NULL – This option assigns NULL value to all the records in the
master record that are deleted or updated.
4. Set default – This option assigns a fixed default value to all the related
fields if the master record deleted or updated.
Chapter 11: Queries in Base
In the database data is stored in an organized manner which helps to retrieve
data quickly and accurately. To search and retrieve the desired data from the
database, we have to give its specifications to DBMS. Such specifications are
given to the database in the form of queries.
Query
A query is the most important feature of DBMS. Query is a request for data,
query helps to retrieve and display data from one or more tables in a database.
This is done by giving criteria to the DBMS.
A query can be created in three ways –
1. Using a Wizard
2. In Design View
3. In SQL view
Database Languages
Database Languages having two type:
1. DDL (Data Definition Language)
2. DML (Data Manipulation Language)
DDL Statements:
Create: Using this statement, a database or set of tables can be created.
Alternate: This statement is used to change the table’s structure.
Drop: This statement is used to remove database objects from the
system.
DML statements:
SELECT: The statement “SELECT” is used to get data from the database.
INSERT: The statement “INSERT” is used to add a new record to the
database.
DELETE: The database can be cleaned out by using the statement
DELETE.
UPDATE: This statement is used to modify the database’s information.
Select Statement
Select statement is most important for retrieving and for displaying data from a
database.
Syntax of Select Statement is –
SELECT * FROM <TABLENAME>;
The SELECT statement has many optional clauses:
WHERE specifies which rows to retrieve.
ORDER BY specifies an order in which to return the rows.
Question 1 – Write a Query to display all record from the table;
Table Name – product
Product_No Product_Name Price Quantity
25 Soap 40 80
31 Powder 80 30
45 Shampoo 250 25
52 Soap Box 120 100
Answer: Select * from product;
Question 2 – Write a Query to display product name from the table;
Answer: Select Product_Name from product;
Question 3 – Write a Query to display Product_Name and Price from the
table;
Answer: Select Product_Name, Price from product;
Question 4 – Write a Query to find the total no of quantity available in table;
Answer: Select sum(quantity) from product;
Question 5- Display the total amount of each item. The amount must be
calculated as the price multiplied by quantity for each item.
Answer: Select Product_No, Product_Name, Price * Quantity from product;
Question 6- Write a Query to display the product whose price is less than 90
Answer: Select * from product where price < 90;
Question 7- Write a Query to find the total amount of the Shampoo product;
Answer: Select Price*Quantity from product where Product_Name =
‘Shampoo’;
Question 8- Write a Query to display the data whose quantity is equal to 80.
Answer: Select * from product where quantity = 80;
Question 9- Write a Query to display a list of Products whose Price between
40 to 120.
Answer: Select * from product where Price >= 40 and Price <= 120;
Question 10- Write a Query to display the list of Product_Name in
alphabetical order.
Answer: Select * from product order by Product_Name ASC;
Question 11- Write a Query to display the list of Price in descending order.
Answer: Select * from product order by Price DESC;
UPDATE statement
Update statement is used to update existing records present in database. The
updated statement will apply using WHERE clause.
Syntax of Update Statement –
UPDATE <table name> SET = value [, column_name = value ...] [WHERE ];
Table Name – product
Product_No Product_Name Price Quantity
25 Soap 40 80
31 Powder 80 30
45 Shampoo 250 25
52 Soap Box 120 100
Question – Write a Query to update the price of Shampoo in the product
table.
Answer: Update product Set Price = 300 where Price = 250;
Question – Write a Query to update the Quantity of Powder in the product
table.
Answer: Update product Set Quantity = 50 where Product_Name = ‘Powder’;
Chapter 12: Forms and Reports
LibreOffice Base provides the Form feature for data entry purposes and report
feature for displaying the data.
Form
A form is a database object with a user-friendly interface that allows data entry
and viewing in a visually attractive and accessible method. It serves as the front
end for entering and editing data into any database.
There are two ways to create a form:
1. Using a wizard
2. Using the Design View
Creating a Form Using a Wizard
Creating a Form Using a Wizard is the simplest way to create a form in
LibreOffice base. To create a form using wizard, follow the following steps.
Step 1: Open Database
Step 2: Click on Use Wizard to Create Form
Step 3: Select the fields of your form
Step 4: Decide if you want to set up a subform
Step 5: Arrange the controls on your form
Step 6: Select the data entry mode
Step 7: Apply Style
Step 8: Set the name of the form
Step 9: Click on Finish
Forms Control Toolbar – This toolbar contains various controls that can be
added to the form.
Records Toolbar – The Records toolbar contains the navigation control buttons
in the extreme left.
Creating Reports using wizard
You can create report from the Report using a wizard. To create a report, follow
the following steps –
Step 1: Open Database
Step 2: Click on Use Wizard to Create Report
Step 3: Select, Which fields do you want to have in your report
Step 4: Enter, How do you want to label the field
Step 5: Add grouping levels in the Report Wizard
Step 6: Select sort option according to the data
Step 7: How do you want your report to look
Step 8: Describe how you want to processed
Step 9: Click on Finish
Database Management System Class 10 MCQ
Chapter 8: Introduction to Database Management System
1. Databases are being used to _.
a. Store
b. Manipulate
c. Manage
d. All of the above
.⟶
2. In Database which type of data we can store.
a. Text
b. Image
c. Audio and Video
d. All of the above
.⟶
3. Data is a collection of _.
a. Raw facts
b. Table
c. Database
d. None of the above
.⟶
4. The facts may be related to __.
a. Any person
b. Place
c. Activity or things
d. All of the above
.⟶
5. Data can be processed in the proper way to generate meaningful __.
a. Data
b. Information
c. Database
d. None of the above
.⟶
6. Which of the following is known as an organized form of data.
a. Data
b. Information
c. Database
d. None of the above
.⟶
7. A _ is a collection of logically related data items stored in an organized
manner.
a. Data
b. Database
c. Information
d. None of the above
.⟶
8. Which of the following software is used to retrieve, update and create
data in a database.
a. Database Management System (DBMS)
b. Data Manager (DM)
c. Database Manager (DM)
d. None of the above
.⟶
9. Which of the following is a common example of DBMS.
a. MS Access
b. OpenOffice or LibreOffice Base
c. Oracle or MySQL
d. All of the above
.⟶
10. The data in the database is stored in an __.
a. Organized manner
b. Tabular method
c. Both a) and b)
d. None of the above
.⟶
11. A __ helps to analyze the data based on certain criteria.
a. Database
b. Digital Document
c. Impress
d. None of the above
.⟶
12. What do you mean by Data Redundancy?
a. Same data will not repeated in several tables
b. It can create same data multiple times
c. Data can be shared to multiple users
d. None of the above
.⟶
13. What do you mean by Data consistency?
a. Accuracy of the data
b. Reliability of the data
c. Uniformity of the data
d. All of the above
.⟶
14. Database helps to maintain the same data across all the tables, this is
known as _.
a. Data Redundancy
b. Data Sharing
c. Data Consistency
d. None of the above
.⟶
15. Data redundancy and inconsistency can be minimized in a database which
helps to increase.
a. Validity
b. Security
c. Accuracy
d. None of the above
.⟶
16. The data is translated in such a manner in a database that unauthorized
users are not able to read is known as _.
a. Validity
b. Encryption
c. Consistency
d. None of the above
.⟶
17. The structure of the database is known as _.
a. Data
b. Data Base
c. Data Model
d. None of the above
.⟶
18. Which of the following data models is used in the database.
a. Network data model
b. Hierarchical data model
c. Relational data model
d. All of the above
.⟶
19. In which data model the data is organized into a tree-like structure.
a. Network data model
b. Hierarchical data model
c. Relational data model
d. All of the above
.⟶
20. In which of the following data models are used to link multiple records to
the master file.
a. Network data model
b. Hierarchical data model
c. Relational data model
d. All of the above
.⟶
21. In which data model is based on the principle of setting relationships
between two or more tables of the same database.
a. Network data model
b. Hierarchical data model
c. Relational data model
d. All of the above
.⟶
22. Which of the following is the most commonly used database model in
DBMS.
a. Network data model
b. Hierarchical data model
c. Relational data model
d. All of the above
.⟶
23. The relational database model was proposed in __.
a. 1970
b. 1980
c. 1990
d. 2000
.⟶
24. The relational database model is proposed by __.
a. M. K. Rose
b. E. F. Codd
c. Linus Torvalds
d. John von Neumann
.⟶
25. In relational data models the data are stored in different tables made up
of __.
a. Rows
b. Columns
c. Both a) and b)
d. None of the above
.⟶
26. In which data model the relations are set between tables based on
common fields.
a. Network data model
b. Hierarchical data model
c. Relational data model
d. All of the above
.⟶
27. Which of the following is a real world object which stores the information
in a database.
a. Attribute
b. Entity
c. Field
d. All of the above
.⟶
28. The details associated with the entity are called __.
a. Attribute
b. Entity
c. Field
d. All of the above
.⟶
29. A __ is a collection of logically related records.
a. Attribute
b. Entity
c. Field
d. Table
.⟶
30. A _ is the smallest entity in the database.
a. Attribute
b. Field
c. Record
d. Database
.⟶
31. A collection of fields in the table make a _.
a. Attribute
b. Field
c. Record
d. Database
.⟶
32. A collection of records makes a _.
a. Attribute
b. Field
c. Record
d. Table
.⟶
33. A collection of tables make a __.
a. Attribute
b. Field
c. Record
d. Database
.⟶
34. _ hold the data values of one type of data.
a. Attribute
b. Field
c. Record
d. Database
.⟶
35. The raw data represented in the form of alphanumeric, character or
numeric data is known as _.
a. Attribute
b. Field
c. Record
d. Data value
.⟶
36. A __ is the set of data values for all the fields related to a person or
object.
a. Attribute
b. Field
c. Record
d. Database
.⟶
37. A __ holds the data values of all the fields for a single person or object in
a table.
a. Attribute
b. Field
c. Record
d. Database
.⟶
38. A _ key is a field that uniquely identifies a row in a table.
a. Primary key
b. Candidate key
c. Foreign key
d. None of the above
.⟶
39. In a table if more than one field identifies a record, it is known as _.
a. Primary key
b. Composite key
c. Foreign key
d. None of the above
.⟶
40. __ key helps to build a relation between two or more tables in a database.
a. Primary key
b. Composite key
c. Foreign key
d. None of the above
.⟶
41. If the field values that are eligible to be the primary key are known as _.
a. Primary key
b. Candidate key
c. Foreign key
d. None of the above
.⟶
42. In the database table if candidate keys are not chosen as the primary key
are called __.
a. Alternate key
b. Candidate key
c. Foreign key
d. None of the above
.⟶
43. The __ key helps to build a relation between two tables.
a. Alternate key
b. Candidate key
c. Foreign key
d. None of the above
.⟶
44. All the field values that are eligible to be the primary key are the _.
a. Alternate key
b. Candidate key
c. Foreign key
d. None of the above
.⟶
45. Which of the following is suitable for candidate keys?
a. Candidate key field can be left blank
b. Candidate key field don’t have duplicate values
c. Both a) and b)
d. None of the above
.⟶
46. If in the database table there are two field roll numbers and admission
number both are uniquely identified fields, if roll number is made as primary
key then admission number will be __.
a. Alternate key
b. Candidate key
c. Foreign key
d. None of the above
.⟶
47. A structure or feature that is used to store, represent, or retrieve data is
called __.
a. Database
b. Object
c. Report
d. None of the above
.⟶
48. What are the different objects present in RDBMS?
a. Table
b. Queries
c. Form & Report
d. All of the above
.⟶
49. __ is a feature of a database, which contains data from users and stored in
a database table using a user-friendly manner.
a. Form
b. Queries
c. Report
d. None of the above
.⟶
50. The form consists of _.
a. Text boxes & Labels
b. Radio button & list box
c. Check box
d. All of the above
.⟶
51. The data entered through the forms is stored in _.
a. Queries
b. Forms
c. Table
d. None of the above
.⟶
52. The necessary data is extracted from the database using _.
a. Queries
b. Forms
c. Table
d. None of the above
.⟶
53. The output of a query can be displayed in the form of _.
a. Queries
b. Forms
c. Report
d. None of the above
.⟶
Chapter 9: Starting with LibreOffice Base
54. _ helps to specify while creating the tables and check only valid data will
be entered in the table.
a. Data Type
b. Data Storage
c. Validation
d. None of the above
54.
.⟶
55. __ refers to the type of data that will be stored in the particular field.
a. Data Type
b. Data Storage
c. Validation
d. None of the above
.⟶
56. The memory size of the field varies according to its __.
a. Data Type
b. Data Storage
c. Validation
d. None of the above
.⟶
57. The text data types are a combination of __.
a. Letters
b. Numbers
c. Special Characters
d. All of the above
.⟶
58. No arithmetic calculations can be performed on _ data type.
a. Number Data type
b. Text Data type
c. Decimal Data type
d. None of the above
.⟶
59. __ data type stores maximum length of the characters, data having more
than 255 characters.
a. Memo (Longvarchar)
b. Text(fix) (Char)
c. Text (Varchar)
d. None of the above
.⟶
60. _ data type stores exactly the length specified, this data type uses a fixed
number of characters.
a. Memo (Longvarchar)
b. Text(fix) (Char)
c. Text (Varchar)
d. None of the above
.⟶
61. __ data type allocated depends on the number of characters entered by
the user.
a. Memo (Longvarchar)
b. Text(fix) (Char)
c. Text (Varchar)
d. None of the above
.⟶
62. __ data type consists of number, integer, decimal, real or double type
which can perform arithmetic calculation.
a. Text Data type
b. Number Data type
c. Date Data type
d. Binary Data type
.⟶
63. _ data type is used to store decimal values in the database using a table.
a. Tiny Integer
b. BigInt
c. Number
d. Float
.⟶
64. Which data type is used to store monetary values and can store
currencies of various countries.
a. Boolean Data type
b. Currency Data type
c. Date Data type
d. None of the above
.⟶
65. Which data type is used to store date and time both in the database.
a. Date
b. Time
c. Timestamp
d. None of the above
.⟶
66. Which data type is used to store date data in the database table.
a. Date
b. Time
c. Timestamp
d. None of the above
.⟶
67. Which data type is used to store time in the database table.
a. Date
b. Time
c. Timestamp
d. None of the above
.⟶
68. In which data type you can store True/False, Yes/No, or On/Off in the
database table.
a. Binary Data type
b. Text Data type
c. Boolean Data type
d. Number Data type
.⟶
69. Which data type is used to store digital image, sound, video or file in the
database table.
a. Binary Data type
b. Text Data type
c. Boolean Data type
d. Number Data type
.⟶
70. What is the name of a method where you can create a new database
using step by step procedure.
a. New Database
b. Database Wizard
c. Database Method
d. None of the above
.⟶
71. In LibreOffice Base if you select the option “No, do not register the
database” then what will happen.
a. Database will be not store the data
b. Database will not open
c. Database will not share publicly
d. None of the above
.⟶
72. What method is used to create tables in LibreOffice Base?
a. Using Table Wizard
b. Using Design View
c. Both a) and b)
d. None of the above
.⟶
73. Which method is used to create a table in a flexible method.
a. Using Table Wizard
b. Using Design View
c. Both a) and b)
d. None of the above
.⟶
74. In LibreOffice Base, If you want to describe the purpose of the field, it will
not be a part of the database table but it helps the user to understand the
purpose of the field.
a. Field Name
b. Field Type
c. Description
d. None of the above
.⟶
75. Which of the following shortcut keys is used to save the table in the
database.
a. Alt + S
b. Ctrl + S
c. Shift + S
d. None of the above
.⟶
76. The data can be arranged in the table using _.
a. Shorting
b. Arrangement
c. Ascending
d. Descending
.⟶
77. The data type in LibreOffice base can be categorized into __.
a. Text
b. Numeric
c. Currency and Date
d. All of the above
.⟶
Chapter 10: Working with Multiple Tables
78. To edit a table in LibreOffice Base, Which of the following interfaces is
used.
a. Database Edit Interface
b. Database User Interface
c. Database Manage Interface
d. None of the above
78.
.⟶
79. __ are used to set up between the tables which helps to control data
redundancy and inconsistency.
a. Relationship
b. Common Field
c. Database Interface
d. None of the above
.⟶
80. The most important prerequisite for setting a relationship is that there
must be a _.
a. Different field
b. Common field
c. Both a) and b)
d. None of the above
.⟶
81. The table contains a unique record that is used as a main source of
information known as _.
a. Transaction table
b. Master table
c. Sub table
d. None of the above
.⟶
82. What do you mean by transaction table in database.
a. Table which make a relation with master table
b. It is a support of master table
c. Both a) and b)
d. None of the above
.⟶
83. Primarily how many types of relationships can be set up between two
tables.
a. 2
b. 3
c. 4
d. 5
.⟶
84. In the database if the master table and transaction table both have a
unique record then it will create __ type of relationship.
a. One-to-One
b. One-to-many
c. Many-to-many
d. None of the above
.⟶
85. _ specific record of the master table has more than one corresponding
record in the related transaction table.
a. One-to-One
b. One-to-many
c. Many-to-many
d. None of the above
.⟶
86. In _ multiple records in the master table that correspond to multiple
records in the transaction table.
a. One-to-One
b. One-to-many
c. Many-to-many
d. None of the above
.⟶
87. What are the benefits of relating tables in a database?
a. It helps to prevent data redundancy
b. It helps to prevent missing data using referential integrity
c. Restricts the user to enter invalid data using relationships
d. All of the above
.⟶
88. Any update in the master table is automatically reflected in the
transaction tables using________.
a. Relationships
b. Common Field
c. Database Interface
d. None of the above
.⟶
89. What is the purpose of referential integrity in databases?
a. Accuracy
b. Consistency
c. Completeness
d. All of the above
.⟶
90. According to the principle of __ no unmatched foreign key values should
exist in the database.
a. Database
b. Referential integrity
c. Database Interface
d. None of the above
.⟶
91. Referential integrity allows only that corresponding record to be entered
in the transaction table which already exists in _.
a. Master table
b. Transaction table
c. Relationships table
d. None of the above
.⟶
92. LibreOffice base gives us how many options to maintain referential
integrity in the database.
a. 3
b. 4
c. 5
d. 6
.⟶
93. Which of the following referential integrity used in LibreOffice Base.
a. No action
b. Update cascade
b. Set NULL or Set Default
c. All of the above
.⟶
94. Which referential integrity states that users should not be allowed to
update or delete records in the master table if the related record is present in
the transaction table.
a. No action
b. Update cascade
b. Set NULL or Set Default
c. All of the above
.⟶
95. Which referential integrity states that the user is allowed to update or
delete the referenced field along with the related record in the transaction
table will also be updated or deleted.
a. No action
b. Update cascade
b. Set NULL or Set Default
c. All of the above
.⟶
Chapter 11: Queries in Base
96. To search or retrieve the desired record from the database we have to
give specifications in the form of _.
a. Form
b. Table
c. Query
d. Report
96.
.⟶
97. LibreOffice Base allows us to create a query and you can save it as __ in a
database.
a. a Micro
b. an Object
c. a Module
d. None of the above
.⟶
98. You can run query multiple times whenever it is required (True/False)
.⟶
99. In LibreOffice Base you can create a query using __.
a. Using a Wizard
b. In Design View
c. In SQL views
d. All of the above
.⟶
100. In LibreOffice Base, which mathematical function you can use in a query.
a. count and sum
b. maximum and minimum
c. average
d. All of the above
.⟶
101. SQL stands for __.
a. Simple Query Language
b. Simple Question Language
c. Structured Query Language
d. None of the above
.⟶
102. Shortcut for opening the context menu in LibreOffice Base.
a. Ctrl + F10
b. Shift + F10
c. Shift + F9
d. Ctrl + F9
.⟶
103. Shortcut for run query in LibreOffice Base.
a. F5
b. F3
c. F2
d. F8
.⟶
104. Which is the most flexible way to create a query in LibreOffice Base.
a. Design View
b. Wizard
c. SQL View
d. None of the above
.⟶
105. In LibreOffice base query design window is divided in __ parts.
a. Two
b. Four
c. Three
d. One
.⟶
106. In LibreOffice Base which view is used to insert SQL query manually.
a. SQL View
b. Design View
c. Wizard View
d. Datasheet View
.⟶
107. In LibreOffice Base which of the following conditions you can apply in
the Query Wizard to perform the result.
a. is equal to/ is not equal to
b. like/ not like/ is not null
c. is smaller than/ is greater than
d. All of the above
.⟶
108. Which of the following functions is used to find the average of the
numbers in LibreOffice Base design view.
a. average
b. avg
c. total avg
d. None of the above
.⟶
109. Which of the following functions is used to find the sum of numbers in
LibreOffice Base.
a. Total
b. Sum
c. Addition
d. None of the above
.⟶
110. Which of the following functions is used to count total no of records in
the table.
a. Total
b. Count
c. Sum
d. None of the above
.⟶
111. In LibreOffice Base by default Query Name is _.
a. Query 1
b. Query
c. MyQuery
d. None of the above
.⟶
112. After saving the query in LibreOffice Base the query will be seen in the _.
a. Module area
b. Object area
c. Query area
d. All of the above
.⟶
113. The result of the query will be displayed in a _ windows.
a. Same
b. Separate
c. In New database
d. None of the above
.⟶
114. You can apply multiple conditions to design a query in LibreOffice Base.
(True/ False)
.⟶
115. Which of the following relational operators is used to define not equal in
LibreOffice Base.
a. >=
b. Not=
c. <>
d. !=
.⟶
116. What is the purpose of the Group function in LibreOffice Base?
a. Group rows which have the different name
b. Helps to groups for each of the data values in the column of category name.
c. Calculate summaries like sum, average and count for each group within the
data set.
d. Both b) and c)
.⟶
Chapter 12: Forms and Reports
117. The LibreOffice Base provides the _ feature for data entry purposes.
a. Table
b. Form
c. Report
d. None of the above
117.
.⟶
118. Which features are used by the database to retrieve data in a user
friendly, understandable and formatted manner.
a. Table
b. Form
c. Report
d. None of the above
.⟶
119. The Table, Query, Forms and Reports are considered as __ of the
database.
a. Object
b. Function
c. Method
d. None of the above
.⟶
120. The database objects are present in the __ of the LibreOffice Base User
Interface.
a. Database Pane
b. Windows Pane
c. Data Pane
d. None of the above
.⟶
121. Form is also defined as __.
a. Back End Application
b. Front End Application
c. Both a) and b)
d. None of the above
.⟶
122. Which types of field control is used to design a Form in a database.
a. Text Box, Label, heading and names
b. Radio Button, graphics like logos
c. Combo Box, Check Box
d. All of the above
.⟶
123. In LibreOffice Base form can be created using which of the following
ways.
a. Using a wizard
b. Using the design view
c. Both a) and b)
d. None of the above
.⟶
124. In LibreOffice Base the simplest way to create a form is using _.
a. Using wizard
b. Using design view
c. Using Query
d. None of the above
.⟶
125. In LibreOffice Base the field control consists of _ parts.
a. 2
b. 3
c. 4
d. 5
.⟶
126. In LibreOffice Base the field control consists of __.
a. Label
b. Field Value
c. Both a) and b)
d. None of the above
.⟶
127. How many layouts are given in LibreOffice Base using the wizard option.
a. 3
b. 4
c. 5
d. 6
.⟶
128. In LibreOffice Base by default the name of the form is the same as the
name of the _.
a. Form
b. Table
c. Database
d. None of the above
.⟶
129. _ toolbar contains various controls that can be added to the form.
a. Records toolbar
b. Form Control Toolbar
c. Format Toolbar
d. None of the above
.⟶
130. The Form Control toolbar is present on the __ of the Form design
window.
a. Left
b. Right
c. Middle
d. Bottom
.⟶
131. The _ toolbar contains the navigation control buttons and we can
traverse and view the records in the file.
a. Records toolbar
b. Form Control Toolbar
c. Format Toolbar
d. None of the above
.⟶
132. The form modification can be done once it is created, In LibreOffice Base
modification can be changed to the __.
a. Background color
b. Font size
c. Font color of the text or positioning of various controls
d. All of the above
.⟶
133. To change the background color of the form, right click on the form and
select _.
a. Page Style
b. Background Style
c. Database Style
d. None of the above
.⟶
134. The Page Style dialog box will appear when you will click on __.
a. Color tab
b. Area tab
c. Design tab
d. None of the above
.⟶
135. Label text can be changed using which of the following options in
LibreOffice Base.
a. Property
b. Design View
c. Font design
d. All of the above
.⟶
136. A __ is a small piece of text that appears when the mouse cursor is over
a specific control.
a. Tool-design
b. Tool-tip
c. Tool-Font
d. All of the above
.⟶
137. To add titles, headings or subheading in the Form using __.
a. Textbox
b. Combobox
c. Labels
d. Radio Button
.⟶
138. The records that have been extracted using a query are displayed in a
simple row and column format known as __.
a. Query
b. Form
c. Report
d. None of the above
.⟶
139. A layout is used to display the report in the form of _.
a. Landscape
b. Portrait
c. Both a) and b)
d. None of the above
.⟶
140. A default layout selected by the LibreOffice Base is __.
a. Landscape
b. Portrait
c. Both a) and b)
d. None of the above
.⟶
141. By default the type of report is __ in LibreOffice Base.
a. Dynamic
b. Static
c. Both a) and b)
d. None of the above
.⟶
142. What do you mean by Dynamic report in LibreOffice Base.
a. Automatic updation is allowed in the report
b. Automatic updation is not allowed in the report
c. Manually you have to add component in the report
d. None of the above
.⟶
143. If you don’t want automatic updation of the report in LibreOffice Base,
you can select the _ option.
a. Dynamic
b. Static
c. Both a) and b)
d. None of the above
.⟶
144. To make the report more presentable by inserting __.
a. Titles
b. Author name
c. Date of generation of report
d. All of the above
.⟶
145. To insert data and time in Report, you can use __.
a. Insert > Date and Time
b. Edit > Date and Time
c. View > Date and Time
d. None of the above
.⟶
146. We can create a report based on a _.
a. Table
b. Query
c. Both a) and b)
d. None of the above
.⟶
Some Extra MCQ
147. A_________________ database management system is referred to as a
relational model.
a. RDBMS
b. DBMS
c. DB
d. None of the above
147.
.⟶
148. Data can be organized into __.
a. Flat File
b. Relational
c. Both a) and b)
d. None of the above
.⟶
149. Data stored in a single table is known as __.
a. Flat File
b. Relational
c. Both a) and b)
d. None of the above
.⟶
150. Data is stored in multiple tables, which are connected together via a
common field.
a. Flat File
b. Relational
c. Both a) and b)
d. None of the above
.⟶
151. DBMS Stands for __.
a. Database Management System
b. Database Manage System
c. Data Manage System
d. None of the above
.⟶
152. __ are dedicated computers which store database and related
DBMS software.
a. Database Server
b. Decided Server
c. Web Server
d. None of the above
.⟶
153. When the same data stored in multiple table is known as __.
a. Data Redundancy
b. Data Integrity
c. Data Consistency
d. None of the above
.⟶
154. _ prevents creating multiple copies in the database.
a. Data Redundancy
b. Data Integrity
c. Data Consistency
d. None of the above
.⟶
155. __ means that the data is accurate and consistent in the database.
a. Data Redundancy
b. Data Integrity
c. Data Consistency
d. None of the above
.⟶
156. _ prevent multiple mismatching copies of the same data in the database
and only valid data will be added in the database.
a. Data Redundancy
b. Backup and Recovery
c. Data Consistency
d. None of the above
.⟶
158. The relationship between two tables where one table has one record
and another table has many records is known as _.
a. One-to-Many
b. Many-to-Many
c. Many-to-One
d. None of the above
.⟶
159. SQL stands for _.
a. Single Query Language
b. Structured Query Language
c. Semantic Query Language
d. None of the above
.⟶
160. __ are the basic building blocks of a database.
a. Table
b. Query
c. Database
d. None of the above
.⟶
161. _ data type can store 0 or 1 in the database.
a. Boolean
b. TinyInt
c. Smalint
d. BigInt
.⟶
162. In a table, a __ represents a single data item.
a. Row
b. Truple
c. Both a) and b)
d. None of the above
.⟶
163. __ is used to maintain accuracy and consistency of data in a relationship.
a. Referential data
b. Referential Integrity
c. Referential Value
d. None of the above
.⟶
164. What are the different types of relationships in LibreOffice Base, which
are used to make connection between two tables___________.
a. One to One
b. One to Many or Many to One
c. Many to Many
d. All of the above
.⟶
165. A Which of the following command used to define structure in the
database.
a. Data Manipulation Language (DML)
b. Data Definition Language (DDL)
c. Both a) and b)
d. None of the above
.⟶
166. A __ is a language that enables users to access and manipulate data in a
database.
a. Data Manipulation Language (DML)
b. Data Definition Language (DDL)
c. Both a) and b)
d. None of the above
.⟶
167. A __ is a subset of DML that just deals with information retrieval.
a. Query Language
b. Structure Language
c. Both a) and b)
d. None of the above
.⟶
168. To retrieve all the columns in a table the syntax is _.
a. Select % from “Table name”;
b. Select ** from “Table name” ;
c. Select $ from “Table name” ;
d. Select * from “Table name” ;
.⟶
169. The syntax of the update statement is _.
a. Update set where ;
b. Update set where ;
c. Modify set where ;
d. Modify set < value> where ;
.⟶
170. By default, data is arranged in _ order using ORDER BY clause.
a. Ascending
b. Descending
c. Both a) and b)
d. None of the above
.⟶
171. Which of the following use a systematic way for storing data in database.
a. Query
b. Form
c. Table
d. None of the above
.⟶
172. __ will help you to display summarized data from the database.
a. Report
b. Form
c. Table
d. None of the above
173. What does referential integrity in a database ensure?
a. All primary keys are unique across the database.
b. All records in a table must have a value in every column.
c. Every foreign key value must match a primary key in the referenced table or
be null.
d. Data can be freely deleted from any table without constraints.