Showing posts with label DBMS. Show all posts
Showing posts with label DBMS. Show all posts

Wednesday, 26 February 2014

DATABASE MANAGEMENT SYSTEM:SOLVED MODEL TEST PAPER

1) What is meant by functional dependency.
Functional dependency is the relationship between attributes such that the value of an attribute is determined by value of another attribute.
Example: Regno->Name (Functional Dependency)
That is, 'Name' is dependent on the attribute 'Regno'.
In this case, Regno is a primary key.

2) What is meant by transitive dependency.
Transitive dependency occurs when a non key attribute value is functionally dependent on another non key attribute.
Example: Empid->Jobtype
               Jobtype->Hourpay
In this case, Jobtype is dependent on Empid.
In the second case, Hourpay is dependent on Jobtype, which is a non key attribute.
Therefore, when a non key attribute is dependent on another non key attribute, it is called as transitive dependency.
Note: In Database Management System, dependencies are not required. So we go for NORMALIZATION    
to reduce dependencies.

3) The most desired level of normalization in DBMS  is
3NF  (3rd Normal Form)
Tip: For an effective DBMS, 3NF is most desirable and higher levels of 
normalization is not advisable.'
3NF means you got to reduce Transitive dependencies. 

4) What is the difference between primary key, composite keys.
Primary key: Primary key is used to uniquely identify each row of a table.
Tip: Primary key should be UNIQUE and NOT NULL.
Composite keys: If a table has more than one primary key in a table, then it is called as Composite keys.

5) What are anomalies. what are its types. How to solve them.
Anomalies are errors that generally occur due to bad database design.
There are three types of anomalies namely:
1. Insertion anomalies
2. Deletion anomalies
3. Update anomalies
We can solve anomalies by using normalization techniques.

6) What do you mean by a flat file database.
A flat file database is the one in which there are no programs.
It also does not possess cross file feature.
The main advantage of flat file database is that it provides management of User interfaces.

7) What are the types of data abstraction.
There are three types of data abstraction namely:
 Physical level abstraction
Logical level abstraction
 View level abstraction
Physical level abstraction: It is the lowest level of abstraction that describes How data are stored. 
Logical level abstraction: The middle level of abstraction that shows What data are stored and what is the relationship that exists among the data. 
View level: View level abstraction is the highest level of abstraction which shows only part of the entire database.
Shortcut trick: Physical level: How
                       Logical level: What
                       View level: Only part

8) What is data modeling.
Data modeling is the process of optimizing the way in which information is stored and used within an organization.
Data modeling provides a strong platform for development of systems design and system documentation.

9) What is denormalization in DBMS.
Denormalization is the reverse process of normalization.
Denormalization is the process of controlled introduction of redundancy(repetition) in the database.
The main aim of denormalization is to increase and improve query performance.

10) What is the difference between a tuple and an attribute.
A tuple denotes a row.
An attribute means a column.

DBMS MCQS

What is DBMS?
It is a collection of programs that helps the user to create and maintain a database.


 What is database system?
 It is a combination of database and DBMS software.


Merits of DBMS:
Control redundancy.
Restrict unauthorized access
Allow multiple user interfaces
Enforce integrity constraints
Provide backup and recovery.


What are the levels of  Levels of abstraction?
 Physical level: The lowest level abstraction that describes how data is stored.
Logical level: Middle level of abstraction Which describes what data are stored and what is the relationship among the data
View level: Highest level of abstraction that describes only part of the database.


Two types of integrity rules
 Entity Integrity: Primary key cannot be NULL
Referential Integrity: Foreign key can either be NULL or should be a primary key of another relation.


What is the difference between physical data independence and logical data independence?
 Physical data independence: Modification in physical level should not affect logical level
Logical data independence: Modification in logical level should affect view level.


What is SDL?
 SDL means Storage Definition Language
It specifies internal schema and also mapping between two schemas.


What is a DML compiler?
 It helps to translate DML statements in the query language into low level instruction that is understood by the query evaluation engine.


What is relational algebra?
It is a procedural query language.
It is a set of operations that take one or two relations as input and produce a new relation.


 What is transparent DBMS?

 It is the DBMS that keeps its physical structure hidden from user.

If a relation is in 2NF, then

Every non-prime attribute is fully functionally dependent on each relation key.

The data type created by data abstraction process is called as

Class

An entity instance is a single occurence of 

An entity type

A relation which is in BCNF is always in which NF

3NF

2-phase locking protocol suffers from

Deadlocks

Time stamp protocol suffers from

Frequent aborts, cascading rollbacks

In generalization, the difference between members of an entity is

Maximized.

Some of the commonly used Aggregate functions are

SUM, AVG, COUNT

A locked file can be 
* Modified by users with correct password

* Used to hide sensitive information.

A recursive foreign key 

References its own relation.