πŸ—„οΈ

Database Management System MCQs

749+ questions with answers

401

The information about data in a database is called _______

a Metadata
b Hyper data
c Tera data
d None of the mentioned
Medium
View Details β†’
402

A data dictionary is a special file that contains?

a The names of all fields in all files
b The data types of all fields in all files
c The widths of all fields in all files
d All of the mentioned
Medium
View Details β†’
403

The DBMS acts as an interface between what two components of an enterprise-class database system?

a Database application and the database
b Data and the database
c The user and the database application
d Database application and SQL
Medium
View Details β†’
404

A relational database system needs to maintain data about the relations, such as the schema of the relations. This is called

a Metadata
b Catalog
c Log
d Dictionary
Medium
View Details β†’
405

Relational schemas and other metadata about relations are stored in a structure called the ____________

a Metadata
b Catalog
c Log
d Data Dictionary
Medium
View Details β†’
406

___________ is the collection of memory structures and Oracle background processes that operates against an Oracle database.

a Database
b Instance
c Tablespace
d Segment
Medium
View Details β†’
407

A ________ is a logical grouping of database objects, usually to facilitate security, performance, or the availability of database objects such as tables and indexes.

a Tablespace
b Segments
c Extents
d Blocks
Medium
View Details β†’
408

A tablespace is further broken down into ________

a Tablespace
b Segments
c Extents
d Blocks
Medium
View Details β†’
409

__________ is a contiguous group of blocks allocated for use as part of a table, index, and so forth.

a Tablespace
b Segment
c Extent
d Block
Medium
View Details β†’
410

An Oracle __________ is a set of tables and views that are used as a read-only reference about the database.

a Database dictionary
b Dictionary table
c Data dictionary
d Dictionary
Medium
View Details β†’
411

A data dictionary is created when a __________ created.

a Instance
b Segment
c Database
d Dictionary
Medium
View Details β†’
412

An Oracle object type has two parts the _________ and__________

a Instance and body
b Segment and blocks
c Specification and body
d Body and segment
Medium
View Details β†’
413

The _______ is that part of main memory available for storage of copies of disk blocks.

a Buffer
b Catalog
c Storage
d Secondary storage
Medium
View Details β†’
414

A major goal of the database system is to minimize the number of block transfers between the disk and memory. This is achieved by

a Buffer
b Catalog
c Storage
d Secondary storage
Medium
View Details β†’
415

The subsystem responsible for the allocation of buffer space is called the ___________

a Buffer
b Buffer manager
c Storage
d Secondary storage
Medium
View Details β†’
416

In the buffer where there is no space for another block, the block can be inserted using

a Pinned block strategy
b Forced output block
c Buffer replacement strategy
d All of the mentioned
Medium
View Details β†’
417

A block that is not allowed to be written back to disk is said to be ______________

a Pinned
b Forced
c Buffer
d All of the mentioned
Medium
View Details β†’
418

There are situations in which it is necessary to write back the block to disk, even though the buffer space that it occupies is not needed. This write is called the

a Pinned block strategy
b Forced output block
c Buffer replacement strategy
d All of the mentioned
Medium
View Details β†’
419

In case the buffer manager do not write the blocks properly then the buffer manager uses

a Replacement strategy
b Forced strategy
c Crash recovery system
d Both Replacement and Forced strategy
Medium
View Details β†’
420

The technique where the blocks which have been used are replaced is called

a Replacement strategy
b Forced strategy
c Crash recovery system
d Most recently used
Medium
View Details β†’
421

___________________ frees the space occupied by a block as soon as the final tuple of that block has been processed.

a Replacement strategy
b Forced strategy
c Toss immediate strategy
d Most recently used
Medium
View Details β†’
422

In ordered indices the file containing the records is sequentially ordered, a ___________ is an index whose search key also defines the sequential order of the file.

a Clustered index
b Structured index
c Unstructured index
d Nonclustered index
Medium
View Details β†’
423

Indices whose search key specifies an order different from the sequential order of the file are called ___________ indices.

a Nonclustered
b Secondary
c All of the mentioned
d None of the mentioned
Medium
View Details β†’
424

An ____________ consists of a search-key value and pointers to one or more records with that value as their search-key value.

a Index entry
b Index hash
c Index cluster
d Index map
Medium
View Details β†’
425

In a _______ clustering index, the index record contains the search-key value and a pointer to the first data record with that search-key value and the rest of the records will be in the sequential pointers.

a Dense
b Sparse
c Straight
d Continuous
Medium
View Details β†’
426

In a __________ index, an index entry appears for only some of the search-key values.

a Dense
b Sparse
c Straight
d Continuous
Medium
View Details β†’
427

