0

Database Management System

Description: SQL , RDBMS concepts , Oracle queries
Number of Questions: 25
Created by:
Tags: SQL Oracle Databases
Attempted 0/25 Correct 0 Score 0

Which of the following is not a view level of database?

  1. Conceptual view

  2. Internal view

  3. External view

  4. None of the above


Correct Option: D
Explanation:

All of the above are view levels of database.

Which of the following is/are the properties of master list of an indexed file?

  1. It has a number assigned to each record.

  2. It contains only a list of keys and record numbers

  3. It is sorted in ascending order.

  4. Both (2) and (3)


Correct Option: D
Explanation:

In an indexed file, there is a list of keys of records number which are maintained in the master list . So, options 2 and 3 are correct.

Which of the following schemas has been established from top to bottom relationship among items in a database?

  1. Hierarchy schema

  2. Network schema

  3. Relational schema

  4. All of the above


Correct Option: A
Explanation:

Top to bottom approach is used in hierarchial schema because it basically is based on Parent and Child Relationship. The parent and child relationship type has basically 1 : N relationship.

How is recovery of the transaction done if deadlock occurs?

  1. By rollback of transaction

  2. By locking up the data

  3. Projection

  4. None of the above


Correct Option: A
Explanation:

There are few methods to get recovery of documents from deadlock. These are commit, rollback or abort.

The syntax of the query can be verified by

  1. rollback

  2. database administrator

  3. parser

  4. none of the above


Correct Option: C
Explanation:

A parser is an SQL or Oracle translator who verfies the syntax of the SQL and query.

Referential integrity constraint in relational database is specified with the help of

  1. primary key

  2. secondary key

  3. foreign key

  4. none of the above


Correct Option: C
Explanation:

It links two relations or transactions.

Which syntax is used for duplicate removal?

  1. Select * from table

  2. Select distinct from table

  3. Select column 1and column 2 from table

  4. Select column 1 from table


Correct Option: B
Explanation:

This is a correct query which shows only distinct data and no duplicate values.

A collection of information stored in a database at a particular moment is called

  1. index

  2. instance

  3. view

  4. none of the above


Correct Option: B
Explanation:

Instance is a collection of the information stored in a database at a particular moment.

Which file contains information about transaction before it is committed?

  1. BLOB

  2. Updated.log

  3. LogFileMaxRolls

  4. None of the above


Correct Option: B
Explanation:

Updated.log is a table containing information about transaction.

Which of the following parts has concurrency control?

  1. Command processing

  2. Projection

  3. Subschema

  4. None of the above


Correct Option: A
Explanation:

Command processing is the part of concurency control and command line program to generate multiple no responses to SQL multi-process concurrency control of test.

The QUEL query language belongs to

  1. Oracle

  2. Ingress

  3. Mysql

  4. None of the above


Correct Option: B
Explanation:

Quel was the original query language for the Ingres dbms. It is now called SQL.

What do we call a directed graph which represents the deadlock?

  1. Deadlock graph

  2. Cyclic graph

  3. Wait for graph

  4. None of the above


Correct Option: C
Explanation:

Wait for graph is a directed graph used for deadlock detection in operating systems and relational database systems.

What does multilevel indexing use?

  1. It uses a binary search tree.

  2. It uses binary search.

  3. Both (1) and (2)

  4. None of the above


Correct Option: A
Explanation:

In binary search tree, it goes according to the root element. If item to be searched is less than root, then it seaches to the left of root otherwise to the right.

Why do we use hashing function in a hierarchial database?

  1. To locate collisions

  2. To locate root

  3. To locate duplicate records

  4. To locate primary key


Correct Option: B
Explanation:

Hash value points to the element exactly using index.

Which term do we use if DBMS comes between the users and database?

  1. Refree

  2. Barrier

  3. Gateway

  4. Interface


Correct Option: D
Explanation:

Every software has a interface to interact with clients or user, similarly in between user and database, interface is provided in application.

Duplicate data is also referred to as ________ .

  1. storage data

  2. control data

  3. redundant data

  4. accurate data


Correct Option: C
Explanation:

Dulpicate data in database is called as data redundancy in database. In order to avoid redundancy we use the technique of normalization.

What are the preventive measures to be taken if we have begun an update operation to avoid dead lock?

  1. Lock the database

  2. Change the password

  3. Lock all the rows or tables

  4. Lock one row


Correct Option: A
Explanation:

By locking the database it makes it unsharable and nobody can share it.

Which of the following is not a database object?

  1. Index

  2. Cursor

  3. Sequence

  4. Trigger


Correct Option: D
Explanation:

Triggers are SQL statements that are stored in the database catalog. Once triggers are activated by database events such as UPDATE, DELETE or INSERT, the triggers will execute either before or after the event that initiates them.

Which of the following does not ignore NULLS values in its result?

  1. COUNT

  2. COUNT(*)

  3. MIN

  4. MAX


Correct Option: A
Explanation:

COUNT returns only the number of rows in which the expression is NOT NULL.

How can we process a data query statement in QUEL?

  1. By select statement

  2. By get statement

  3. By retrieve statement

  4. None of the above


Correct Option: A
Explanation:

Select statement is used to fetch data from table and database or to process a data query.  

What are the additional features included in EER modelling?

  1. Generalization

  2. Specialization

  3. Categorization

  4. All of the above


Correct Option: D
Explanation:

EER is an Enhanced Entity Relationship. EER model includes all the modelling constructs of the ER model. In ER model, all the types of superclass and sub class relationship are expressed but ISA (IS - A) relationship is denoted by triangle. EER model additional specialization and generalization relationship notations are for defining the superclass and subclass.

How can we evaluate the query execution strategy?

  1. By using cursors

  2. By using query tree

  3. By using singleton select

  4. None of the above


Correct Option: B
Explanation:

Query tree is an internal representation of SQL statements where the single parts that  are built stored separately.

ER diagram was discovered by

  1. Mark Zuckerberg

  2. Dries Buytaert

  3. Prof. Peter Chen

  4. Lawrence Ellison and Bruce Scott


Correct Option: C
Explanation:

Prof. Peter Chen is the founder and orginator of the ER model.

Which expression is used to fetch all column's data in a table?

  1. %

  2. +

  3. ?

  4. *


Correct Option: D
Explanation:

The * is used to specify all the columns from the table in an SQL statement.

How can we create ROW level TRIGGER from following clauses used in creating trigger?

  1. For level

  2. For row level

  3. For each row

  4. None of the above


Correct Option: C
Explanation:

 Syntax for creating a ROW LEVEL TRIGGERcode - CREATE OR REPLACE TRIGGER<trigger name><BETORE|AFTER><ACTION>ON <table name>FOR EACH ROW (THIS IS CORERCT CLAUSE USED IN)

- Hide questions