🗄️

Database Management System MCQs

749+ questions with answers

701

____________ using a log record sets the data item specified in the log record to the old value.

a Deferred-modification
b Late-modification
c Immediate-modification
d Undo
Medium
View Details →
702

In the __________ phase, the system replays updates of all transactions by scanning the log forward from the last checkpoint.

a Repeating
b Redo
c Replay
d Undo
Medium
View Details →
703

The actions which are played in the order while recording it is called ______________ history.

a Repeating
b Redo
c Replay
d Undo
Medium
View Details →
704

A special redo-only log record < Ti, Xj, V1> is written to the log, where V1 is the value being restored to data item Xj during the rollback. These log records are sometimes called

a Log records
b Records
c Compensation log records
d Compensation redo records
Medium
View Details →
705

In order to reduce the overhead in retrieving the records from the storage space we use

a Logs
b Log buffer
c Medieval space
d Lower records
Medium
View Details →
706

The order of log records in the stable storage ____________ as the order in which they were written to the log buffer.

a Must be exactly the same
b Can be different
c Is opposite
d Can be partially same
Medium
View Details →
707

Before a block of data in main memory can be output to the database, all log records pertaining to data in that block must have been output to stable storage. This is

a Read-write logging
b Read-ahead logging
c Write-ahead logging
d None of the mentioned
Medium
View Details →
708

Writing the buffered log to __________ is sometimes referred to as a log force.

a Memory
b Backup
c Redo memory
d Disk
Medium
View Details →
709

The _______________ policy, allows a transaction to commit even if it has modified some blocks that have not yet been written back to disk.

a Force
b No-force
c Steal
d No-steal
Medium
View Details →
710

______________ policy allows multiple updates to accumulate on a block before it is output to stable storage, which can reduce the number of output operations greatly for frequently updated blocks.

a Force
b No-force
c Steal
d No-steal
Medium
View Details →
711

Locks on buffer blocks are unrelated to locks used for concurrency-control of transactions, and releasing them in a non-two-phase manner does not have any implications on transaction serializability. This is

a Latches
b Swap Space
c Dirty Block
d None of the mentioned
Medium
View Details →
712

The __________________ contains a list of blocks that have been updated in the database buffer.

a Latches
b Swap Space
c Dirty Block
d None of the mentioned
Medium
View Details →
713

The operating system reserves space on disk for storing virtual-memory pages that are not currently in main memory; this space is called

a Latches
b Swap Space
c Dirty Block
d None of the mentioned
Medium
View Details →
714

The silicon chips used for data processing are called

a RAM chips
b ROM chips
c Micro processors
d PROM chips
Medium
View Details →
715

Which of the following is used for manufacturing chips?

a Control bus
b Control unit
c Parity unit
d Semiconductor
Medium
View Details →
716

What was the name of the first commercially available microprocessor chip?

a Intel 308
b Intel 33
c Intel 4004
d Motorola 639
Medium
View Details →
717

The magnetic storage chip used to provide non-volatile direct access storage of data and that have no moving parts are known as

a Magnetic core memory
b Magnetic tape memory
c Magnetic disk memory
d Magnetic bubble memory
Medium
View Details →
718

The ALU of a computer normally contains a number of high speed storage element called

a Semiconductor memory
b Registers
c Hard disks
d Magnetic disk
Medium
View Details →
719

Which of the following is used only for data entry and storage, and never for processing?

a Mouse
b Dumb terminal
c Micro computer
d Dedicated data entry system
Medium
View Details →
720

A dump of the database contents is also referred to as an _____________ dump.

a Archival
b Fuzzy
c SQL
d All of the mentioned
Medium
View Details →
721

________ dump, writes out SQL DDL statements and SQL insert statements to a file, which can then be reexecuted to re-create the database.

a Archival
b Fuzzy
c SQL
d All of the mentioned
Medium
View Details →
722

_________ dump schemes have been developed that allow transactions to be active while the dump is in progress.

a Archival
b Fuzzy
c SQL
d All of the mentioned
Medium
View Details →
723

ARIES uses a ___________ to identify log records, and stores it in database pages.

a Log sequence number
b Log number
c Lock number
d Sequence
Medium
View Details →
724

ARIES supports ___________ operations, which are physical in that the affected page is physically identified, but can be logical within the page.

a Physiological redo
b Physiological undo
c Logical redo
d Logical undo
Medium
View Details →
725

