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

Database Management System Questions and Answers

71.

In a multi-user database, if two users wish to update the same record at the same time, they are prevented from doing so by

Answer: D

Correct answer: record lock

A record lock is taken by the first transaction to reach the row, and the second must wait until it is released, so the two updates are serialised instead of overwriting each other. Passwords control who may connect, not what happens when two permitted users collide.

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.

73.

Between DRAM and magnetic disk storage another form of memory, called ______ memory is becoming common because it is non volatile.
 

Answer: B

Correct answer: Flash

Flash memory keeps its contents without power, unlike DRAM, and is far faster than a magnetic disk, so it fills the gap between the two in the storage hierarchy.

Please log in or register to report this question.

74.

____specifies a search condition for a group or an aggregate.

Answer: B

Correct answer: HAVING Clause

HAVING applies its condition to groups after aggregation, which is why it can test an aggregate such as \( \text{SUM}(amount)>1000 \). WHERE is applied to individual rows before grouping and cannot see an aggregate at all.

Please log in or register to report this question.

75.

In a B-tree the number of keys in each node is ______ than the number of its children.

Answer: A

Correct answer: one less

In a B-tree the keys in a node separate the ranges covered by its children, so n keys divide the range into \( n+1 \) intervals and the node has \( n+1 \) children. The number of keys is therefore one less than the number of children.

Please log in or register to report this question.

76.

Grant and revoke are _____ statements.

Answer: B

Correct answer: DCL

GRANT and REVOKE control who may do what, so they belong to the Data Control Language. DDL defines structures, DML manipulates data, and TCL manages transactions.

Please log in or register to report this question.

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.

78.

Data items grouped together for storage purposes are called a

Answer: A

Correct answer: record

A record is a group of related data items stored together as a unit - the fields of one row taken as a whole. A string is a single value and a list is an arrangement, not a storage unit.

Please log in or register to report this question.

Answer: C

Correct answer: Data dictionary and transaction log

The data dictionary is consulted for the description of every object referred to, and the transaction log is written for every change so that recovery is possible. Both are in use continuously while the system runs.

Please log in or register to report this question.

80.

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…

Other Subjects

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