Machine-translated by Google. Questions are authored in English.
Top

Database Management System Questions and Answers

Answer: D

Correct answer: two-phase locking protocol

Cascading rollback happens when one transaction reads data written by another that later aborts. Strict two-phase locking prevents it by holding exclusive locks until commit, and validation-based protocols prevent it by writing only at commit. Plain two-phase locking releases locks as soon as its shrinking phase begins, so uncommitted data can be read and cascading rollback becomes possible.

Please log in or register to report this question.

Answer: D

Correct answer: deadlock detection

A wait-for graph has an edge from each waiting transaction to the one holding the lock it wants; a cycle in that graph means a deadlock, which is then broken by aborting a transaction. Prevention schemes avoid deadlock in advance and need no such graph.

Please log in or register to report this question.

Answer: D

Correct answer: Logical, physical and view

The ANSI/SPARC three-schema architecture has an internal or physical schema, a conceptual or logical schema, and external or view schemas - one per user group. Separating them is what makes data independence possible.

Please log in or register to report this question.

155.

Whenever two independent one-to-many relationships are mixed in the same relation, a __________ arises.

Answer: B

Correct answer: Multi-valued dependency

If one key has two independent one-to-many relationships in the same table, every combination of the two sets of values must be stored, and the two sets are unrelated to each other. That is a multi-valued dependency, and removing it is what fourth normal form is for.

Please log in or register to report this question.

157.

Dependency preservation is not guaranteed in

Answer: A

Correct answer: BCNF

Every relation can be decomposed into 3NF while keeping all its functional dependencies, but a decomposition into BCNF may not be able to preserve them all. That is the one guarantee BCNF gives up in exchange for removing every remaining redundancy.

Please log in or register to report this question.

158.

Which is the best file organization when data is frequently added or deleted from a file?

Answer: B

Correct answer: Direct

With direct, or hashed, organisation a record's position is computed from its key, so an insertion or deletion touches only that position. A sequential file must be rewritten to keep its order, and an index-sequential file must maintain its index as well.

Please log in or register to report this question.

159.

Which of the following constitutes a basic set of operations for manipulating relational data?

Answer: C

Correct answer: Relational algebra

Relational algebra is the basic set of operations for manipulating relations - selection, projection, union, difference, product and join. Relational calculus describes results without operations, and SQL is a language built on top of the algebra.

Please log in or register to report this question.

Loading…
Tags: Database Management System Questions and Answers || Database Management System MCQ Questions and Answers || Database Management System GK Questions and Answers || Database Management System GK MCQ Questions || Database Management System Multiple Choice Questions and Answers || Database Management System GK || GK on Database Management System || Computer Awareness Questions and Answers || Computer Awareness MCQ Questions and Answers || Computer Awareness GK Questions and Answers || GK on Computer Awareness