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

Managing Multiuser Databases Questions and Answers

31.

Locks placed by the DBMS are called ________ .

Answer: A

Correct answer: implicit locks

Locks placed by the DBMS on its own initiative, to enforce the isolation level in force, are implicit. An explicit lock is one the application requests by command. Most locking in practice is implicit, which is the point of declaring an isolation level: the developer states what must be prevented and leaves the DBMS to arrange it.

Please log in or register to report this question.

32.

Money is defined in Oracle with the Currency data type.

Answer: B

Correct answer: False

Oracle has no Currency datatype. Money is held in a NUMBER column with an explicit precision and scale, such as NUMBER(9,2), which stores the value exactly rather than in binary floating point - and exactness is what matters for money. The Currency type belongs to other products.

Please log in or register to report this question.

33.

An ACID transaction is one that is atomic, consistent isolated, and durable.

Answer: A

Correct answer: True

The four properties are atomic, consistent, isolated and durable. Atomic means all or nothing; consistent means the database moves from one valid state to another; isolated means concurrent transactions do not see each other’s intermediate states; and durable means committed changes survive failure.

Please log in or register to report this question.

34.

A point of synchronization between the database and the transaction log is generally referred to as a stop point.

Answer: B

Correct answer: False

A point of synchronisation between the database and its log is a checkpoint. At a checkpoint the buffers are written out and the log records the fact, so recovery need only go back to the last checkpoint rather than to the beginning of the log - which is what keeps recovery time bounded.

Please log in or register to report this question.

35.

Which of the following disallows both dirty reads and nonrepeatable reads, but allows phantom reads?

Answer: C

Correct answer: Repeatable read

Repeatable read holds read locks to the end of the transaction, so a row once read cannot be changed by another transaction and dirty and nonrepeatable reads are both prevented. It does not lock rows that do not yet exist, so another transaction may still insert one and a phantom read remains possible.

Please log in or register to report this question.

36.

Locks placed by the DBMS are explicit locks.

Answer: B

Correct answer: False

Locks placed by the DBMS itself are implicit; explicit locks are those the application requests by command. Getting the pair the right way round matters, because most locking in a well-written application is implicit - the developer declares an isolation level and the DBMS places whatever locks are needed to honour it.

Please log in or register to report this question.

37.

The goal of database security is to ensure that only authorized users can perform authorized activities at authorized times.

Answer: A

Correct answer: True

All three qualifications are needed. Authorised users, so that identity is established; authorised activities, so that a user may read what they may not change; and authorised times, since access appropriate during a shift may not be appropriate outside it. Authentication establishes the first and authorisation the other two.

Please log in or register to report this question.

38.

Which of the following refers to a cursor type where changes of any type and from any source are visible?

Answer: D

Correct answer: Dynamic

A dynamic cursor shows everything: changes, insertions and deletions from any source, made at any time. It is the most current view and correspondingly the most expensive, since the recordset must be re-evaluated as it is traversed. A static cursor is the opposite extreme, showing a snapshot fixed when the cursor was opened.

Please log in or register to report this question.

39.

Resource locking is a process to prevent multiple applications from obtaining copies of the same record when the record is about to be changed.

Answer: A

Correct answer: True

Resource locking is exactly this: preventing two applications from working on their own copies of the same record and each writing back a result computed from a value the other has already superseded. Without it the second write silently overwrites the first, which is the lost update problem.

Please log in or register to report this question.

40.

An exclusive lock locks the item from change but not from read.

Answer: B

Correct answer: False

That describes a shared lock, which permits others to read but not to change. An exclusive lock excludes access of every kind, reading included, which is what a writing transaction requires. Several shared locks may be held on one item at once; an exclusive lock may not coexist with any other.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Managing Multiuser Databases Questions and Answers || Managing Multiuser Databases MCQ Questions and Answers || Managing Multiuser Databases GK Questions and Answers || Managing Multiuser Databases GK MCQ Questions || Managing Multiuser Databases Multiple Choice Questions and Answers || Managing Multiuser Databases GK || GK on Managing Multiuser Databases || Database Questions and Answers || Database MCQ Questions and Answers || Database GK Questions and Answers || GK on Database