🗄️

Database Management System MCQs

749+ questions with answers

601

Which is refers to a stalemate situation due to which no further progress is possible as computer await response of each other:

a Concurrency
b Deadlock
c Backup
d Recovery
Medium
View Details →
602

Which is a duplicate copy of a file program that is stored on a different storage media than the original location:

a Concurrency
b Deadlock
c Backup
d Recovery
Medium
View Details →
603

Which is the duplication of computer operations and routine backups to combat any unforeseen problems:

a Concurrency
b Deadlock
c Backup
d Recovery
Medium
View Details →
604

Optimization that is basically related to the rewriter module is termed as__________

a Semantic query optimization
b Global query optimization
c All of the Mentioned
d None of the Mentioned
Medium
View Details →
605

Optimization basically related to the Rewrite module is termed as_______

a Semantic query optimization
b Global query optimization
c All of the Mentioned
d None of the Mentioned
Medium
View Details →
606

Database security helps organizations to protect data from _____

a Internal users
b External users
c Non-external users
d Non internal users
Medium
View Details →
607

How many types of recovery control techniques:

a 2
b 3
c 4
d 5
Medium
View Details →
608

Which are types of recovery control techniques:

a Deferred update
b Immediate update
c All of the Mentioned
d None of the Mentioned
Medium
View Details →
609

Which server can join the indexes when only multiple indexes combined can cover the query:

a SQL
b DBMS
c RDBMS
d All of the mentioned
Medium
View Details →
610

In concurrency control policy the lock is obtained on

a Entire database
b A particular transaction alone
c All the new elements
d All of the mentioned
Medium
View Details →
611

A concurrency-control policy such as this one leads to ______ performance since it forces transactions to wait for preceding transactions to finish before they can start.

a Good
b Average
c Poor
d Unstable
Medium
View Details →
612

__________ are used to ensure that transactions access each data item in order of the transactions’ ____ if their accesses conflict.

a Zone
b Relay
c Line
d Timestamps
Medium
View Details →
613

In which scenario would you use the ROLLUP operator for expression or columns within a GROUP BY clause?

a To find the groups forming the subtotal in a row
b To create group-wise grand totals for the groups specified within a GROUP BY clause
c To create a grouping for expressions or columns specified within a GROUP BY clause in one direction, from right to left fo
d To create a grouping for expressions or columns specified within a GROUP BY clause in all possible directions, which is cross-t
Medium
View Details →
614

Which statement is true regarding external tables?

a The default REJECT LIMIT for external tables is UNLIMITED
b The data and metadata for an external table are stored outside the database
c ORACLE_LOADER and ORACLE_DATAPUMP have exactly the same functionality when used with an external table
d The CREATE TABLE AS SELECT statement can be used to unload data into regular table in the database from an external
Medium
View Details →
615

A non-correlated subquery can be defined as ______

a A set of sequential queries, all of which must always return a single value
b A set of sequential queries, all of which must return values from the same table
c A SELECT statement that can be embedded in a clause of another SELECT statement only
d A set of one or more sequential queries in which generally the result of the inner query is used as the search value in the o
Medium
View Details →
616

Evaluate the following SQL statements in the given order: DROP TABLE dept; CREATE TABLE dept (deptno NUMBER(3) PRIMARY KEY, deptname VARCHAR2(10)); DROP TABLE dept; FLASHBACK TABLE dept TO BEFORE DROP;

a It recovers only the first DEPT table
b It recovers only the second DEPT table
c It does not recover any of the tables because FLASHBACK is not possible in this case
d It recovers both the tables but the names would be changed to the ones assigned in the RECYCLEBIN
Medium
View Details →
617

Which of the following is a property of transactions?

a Atomicity
b Concurrency
c Isolation
d All of the mentioned
Medium
View Details →
618

SNAPSHOT is used for (DBA)

a Synonym
b Tablespace
c System server
d Dynamic data replication
Medium
View Details →
619

Isolation of the transactions is ensured by

a Transaction management
b Application programmer
c Concurrency control
d Recovery management
Medium
View Details →
620

Constraint checking can be disabled in existing _______________ and _____________ constraints so that any data you modify or add to the table is not checked against the constraint.

a CHECK, FOREIGN KEY
b DELETE, FOREIGN KEY
c CHECK, PRIMARY KEY
d PRIMARY KEY, FOREIGN KEY
Medium
View Details →
621

Problems occurs if we don’t implement a proper locking strategy

a Dirty reads
b Phantom reads
c Lost updates
d Unrepeatable reads
Medium
View Details →
622

Which of the following fixed database roles can add or remove user IDs?

a db_accessadmin
b db_securityadmin
c db_setupadmin
d db_sysadmin
Medium
View Details →
623

Which of the following statements is/are not true for SQL profiler?

a Enables you to monitor events
b Check if rows are being inserted properly
c Check the performance of a stored procedure
d ALL of the mentioned
Medium
View Details →
624

Which of the following is the original purpose of SQL?

a To specify the syntax and semantics of SQL data definition language
b To specify the syntax and semantics of SQL manipulation language
c To define the data structures
d All of the mentioned
Medium
View Details →
625

SQL can be used to:

a Create database structures only
b Query database data only
c Modify database data only
d All of the mentioned
Medium
View Details →
626

In order to maintain transactional integrity and database consistency, what technology does a DBMS deploy?

a Triggers
b Pointers
c Locks
d Cursors
Medium
View Details →
627

A lock that allows concurrent transactions to access different rows of the same table is known as a

a Database-level lock
b Table-level lock
c Page-level lock
d Row-level lock
Medium
View Details →
628

Which of the following are introduced to reduce the overheads caused by the log-based recovery?

a Checkpoints
b Indices
c Deadlocks
d Locks
Medium
View Details →
629

Which of the following protocols ensures conflict serializability and safety from deadlocks?

a Two-phase locking protocol
b Time-stamp ordering protocol
c Graph based protocol
d None of the mentioned
Medium
View Details →
630

Which of the following is the block that is not permitted to be written back to the disk?

a Dead code
b Read only
c Pinned
d Zapped
Medium
View Details →
631

If transaction Ti gets an explicit lock on the file Fc in exclusive mode, then it has an ­­­­­­__________ on all the records belonging to that file.

a Explicit lock in exclusive mode
b Implicit lock in shared mode
c Explicit lock in shared mode
d Implicit lock in exclusive mode
Medium
View Details →
632

All lock information is managed by a __________ which is responsible for assigning and policing the locks used by the transactions.

a Scheduler
b DBMS
c Lock manager
d Locking agent
Medium
View Details →
633

The ____ lock allows concurrent transactions to access the same row as long as they require the use of different fields within that row.

a Table-level
b Page-level
c Row-level
d Field-level
Medium
View Details →
634

Which of the following is a procedure for acquiring the necessary locks for a transaction where all necessary locks are acquired before any are released?

a Record controller
b Exclusive lock
c Authorization rule
d Two phase lock
Medium
View Details →
635

A system is in a ______ state if there exists a set of transactions such that every transaction in the set is waiting for another transaction in the set.

a Idle
b Waiting
c Deadlock
d Ready
Medium
View Details →
636

The deadlock state can be changed back to stable state by using _____________ statement.

a Commit
b Rollback
c Savepoint
d Deadlock
Medium
View Details →
637

What are the ways of dealing with deadlock?

a Deadlock prevention
b Deadlock recovery
c Deadlock detection
d All of the mentioned
Medium
View Details →
638

When transaction Ti requests a data item currently held by Tj, Ti is allowed to wait only if it has a timestamp smaller than that of Tj (that is, Ti is older than Tj). Otherwise, Ti is rolled back (dies). This is

a Wait-die
b Wait-wound
c Wound-wait
d Wait
Medium
View Details →
639

When transaction Ti requests a data item currently held by Tj, Ti is allowed to wait only if it has a timestamp larger than that of Tj (that is, Ti is younger than Tj ). Otherwise, Tj is rolled back (Tj is wounded by Ti). This is

a Wait-die
b Wait-wound
c Wound-wait
d Wait
Medium
View Details →
640

The situation where the lock waits only for a specified amount of time for another lock to be released is

a Lock timeout
b Wait-wound
c Timeout
d Wait
Medium
View Details →
641

A deadlock exists in the system if and only if the wait-for graph contains a ___________

a Cycle
b Direction
c Bi-direction
d Rotation
Medium
View Details →
642

Selecting the victim to be rollbacked to the previous state is determined by the minimum cost. The factors determining cost of rollback is

a How long the transaction has computed, and how much longer the transaction will compute before it completes its designated
b How many data items the transaction has used
c How many more data items the transaction needs for it to complete
d All of the mentioned
Medium
View Details →
643

__________ rollback requires the system to maintain additional information about the state of all the running transactions.

a Total
b Partial
c Time
d Commit
Medium
View Details →
644

In a granularity hierarchy the highest level represents the

a Entire database
b Area
c File
d Record
Medium
View Details →
645

In a database the file is contained in ________

a Entire database
b Two area
c One area
d more than one area
Medium
View Details →
646

If a node is locked in an intention mode, explicit locking is done at a lower level of the tree. This is called

a Intention lock modes
b Explicit lock
c Implicit lock
d Exclusive lock
Medium
View Details →
647

If a node is locked in __________ explicit locking is being done at a lower level of the tree, but with only shared-mode locks.

a Intention lock modes
b Intention-shared-exclusive mode
c Intention-exclusive (IX) mode
d Intention-shared (IS) mode
Medium
View Details →
648

If a node is locked in ____________ then explicit locking is being done at a lower level, with exclusive-mode or shared-mode locks.

a Intention lock modes
b Intention-shared-exclusive mode
c Intention-exclusive (IX) mode
d Intention-shared (IS) mode
Medium
View Details →
649

If a node is locked in ______________ the subtree rooted by that node is locked explicitly in shared mode, and that explicit locking is being done at a lower level with exclusive-mode locks.

a Intention lock modes
b shared and intention-exclusive (SIX) mode
c Intention-exclusive (IX) mode
d Intention-shared (IS) mode
Medium
View Details →
650

The _____________ ensures that any conflicting read and write operations are executed in timestamp order.

a Timestamp-ordering protocol
b Timestamp protocol
c W-timestamp
d R-timestamp
Medium
View Details →