Incase the indices values are larger, index is created for these values of the index. This is called

a Pointed index
b Sequential index
c Multilevel index
d Multiple index
Medium
View Details β†’
428

In B+ tree the node which points to another node is called

a Leaf node
b External node
c Final node
d Internal node
Medium
View Details β†’
429

Insertion of a large number of entries at a time into an index is referred to as __________ of the index.

a Loading
b Bulk insertion
c Bulk loading
d Increase insertion
Medium
View Details β†’
430

While inserting the record into the index, if the search-key value does not appear in the index.

a The system adds a pointer to the new record in the index entry
b The system places the record being inserted after the other records with the same search-key values
c The system inserts an index entry with the search-key value in the index at the appropriate position
d None of the mentioned
Medium
View Details β†’
431

If h is any hashing function and is used to hash n keys in to a table of size m, where n<=m, the expected number of collisions involving a particular key x is :

a Less than 1
b Less than n
c Less than m
d Less than n/2
Medium
View Details β†’
432

A technique for direct search is

a Binary Search
b Linear Search
c Tree Search
d Hashing
Medium
View Details β†’
433

The searching technique that takes O (1) time to find a data is

a Linear Search
b Binary Search
c Hashing
d Tree Search
Medium
View Details β†’
434

The goal of hashing is to produce a search that takes

a O(1) time
b O(n2 )time
c O(log n ) time
d O(n log n ) time
Medium
View Details β†’
435

Consider a hash table of size seven, with starting index zero, and a hash function (3x + 4)mod7. Assuming the hash table is initially empty, which of the following is the contents of the table when the sequence 1, 3, 8, 10 is inserted into the table using closed hashing? Note that β€˜_’ denotes an empty location in the table.

a 8, _, _, _, _, _, 10
b 1, 8, 10, _, _, _, 3
c 1, _, _, _, _, _,3
d 1, 10, 8, _, _, _, 3
Medium
View Details β†’
436

A hash table can store a maximum of 10 records, currently there are records in location 1, 3,4,7,8,9,10. The probability of a new record going into location 2, with hash functions resolving collisions by linear probing is

a 0.1
b 0.6
c 0.2
d 0.5
Medium
View Details β†’
437

What is the best definition of a collision in a hash table?

a Two entries are identical except for their keys
b Two entries with different data have the exact same key
c Two entries with different keys have the same exact hash value
d Two entries with the exact same key have different hash values
Medium
View Details β†’
438

Which of the following scenarios leads to linear running time for a random search hit in a linear-probing hash table?

a All keys hash to same index
b All keys hash to different indices
c All keys hash to an even-numbered index
d All keys hash to different even-numbered indices
Medium
View Details β†’
439

Breadth First Search is used in

a Binary trees
b Stacks
c Graphs
d All of the mentioned
Medium
View Details β†’
440

A(n) _________ can be used to preserve the integrity of a document or a message.

a Message digest
b Message summary
c Encrypted message
d None of the mentioned
Medium
View Details β†’
441

A hash function must meet ________ criteria.

a Two
b Three
c Four
d None of the mentioned
Medium
View Details β†’
442

What is the main limitation of Hierarchical Databases?

a Limited capacity (unable to hold much data)
b Limited flexibility in accessing data
c Overhead associated with maintaining indexes
d The performance of the database is poor
Medium
View Details β†’
443

The property (or set of properties) that uniquely defines each row in a table is called the:

a Identifier
b Index
c Primary key
d Symmetric key
Medium
View Details β†’
444

The separation of the data definition from the program is known as:

a Data dictionary
b Data independence
c Data integrity
d Referential integrity
Medium
View Details β†’
445

In the client / server model, the database:

a Is downloaded to the client upon request
b Is shared by both the client and server
c Resides on the client side
d Resides on the server side
Medium
View Details β†’
446

The database design that consists of multiple tables that are linked together through matching data stored in each table is called

a Hierarchical database
b Network database
c Object oriented database
d Relational database
Medium
View Details β†’
447

The association role defines:

a How tables are related in the database
b The relationship between the class diagram and the tables in the database
c The tables that each attribute is contained
d Which attribute is the table’s primary key
Medium
View Details β†’
448

The purpose of an N-Ary association is:

a To capture a parent-child relationship
b To deal with one to many relationships
c To deal with relationships that involve more than two tables
d To represent an inheritance relationship
Medium
View Details β†’
449

Bitmap indices are a specialized type of index designed for easy querying on ___________

a Bit values
b Binary digits
c Multiple keys
d Single keys
Medium
View Details β†’
450

A _______ on the attribute A of relation r consists of one bitmap for each value that A can take.

a Bitmap index
b Bitmap
c Index
d Array
Medium
View Details β†’