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

Database Management System Questions and Answers

Answer: A

Correct answer: no redo

Shadow paging keeps the old page table until the transaction commits, and commits by switching to the new one atomically. So an aborted transaction is undone simply by discarding the new pages, and a committed one is already complete on disk - there is nothing to redo.

Please log in or register to report this question.

102.

If the closure of an attribute set is the entire relation then the attribute set is a

Answer: A

Correct answer: superkey

If the closure of an attribute set determines every attribute of the relation, that set identifies each tuple uniquely, which is the definition of a superkey. It is a candidate key only if no proper subset of it also determines the whole relation.

Please log in or register to report this question.

103.

DROP is a statement in SQL.

Answer: C

Correct answer: DDL

DROP removes a table, view or index - a change to the structure of the database - so it belongs to the Data Definition Language, alongside CREATE and ALTER.

Please log in or register to report this question.

104.

If two relations R and S are joined, then the non matching tuples of both R and S are ignored in

Answer: D

Correct answer: inner join

An inner join returns only the pairs of rows that match, discarding unmatched rows from both sides. The outer joins exist precisely to keep them: left keeps the unmatched rows of R, right those of S, and full both.

Please log in or register to report this question.

105.

The keyword to eliminate duplicate rows from the query result in SQL is

Answer: C

Correct answer: DISTINCT

SELECT DISTINCT removes duplicate rows from the result. UNIQUE is a constraint declared on a column when the table is defined; it prevents duplicates being stored rather than filtering them out of a query.

Please log in or register to report this question.

Answer: C

Correct answer: No partial FDs exist.

Second normal form requires that every non-key attribute depend on the whole of the primary key, so a dependency on only part of a composite key - a partial functional dependency - is what 2NF eliminates. Transitive dependencies are left to 3NF.

Please log in or register to report this question.

107.

Which one is the correct statement? Logical data independence provides the following without changing application programs: (i) Changes in access methods. (ii) Adding new entities in the database. (iii) Splitting an existing record into two or more records. (iv) Changing the storage structure of the database.

Answer: D

Correct answer: (ii) and (iii)

Logical data independence protects programs from changes to the logical structure: adding an entity or splitting a record leaves existing programs working, because they still see the fields they asked for. Changing access methods or the storage structure is a change at the physical level, and immunity to those is physical data independence.

Please log in or register to report this question.

108.

In an E-R, Y is the dominant entity and X is a subordinate entity. Then which of the following is incorrect :

Answer: C

Correct answer: Operationally, if X is deleted, so is Y.

X is the subordinate, so it depends on Y and not the other way round: deleting the dominant entity Y removes the subordinate X, but deleting X leaves Y untouched. The keyed statement reverses that dependence.

Please log in or register to report this question.

110.

Which of the following aggregate functions does not ignore nulls in its results?

Answer: B

Correct answer: COUNT (*)

Every aggregate ignores nulls, because a null is not a value to be counted or summed. COUNT(*) is the exception: it counts rows rather than values, so a row consisting entirely of nulls is still counted.

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