0

Database Management System

Description: SQL Commands Syntax , ER diagrams
Number of Questions: 25
Created by:
Tags: DBMS RDBMS Normalization . ER diagrams Databases
Attempted 0/25 Correct 0 Score 0

What can be called as 'Data about Data'?

  1. Data bank

  2. Folder or Directory

  3. Meta Data

  4. None of these


Correct Option: C
Explanation:

Meta Data is termed as data about data.

Which of the following types of statements is responsible for specifying database retrieval and updates?

  1. DDL

  2. DCL

  3. DSL

  4. DML


Correct Option: D
Explanation:

DML means Data Manipulation Language, is used to specify database updates and retrievals like INSERT, SELECT, UPDATE and more.

Insertion of the data into the B-Tree may cause nodes to

  1. merge

  2. divide tree into two

  3. split

  4. none of these


Correct Option: C
Explanation:

Sometimes due to the overflow, it causes split in B-tree.

View is also called

  1. distinct table

  2. hierarchy table

  3. virtual table

  4. all of above


Correct Option: C
Explanation:

We can also call a view a virtual table because view is a personalized and customized collection of relation formed by using view. View secures the original table and provides us an user requirement table view.

_____ syntax is restricted to use with GROUP BY clause.

  1. Where

  2. Having

  3. Into

  4. All of these


Correct Option: B
Explanation:

Having is used along with GROUP BY clause to define a condition on the group.

Which of the following is not a property of transaction?

  1. Isolation

  2. Conspiracy

  3. Atomicity

  4. Durability


Correct Option: B
Explanation:

Conspiracy is not an (ACID) property of transaction. The valid properties of transaction are represented in the form of ACID, i.e.

A- Atomicity C- Consistency I - Isolation and D - Durability
 

Which of the following is a valid record-based data model?

  1. Entity relationship model

  2. Object oriented model

  3. Relational model

  4. None of these


Correct Option: C
Explanation:

Relational model has inter-related records. In this model, records have relationships.

Which of the following does relational algebra inspire?

  1. Non-procedural query language

  2. Data definition language

  3. Procedural query language

  4. None of these


Correct Option: C
Explanation:

Relational Algebra is a procedural query language because it describes the procedure to obtain the output and result.

Modification of data is avoided by ________ lock.

  1. serialization

  2. read

  3. both (1) and (2)

  4. none of these


Correct Option: B
Explanation:

Read only does not allow insert , alter and delete once the transaction is completed, so no modification is made.

How can we explain the query with an example?

  1. OBE

  2. EXE

  3. Both (1) and (2)

  4. None of these


Correct Option: A
Explanation:

OBE is called as Oracle By Example or Query By Example in which query is explained step by step.

Deadlock is also known as

  1. Undirected graph

  2. Complete binary tree

  3. AVL tree

  4. None of these


Correct Option: D
Explanation:

The correct answer is Directed Graph, because directed graph favours concurrency control and recovery schema.

In which of the following situations is a particular transaction never compete its task?

  1. Starvation

  2. Join dependency

  3. Weak entity set

  4. None of these


Correct Option: A
Explanation:

Starvation in database is called as poor constructed database, as well as a transaction which never completes its given task. 

Which of following lock modes is used to maintain the serializability?

  1. Shared

  2. Exclusive

  3. Update

  4. Schema


Correct Option: B
Explanation:

It is used for data modification purpose, therefore it is used to maintain the serializability.

What is the meaning of oval shape in E-R diagram?

  1. Weak entity

  2. Entity

  3. Attribute

  4. Relationship


Correct Option: C
Explanation:

Oval represents attribute.

The sparse index means

  1. to avoid overflow

  2. an index entry is not created for every value

  3. the entry contains the search key and a pointer in the first data record with that search key value

  4. None of these


Correct Option: B
Explanation:

In this, index entry is not created for every value. Each index entry contains a search-key and a pointer to the first record with that search-key value.

Which of the following terms confirm(s) deadlock in a graph?

  1. Loop

  2. Cycle in wait for graph

  3. Both (1) and (2)

  4. None of these


Correct Option: B
Explanation:

There should be wait condition with a cycle. The existence of cycle in wait for graph has a cycle.

Which of the following processes is done during the recovery of transaction failure?

  1. Spooling

  2. Concurrency control

  3. Shadow paging

  4. None of these


Correct Option: C
Explanation:

 The recovery from transaction failure is done by shadow paging.

What is the meaning of diamond in ER diagram?

  1. Relationship

  2. Attribute

  3. Entity

  4. None of these


Correct Option: A
Explanation:

Diamond shows relationships.

Which of the following is a valid TCL statement?

  1. Commit

  2. Rollback

  3. Savepoint

  4. All of these


Correct Option: D
Explanation:

Savepoint, commit, rollback, set transaction are TCL statements meaning Transaction Control statements which are used to manage the changes made by DML statements.  Savepoint , commit , rollback , set transaction are TCL statements meaning Transaction Control statements which are used to manage the changes made by DML statements. finally 5 option is correct.

Which of the following is/are the phase(s) of a transaction?

  1. Shadow paging

  2. Growing

  3. Shrinking

  4. Both (2) and (3)


Correct Option: D
Explanation:

Transaction has two phase locking - Growing phase and Shrinking phase. So, this is correct.

We can restrict the number of possible scheduling by

  1. paging

  2. transaction control

  3. concurrency control

  4. all of these


Correct Option: C
Explanation:

With concurrency control, we can restrict the number of possible scheduling.

Which of the following commands is used to permanently delete the record?

  1. Drop

  2. Truncate

  3. Pack

  4. All of these


Correct Option: C
Explanation:

After deletion, the record is permanently deleted using pack command.

Which of the following is a definition of Dense index?

  1. The entry contains the search key and a pointer in the first data record with that search key value.

  2. Adding other extra overheads

  3. This index entry is not created for every value.

  4. None of these


Correct Option: A
Explanation:

Dense index is an entry which contains the search key and a pointer in the first data record with that search key value.

Which of the following operations automatically eliminates duplicates?

  1. Reunion

  2. Intersection

  3. Union

  4. None of these


Correct Option: C
Explanation:

Union operation eliminates all duplicates from tables just like in set theory UNION.

Which of the following commands or statements is used to recover from dead lock situation?

  1. Commit

  2. Set transaction

  3. Rollback

  4. All of these


Correct Option: C
Explanation:

Rollback is a TCL statement which is used to resolve the problems of Dead lock and recovery of transaction.

- Hide questions