Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

UNIT – 3: DATABASE MANAGEMENT SYSTEM

QUESTION BANK WITH ANSWERS

KINDLY NOTE- The answers for application/competency-based questions have not been given. They
have to be done by the student as per his/her own discretion

Give one word for/ Fill in the blanks:


1. A software package that can be used for creating and managing databases. DATABASE MANAGEMENT SYSTEM
2. A unique value that identifies a row in a table. PRIMARY KEY
3. File extension for databases created using LibreOffice.Org Base. .odb
4. Command for Retrieval of information from the database. SELECT
5. Command for Insertion of new information into the database. INSERT
6. Command for Deletion of information in the database. DELETE
7. Command for Modification of information in the database. UPDATE
8. Command for table creation in the database. CREATE
9. Language that enables users to access and manipulate data in a database. Data Manipulation Language
(DML)
10. Language the works on the structure of the table. Data Definition Language (DDL)
11. Special characters that can stand in for unknown characters in a text value. WILDCARDS
12. Clause of Select statement helps to display specific data. WHERE

PREPARED BY MS. NEHA PRAJAPATI


PREPARED BY MS. NEHA PRAJAPATI
PREPARED BY MS. NEHA PRAJAPATI
PREPARED BY MS. NEHA PRAJAPATI
PREPARED BY MS. NEHA PRAJAPATI
PREPARED BY MS. NEHA PRAJAPATI
PREPARED BY MS. NEHA PRAJAPATI
PREPARED BY MS. NEHA PRAJAPATI
PREPARED BY MS. NEHA PRAJAPATI
PREPARED BY MS. NEHA PRAJAPATI
Answer the following Questions:

1. How is data organized in a RDBMS?


ANS. A relational database stores data in tables. Tables are organized into columns, and each
column stores one type of data (integer, real number, character strings, date, …). The data for a single
“instance” of a table is stored as a row.

2. State the relationship and difference between a primary and foreign key?
ANS. A primary key acts as a unique identifier for each record meaning it uniquely identifies each
row/record in a table. "A foreign key" is a field in one table that relates the tables together.
The primary key attributes cannot have NULL values however; a foreign key can have a NULL
value.

3. In how many ways tables can be created in Base? Name them


ANS. Three ways- create table in design view, use wizard to create table, create table using SQL
command

4. Why are data types used in DBMS /RDBMS?


ANS. Datatypes are used to identify which type of data (value) we are going to store in the database.
Fields themselves can be of different types depending on the data they contain. Data types in
OpenOffice base are broadly classified into five categories listed below.
PREPARED BY MS. NEHA PRAJAPATI
1) Numeric Types
2) Alphanumeric Types
3) Binary Types
4) Date time
5) Other Variable types

5. List datatypes available in Numeric Datatype?

6. List datatypes available in Alphanumeric Datatype?

7. Differentiate between Tuples and Attributes of a table.


ANS. Every table is broken up into smaller entities called fields/ Attributes. Each field contains only
one type of information.
EXAMPLE- The fields in the CUSTOMERS table consist of ID, NAME, AGE, ADDRESS and
SALARY.
One row of data that contains values for each field. A collection of fields data makes one record/
Tuple.
A record is also called as a row of data is each individual entry that exists in a table.
EXAMPLE-

8. Name different Binary data types.


ANS.

PREPARED BY MS. NEHA PRAJAPATI


9. List any three file formats that can be managed using OpenOffice.OrgBase?
ANS. Spreadsheet, MS Access, MySQL

10. How many types of relationships can be created in Base? Explain each of the them.
ANS. There are three types of relationships which can be created in tables:
1. ONE to ONE
2. ONE to MANY OR MANY to ONE
3. MANY to MANY
1. ONE TO ONE RELATIONSHIP- In this relationship, both the tables must have primary key
columns.
2. ONE TO MANY RELATIONSHIP- In this relationship, one of the tables must have primary key
column.
It signifies that one column of primary key table is associated with all the columns of associated table.
3. MANY TO MANY RELATIONSHIP- In this relationship, no table has the primary key column. It
signifies that all the columns of primary key table are associated with all the columns of associated
table.

11. What do you mean by Sorting? In how many ways it can be done?
ANS. Sorting means to arrange the data systematically in a particular order. It can be done in either
ascending order or descending order.

12. Explain Referential Integrity.


ANS. Referential integrity is used to maintain accuracy and consistency of data in a relationship. In
Base, data can be linked between two or more tables with the help of primary key and foreign key
constraints.
Referential integrity helps to avoid:
• Adding records to a related table if there is no associated record available in the primary key table.
• Changing values in a primary if any dependent records are present in associated table(s).
• Deleting records from a primary key table if there are any matching related records available in
associated table(s).

13. Name DML commands.


Ans. SELECT, INSERT, DELETE, UPDATE

14. What is the purpose of using queries?


Ans. Query is used to collect specific information from the pool of data. It helps us to join information
from different tables and filter that information. Queries are a way of searching for and compiling data
from one or more tables.

15. Differentiate between Where and Order by clause of SQL statements.


Ans. WHERE clause of Select statement helps to display specific data whereas ORDER BY sorts the
result-set either in ascending or in descending order.

16. Why there is a need to create Forms?


PREPARED BY MS. NEHA PRAJAPATI
ANS. There is a need to create Forms because forms provide the user a systematic way of storing
information into the database. A form is an interface in a user specified layout that lets users to view,
enter, and change data directly in database objects such as tables.

17. What is the purpose of creating Reports?


ANS. A report helps to display the data in a summarized manner. It is used to generate the overall work
outcome in a clear format. You can create reports in the database.

18. What are the prerequisites to create a Form and Reports?


ANS. A table must exist on which form and report has to be created.

19. Differentiate between Forms and Reports.


ANS.

20. In how many ways Forms and Reports can be created in a database?
ANS. Two ways- create form/ report in design view
- use wizard to create form/report

3.

PREPARED BY MS. NEHA PRAJAPATI


PREPARED BY MS. NEHA PRAJAPATI
PREPARED BY MS. NEHA PRAJAPATI

You might also like