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

Database Management System Questions and Answers

92.

Immediate database modification technique uses

Answer: A

Correct answer: Both undo and redo

With immediate modification a transaction's writes reach the database before it commits, so an uncommitted transaction's changes must be undone after a crash, and a committed transaction's changes that had not yet reached disk must be redone. Deferred modification needs redo only, since nothing is written before commit.

Please log in or register to report this question.

Answer: B

Correct answer: Select * from R cross join S.

Listing two tables in the FROM clause with a comma and no join condition produces every combination of their rows - the Cartesian product, which is what CROSS JOIN means. A natural join would match on the common columns, which is a different result.

Please log in or register to report this question.

94.

Which of the following is not a consequence of concurrent operations?

Answer: B

Correct answer: Update anomaly.

Lost updates, unrepeatable reads and dirty reads all arise from transactions running at the same time. An update anomaly is a consequence of poor normalisation - the same fact stored twice - and would occur even with one user.

Please log in or register to report this question.

95.

As per equivalence rules for query transformation, selection operation distributes over

Answer: D

Correct answer: All of the above.

Selection can be pushed through any of the three set operations, since deciding whether a tuple satisfies a condition does not depend on which relation it came from:

\[ \sigma_\theta(R \cup S) = \sigma_\theta(R) \cup \sigma_\theta(S) \]

and the same holds for intersection and difference. Doing the selection first is what makes such transformations worth applying.

Please log in or register to report this question.

97.

When an E-R diagram is mapped to tables, the representation is redundant for

Answer: B

Correct answer: weak relationship sets

A weak entity is identified by its owner, so the relationship connecting the two carries no information beyond what the weak entity's own table already holds through the borrowed key. Giving that relationship a table of its own would therefore be redundant.

Please log in or register to report this question.

99.

The default level of consistency in SQL is

Answer: D

Correct answer: serializable

The SQL standard's default isolation level is serializable, the strictest, in which concurrent execution must be equivalent to running the transactions one after another. Individual products often default to something weaker for performance, but the standard's default is this.

Please log in or register to report this question.

100.

If a transaction T has obtained an exclusive lock on item Q, then T can

Answer: C

Correct answer: both read and write Q

An exclusive lock gives the holder complete access - it may both read and write the item - and excludes every other transaction. A shared lock permits reading only, but allows other readers at the same time.

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