______________ is used to minimize unnecessary redos during recovery.

a Dirty page table
b Page table
c Dirty redo
d All of the mentioned
Medium
View Details →
726

__________ scheme that records only information about dirty pages and associated information and does not even require of writing dirty pages to disk.

a Fuzzy logic
b Checkpoints
c Fuzzy-checkpoint
d Logical checkpoint
Medium
View Details →
727

Whenever an update operation occurs on a page, the operation stores the LSN of its log record in the _______ field of the page.

a LSN
b ReadLSN
c PageLSN
d RedoLSN
Medium
View Details →
728

There are special redo-only log records generated during transaction rollback, called _________ in ARIES.

a Compensation log records
b Read log records
c Page log records
d Redo log records
Medium
View Details →
729

___________ determines which transactions to undo, which pages were dirty at the time of the crash, and the LSN from which the redo pass should start.

a Analysis pass
b Redo pass
c Undo pass
d None of the mentioned
Medium
View Details →
730

__________ starts from a position determined during analysis, and performs a redo, repeating history, to bring the database to a state it was in before the crash.

a Analysis pass
b Redo pass
c Undo pass
d None of the mentioned
Medium
View Details →
731

______________ rolls back all transactions that were incomplete at the time of crash.

a Analysis pass
b Redo pass
c Undo pass
d None of the mentioned
Medium
View Details →
732

Which lock should be obtained to prevent a concurrent transaction from executing a conflicting read, insert or delete operation on the same key value.

a Higher-level lock
b Lower-level lock
c Read only lock
d Read write
Medium
View Details →
733

Once the lower-level lock is released, the operation cannot be undone by using the old values of updated data items, and must instead be undone by executing a compensating operation; such an operation is called

a Logical operation
b Redo operation
c Logical undo operation
d Undo operation
Medium
View Details →
734

Which of the following is used for undo operations alone?

a Logical logging
b Physical logging
c Physical log records
d Physical logging and Physical log records
Medium
View Details →
735

Redo operations are performed exclusively using

a Logical logging
b Physical logging
c Physical log records
d Both Physical logging and Physical log records
Medium
View Details →
736

To perform logical redo or undo, the database state on disk must be operation ___________ that is, it should not have partial effects of any operation.

a Persistent
b Resistant
c Consistent
d None of the mentioned
Medium
View Details →
737

Immediate database modification technique uses

a Both undo and redo
b Undo but no redo
c Redo but no undo
d Neither undo nor redo
Medium
View Details →
738

Shadow paging has

a no redo
b no undo
c redo but no undo
d neither redo nor undo
Medium
View Details →
739

For correct behaviour during recovery, undo and redo operation must be

a Commutative
b Associative
c Idempotent
d Distributive
Medium
View Details →
740

If ___________ are not obtained in undo operation it will cause problem in undo-phase.

a Higher-level lock
b Lower-level lock
c Read only lock
d Read write
Medium
View Details →
741

The remote backup site is sometimes also called the

a Primary Site
b Secondary Site
c Tertiary Site
d None of the mentioned
Medium
View Details →
742

Remote backup system must be _________ with the primary site.

a Synchronised
b Separated
c Connected
d Detached but related
Medium
View Details →
743

The backup is taken by

a Erasing all previous records
b Entering the new records
c Sending all log records from primary site to the remote backup site
d Sending selected records from primary site to the remote backup site
Medium
View Details →
744

When the __________ the backup site takes over processing and becomes the primary.

a Secondary fails
b Backup recovers
c Primary fails
d None of the mentioned
Medium
View Details →
745

The simplest way of transferring control is for the old primary to receive __________ from the old backup site.

a Undo logs
b Redo Logs
c Primary Logs
d All of the mentioned
Medium
View Details →
746

The time to process the remote backup can be reduced by

a Flags
b Breakpoints
c Redo points
d Checkpoints
Medium
View Details →
747

A transaction commits as soon as its commit log record is written to stable storage at the primary site. This is

a One Safe
b Two Safe
c Two-very Safe
d Very Safe
Medium
View Details →
748

A transaction commits as soon as its commit log record is written to stable storage at the primary and the backup site. This is

a One Safe
b Two Safe
c Two-very Safe
d Very Safe
Medium
View Details →
749

If only the primary is active, the transaction is allowed to commit as soon as its commit log record is written to stable storage at the primary site. This is

a One Safe
b Two Safe
c Two-very Safe
d Very Safe
Medium
View Details →