DATABASE Short Questions With Answers
DATABASE Short Questions With Answers
1. What is database?
A database is a collection of information that is organized. So that it can easily be accessed, managed, and updated.
2. What is DBMS?
DBMS stands for Database Management System. It is a collection of programs that enables user to create and maintain
a database.
5. What is normalization?
It is a process of analysing the given relation schemas based on their Functional Dependencies (FDs) and primary key
to achieve the properties
(1) Minimizing redundancy
(2) Minimizing insertion, deletion and update anomalies.
9. What is an Entity?
An entity is a thing or object of importance about which data must be captured.
Page | 2
DATABASE Short Questions with Answers Talha Shahab
Intension -It is a constant value that gives the name, structure of table and the constraints laid on it.
Aggregation - A feature of the entity relationship model that allows a relationship set to participate in another
relationship set. This is indicated on an ER diagram by drawing a dashed box around the aggregation.
Page | 3
DATABASE Short Questions with Answers Talha Shahab
The pessimistic approach involves locking and the optimistic approach involves versioning.
41. Describe the difference between homogeneous and heterogeneous distributed database?
A homogenous database is one that uses the same DBMS at each node. A heterogeneous database is one that may
have a different DBMS at each node.
43. Explain the difference between two and three-tier architectures? Three-tier architecture includes a
client and two server layers.
The application code is stored on the application server and the database is stored on the database server. A two-tier
architecture includes a client and one server layer. The database is stored on the database server.
Logical level: The next higher level of abstraction, describes what data are stored in database and what relationship
among those data.
View level: The highest level of abstraction describes only part of entire database. 51. What is Data Independence?
Data independence means that the application is independent of the storage structure and access strategy of data.
One-to-one
One-to-many
Many-to-many
61. What are the primitive operations common to all record management System?
Addition, deletion and modification.
62. Explain the differences between structured data and unstructured data.
Structured data are facts concerning objects and events. The most important structured data are numeric, character,
and dates.
Structured data are stored in tabular form. Unstructured data are multimedia data such as documents, photographs,
maps, images, sound, and video clips. Unstructured data are most commonly found on Web servers and Web-enabled
databases.
65. Explain the difference between an exclusive lock and a shared lock?
An exclusive lock prohibits other users from reading the locked resource; a shared lock allows other users to read the
locked resource, but they cannot update it.
Page | 5
DATABASE Short Questions with Answers Talha Shahab
66. Explain the "paradigm mismatch" between SQL and application programming languages.
SQL statements return a set of rows, while an application program works on one row at a time. To resolve this
mismatch the results of SQL statements are processed as pseudofiles, using a cursor or pointer to specify which row
is being processed.
70. What is Enterprise Resource Planning (ERP), and what kind of a database is used in an ERP application?
Enterprise Resource Planning (ERP) is an information system used in manufacturing companies and includes sales,
inventory, production planning, purchasing and other business functions. An ERP system typically uses a multiuser
database.
The network model can be much more flexible than the hierarchical model since each parent can have multiple
children but each child can also have multiple parents. This model supports one-to-one, one-to-many, and many-to-
many relationships.
76. Explain what needs to happen to convert a relation to third normal form.
First you must verify that a relation is in both first normal form and second normal form. If the relation is not, you
must convert into second normal form. After a relation is in second normal form, you must remove all transitive
dependencies.
Page | 6
DATABASE Short Questions with Answers Talha Shahab
79. What is deadlock? How can it be avoided? How can it be resolved once it occurs?
Deadlock occurs when two transactions are each waiting on a resource that the other transaction holds. Deadlock can
be prevented by requiring transactions to acquire all locks at the same time; once it occurs, the only way to cure it is
to abort one of the transactions and back out of partially completed work.
Retroactive Update: The updates that are applied to database after it becomes effective in real world.
Simultaneous Update: The updates that are applied to database at the same time when it becomes effective in real
world.
Page | 7
DATABASE Short Questions with Answers Talha Shahab
Page | 8