Tolal:43 Click:
1
2 3
Database Interview Questions And Answers
Page 1
Ques: 1 Explain the difference between a database administrator and a data administrator.
Ans:
Database Administrator: A Person who is responsible for maintening Database and review conntent of Database.Planning, configuration and relating to them other systems for that organization.
Data Administrator: The Data Adminitrator is person who is resposible for:
1. Specification of Organization data
2. Acquisition of Data
3. Maintenance of data management software and the design.
4. Validation of files and data
5. Security of files or databases.
Ques: 2 What is a Database Transactions ?
Ans:
Database transaction is a unit of work in database managment system.Database transaction must follow term ACID(Atomocity, Consistency, Isolation, Durability)..Any transaction started then till it complition,that transaction follow ACID,for successful and no error.
Ques: 3 What is ACID?
Ans:
ACID means atomicity, consistency, isolation and durability.
1. Atomicity:Each transaction is said to be “atomic".Means if any part of transaction fail then whole transaction failed.In a word say "ALL OR NOTHING".The failure of transaction commanaly depend on Hard disk fail,System crash.
2. Consistency:Consistency means only valid data will be written to the database.If any transaction voilate any consistency rule of database the whole transaction is Rollback, means it starts again from beggining.Each state in transaction must be consistent for database.
3. Isolation: If two transactions occures at a time then both are not impact to each other,seperate complition of each transaction. The isolation property does not ensure which transaction will execute first, merely that they will not interfere with each other.If second transaction depend on frist then it will done, and data update after complition of traction.
Durability:Ensures that any transaction committed to the database will not be lost. Durability is ensured through the use of database backups and transaction logs that facilitate the restoration of committed transactions in spite of any subsequent software or hardware failures.
Ques: 4 What is Concurrency?
Ans:
If two transaction occure same time. The system ensure a control,due to that one transaction do not adversely affect the other. This is called concurrency control.
1. Pessimistic concurrency control: System locks prevents users from modifying data in a way that affects other users. After a user performs an action that causes a lock to be applied, other users cannot perform actions that would conflict with the lock until the owner releases it.
2. Optimistic concurrency control: This is called optimistic because it is mainly used in environments where there is low contention for data, and where the cost of occasionally rolling back a transaction outweighs the costs of locking data when read.
Ques: 5 What is a Deadlock?
Ans:
Any database system perform many trasaction,a trasaction run and it uses other utility of system.Another transaction needed this utility, then it goes to waiting state. This problem occure among many trasaction is called Deadlock.
Ques: 6 Define rollback and roll forward ?
Ans:
Rollback: Undoing the changes made by a transaction in terms:
1. Before transaction commits.
2. To cancel any changes to a database during current transaction.
3. Transaction not be consistent.
RollForward: Re-doing the changes made by a transaction in terms
1. After it commits
2. To overwrite the changed value again to ensure consistency.
Ques: 7 what is database?
Ans:
Database is an important constituent for collection and storage of data.Data provided information after processing on them.To managing record and importent data Databases server used.
Ans:
Database is an important constituent for collection and storage of data.Data provided information after processing on them.To managing record and importent data Databases server used.
Ques: 8 Explain about object oriented databases?
Ans:
Object oriented databases are used to store:
1. Much more complex data.
2. Designed to store information related to multimedia.
3. Engineering databases.
4. Spatial Databases.
5. Databases even stored data about software’s repositories.
This type database was adopted in late ninety`s and new features were added.
Ques: 9 Explain about XML databases?
Ans:
XML databases came into existence in 2000. This database lets you organize data irrespective of whether it is organized or not.This data can exported and serialized into the desired format.
Two major classes of XML database exist:
1. XML-enabled
2. Native XML
Ques: 10 Explain about the hierarchical model of database?
Ans:
The word hierarchi means tree form relationship,like a tree with branches.Means Relationship formed like tree structure in a database called hierarchical model.With this database you form relationship among many tables with certain concept.It has a downward link to describe the nesting and they are arranged in a particular order down the same level of the list.
Ques: 11 Explain about Network model?
Ans:
This model provides greater flexibility and easy access to data.This model provide logical relationship among many parent database.But implimenting this model is more difficult due to time consuming and cost. Its flexible because through link easily accesesing of information.
Ques: 12 Explain about relational database?
Ans:
Relational Database:
1. Data represent in form of coloumn and row, coloumn means attribute and row means touples present instance of data.
2. This Database model came into existence with help of mathematical concepts.
3. Using some other concepts like normalization, touple relational calculus.
Ques: 13 Disadvantage of File Processing System or Advantage of Database over File Processing System ?
Ans:
1. Data redundancy and consistency:Not easily in File System but in database possible.
2. Difficalty to accessing data:In database easily done.
3. Data isolation:Database provided but in File System not.
4. Data integrity:Database provided but in File System not.
5. Concurrent access is not possible:Database provided but in File System not.
6. Security Problems:Database provided but in File System not.
Ques: 14 Describe levels of Abstraction in Database?
Ans:
1. Physical Level:Physical level is the lower level of abstraction.Its define how data is stored in database.
2. Logical Level:The next higher level of abstraction, its describe what data be store and each logical operation done at this level, links and concept apply here.
3. View Level:This is the higher level describe only part of entire database.
Ques: 15 What is extension and intension?
Ans:
Extension: It is the number of tuples(row) present in a table at any instance. This is time dependent.
Intension:
It is a constant value that gives the:
1. Name
2. Structure of table
3. The constraints laid on it.
Ques: 16 What is Data Independence in Database System?
Ans:
Data independence means that, the ability to modify the schema definition in one level should not affect the schema definition in the next higher level. The application is independent of the storage structure and access strategy of data.
Two types of Data Independence are:
1. Logical Data Independence: It is more difficult to achieve. Modification in logical level should affect the view level.
2. Physical Data Independence: Modification in physical level should not affect the logical level.
Ques: 17 What is a view in database system and how it is related to data independence?
Ans:
View is a table that does not really exist in its own right, it derived from one or more underlying base table. In other word view is a virtual table. There is no stored file that direct represents view.
Following terms:
- Views can represent a subset of the data contained in a table.
- View perform alogical operations.
- View can join multiple table in a single vertual table.
- Importent feature is, to hide complexity of data.
Now disscuss how view relate data independence, restructuring of base tables is not reflected in views. Thus the view can insulate users from the effects of restructuring and growth in the database. Hence accounts for logical data independence.
Ques: 18 What is E-R Model in Database system?
Ans:
E-R model stands for Entity-Relationship model. This data model is based on real world that consists of basic objects called entities and of relationship among these objects. Entity in database, which existence in real world with number of attributes. In a table attribute know as column. Relationship is a logical thing which relates entities. The E-R diagram shows structure of E-R model.
Ques: 19 What is Object Oriented model in Database system?
Ans:
This model is based on collection of objects. An object is instance variables which store value and bodies of code, that codes are called method. These codes have written to operate the objects. Objects that contain same types of values and the same methods are grouped together into classes. In other words classes are a group of object. This model also follows the some concept related to the OOPs
Ques: 20 What is Weak Entity and Weak Entity set?
Ans:
Entity is dependent on another entity called weak entity. An entity set may not have sufficient attributes to form a primary key is a Weak Entity set.
Goto Page:
1
2 3
Database Objective
Database Objective Questions And Answers
Database Interview Questions And Answers
Database Interview Questions And Answers
R4R,Database Objective, Database Subjective, Database Interview Questions And Answers,Database,Database Interview,Database Questions ,Database Answers