DBMS Question Bank
DBMS Question Bank
RELATIONAL DATABASES
PART-A
3. Write the characteristics that distinguish the database approach with the file-based
approach. (creating) (APR/MAY 2015)
- Organized/Related
- Shared
- Permanent or Persistence
- Validity/integrity/Correctness
- Security
- Consistency
- Non-redundancy
- Easily Accessible
- Independence
- Recoverable
- Flexible to change
13. Define the terms i) Entity set ii) Relationship set (remembering)(APR/MAY 2019)
Entity set: The set of all entities of the same type is termed as an entity set.
Relationship set : The set of all relationships of the same type is termed as a relationship set.
15. What are stored and derived attributes? (understand) (NOV/DEC 2011)
Stored attributes: The attributes stored in a data base are called stored attributes.
Derived attributes: The attributes that are derived from the stored attributes are called derived
attributes.
19. Give example for one to one and one to many relationships.(remember) (APRIL / MAY
2013)
One to One : College – Principle
One to Many : Manage – Employee
20. List four significant differences between a file-processing system and a DBMS. (analyzing)
( MAY/JUNE 2012)(NOV/DEC 2016)
A database coordinates the physical and logical access to the data; a file-processing system only
coordinates physical access to the data
o A DBMS reduces the amount of data duplication
o A DBMS is designed to allow flexibility in what queries give access to the data, where a
file-processing system only allows pre-determined access to data (by specific compiled programs)
o A DBMS is designed to coordinate and permit multiple users to access data at the same
time. A file processing system is much more restrictive in simultaneous data access
6 Department of CSBS
UNIT – I
RELATIONAL DATABASES
Part A
[Link] are the different types of Data Models? (remembering) (MAY/JUNE 2012/2019)
Relational Model
Hierarchical Model
Network Model
Object Oriented Model
A Database model defines the logical design of data. The model describes the relationships between
different parts of the data. In history of database design, three models have been in use.
Hierarchical Model
Network Model
Relational Model
A database administrator (short form DBA) is a person responsible for the installation,
configuration, upgrade, administration, monitoring and maintenance of databases in an
[Link] role includes the development and design of database strategies, system
monitoring and improving database performance and capacity, and planning for future expansion
requirements. They may also plan, co-ordinate and implement security measures to safeguard the
database
[Link] are aggregate functions? And list the aggregate functions supported by SQL?
(remembering)
Aggregate functions are functions that take a collection of values as input and return a single
value.
Aggregate functions supported by SQL are
Average: AVG
Minimum: MIN
Maximum: MAX
Total: SUM
Count: COUNT
5) float(n) 6) date.
[Link] the six fundamental operations of relational algebra and their symbols.
(Remembering)
(NOV/DEC 2012)
SELECT (symbol: ∑ (sigma))
PROJECT (symbol: Π (pi))
RENAME (symbol: (rho))
UNION ( U )
INTERSECTION ( ∩ )
DIFFERENCE (or MINUS, – )
[Link] two reasons why null values might be introduced into the database. (NOV/DEC 12)
(analyzing)
Nulls may be introduced into the database because the actual value is either unknown or does not
exist. For example, an employee whose address has changed and whose new address is not yet
known should be retained with a null address. If employee tuples have a composite attribute
dependents, and a particular employee has no dependents, then that tuple’s dependents attribute
should be given a null value.
9 Department of CSBS
[Link] a circumstance in which you would choose to use embedded SQL rather than
using SQL alone. (analyzing) (MAY/JUNE 2012)
Writing queries in SQL is typically much easier than coding the same queries in a general-purpose
programming language. However not all kinds of queries can be written in [Link] no declarative
actions such as printing a report, interacting with a user, or sending the results of a query to a
graphical user interface cannot be done from within SQL. Under circumstances in which we want
the best of both worlds, we can choose embedded SQL or dynamic SQL, rather than using SQL
alone or using only a general-purpose programming language. Embedded SQL has the advantage of
programs being less complicated since it avoids the clutter of the ODBC or JDBC function calls,
but requires a specialized preprocessor.
In static SQL how database will be accessed is In dynamic SQL, how database will be
predetermined in the embedded SQL statement. accessed is determined at run time.
SQL statements are run at compile time SQL statements are run at execution time
PART-B
1. Explain all types of data models (16) (evaluating) [NOV/DEC 2014] (April/May 2008/2019)
2. Define relational algebra. With suitable example. (16) (remembering) (Nov 2008 &
MAY/JUNE 2012)
3. Write about the structure of database system architecture with block diagram. (view the
structure)(APRIL / MAY 2013)(creating)
4. With help of a neat block diagram explain architecture of a database management system.(8)
(understand)
5. What are the advantages of having a centralized control of data? Illustrate your answer with
suitable example.(8) .(NOV/DEC 2015) (remembering)
6. Briefly explain about Database system architecture.(May/June 2016) (understand)
7. Briefly explain about Views of data. (May/June 2016) (understand)
[Link] select,project and Cartesian product operations in relational algebra with an
example.(Nov/Dec 2016) (understand)
[Link] between foreign key constraints and referential integrity constrainsts with suitable
example. (understand)(Nov/Dec 2017)
10. State and explain the command DDL, DML, DCL with suitable example.(remember)
[Link] about the static and dynamic SQL in detail.(Understand)(APR/MAY 2019)
PART –C
1. Justify the need of embedded SQL. Consider the relation student (studentno, name, mark and
grade). Write embedded dynamic SQL statements in C language to retrieve all the students’ records
whose mark is more than 90.(create)
2.i)Explain the overall architecture of the database system in detail.(Remember)
ii)List the operations of relational algebra and purpose of each with example.(Apr/May 2017)
[Link] the need of embedded [Link] the relation student(Reg No, Name,mark and
grade).Wwrite embedded dynamic SQL program in C language to retrieve all the students’records
whose mark is more than 90.(Analyse)(Apr/May 2017)
4. Write the DDL,[Link] commands for the students database. Which contains student
details:name,id,DOB,branch,[Link] details: course name,course id,stud id,faculty
name,id,marks.(Remember)(Nov/Dec 2017)
5. What are the various components of database systems? Explain in detail. (remembering)
ASSIGNMENT QUESTIONS
1. Consider the relation schema given in below fig. Design and draw an ER diagram that capture the
information of this schema.(Analyse)(Apr/May 2017)
Employee(empno,name,office,age)
Books(isbn,title,authors,publisher)
Loan(empno,isbn,date)
Write the following queries in relational algebra and SQL.
(i) Find the names of employees who have borrowed a book published by McGraw-Hill.
(ii) Find the names of employees who have borrowed all books published by McGraw-Hill.
2. Consider a student registration database comprising of the below given table schema.
(Remember)
Student file: Student number, student name, Address, telephone
Course file: course no, description, hours, professor number.
Professor file: professor number, name, office.
Registration file:student number, course number, date. Consider a suitable example of tuple/
records for the above mentioned tables and write DML statement to answer for the queries listed
below.
Degree(degcode,name,subject)
Candidate(seat no,degcode,name,semester,month,year,result)
Marks(seatno, degcode,name,semester,month,year,papcode,result)
Degcode-degcode,Name-name of the degree([Link])
Subject – subject of the course [Link],Pap code –paper code eg.A1.
Solve the following queries using SQL
(1) Write a SELECT statement to display all the degree codes which are there in the candidate table
but not present in degree table in the order of degcode. (4)
(2) Write a SELECT statement to display the name of all the candidates who have got less than 40
marks in exactly 2 subjects. (4)
(3) Write SELECT statement to display the name, subject and number of candidates for all degrees
in which there are less than 5 candidates.(4)
(4) Write a SELECT statement to display the name of all the candidates who have got highest total
marks in Ms.,(Maths).
UNIT II
DATABASE DESIGN
PART-A
12. Show that, if a relational database is in BCNF, then it is also in 3NF. (understanding)
(NOV/DEC 2012)
This is because in many cases, there exists no database schema that is both BCNF and dependence
preserving. If one prefers to have a dependence preserving database schema, then one have to
choose a normal form, such as 3NF, that is weaker than BCNF.
13. Why are certain functional dependencies called as trivial functional dependencies?
(remembering) (MAY/JUNE 2012)
Because the right hand side is a subset of the left hand side. Therefore it is obvious that the right
hand side is dependent on the left hand side. More unclear book definition: An FD is trivial if it is
satisfied by all instances of a relation.
15. Why 4NF is more desirable than BCNF? (remembering) (NOV/DEC 2014)
4NF is more desirable than BCNF because it reduces the repetition of information. If we consider a
BCNF schema not in 4NF, we observe that decomposition into 4NF does not lose information
provided that a lossless join decomposition is used, yet redundancy is reduced.
18. Is it possible for several attributes to have the same domain? Illustrate your answer with
suitable examples.(analyzing) (NOV/DEC 2015)
Yes , It is possible for several attributes to have the same domain. The attributes indicate different
roles, for the domain. For example, in the STUDENT relation, the same domain
Local_phone_numbers plays the role of Home_phone referring to the home phone of a student and
the role of office phone, referring to the office phone of the student.
[Link] is weak entity?Give example.(remembering) (Nov/Dec 2016)
Weak entity is an entity that depends on another entity. Weak entity doen't have key attribute of their
own. Double rectangle represents weak entity.
LOAN INSTALMENT
1. What is meant by Relational calculus? Query examples for tuple and domain relational
Calculus? (remember) [Nov/Dec 2011 & April 2012]
2. Explain E-R Model concept and extended E-R model. (evaluating)
3. A car rental company maintains a database for all vehicles in its current fleet. For all vehicles it
includes the vehicle identification number license number, manufacturer, model, date of purchase
and color. Special data are included for certain types of vehicles. (understand)
Trucks:Cargo capacity
Sports Cars: horsepower, renter age requirement
Vans: number of passengers
Off-road vehicles: ground clearance, drivetrain (four-or two-wheel drive)
Construct an ER model for the car rental company database. (NOV/DEC 2015)
4. Distinguish between lossless-join decomposition and dependency reserving
decomposition(April/May2017)(Understanding)
[Link] and explain the architecture of DBMS. Draw the ER diagram for banking
systems.(Home loan applications)(Remember)(Nov/Dec 2017)
[Link] is normalization? Explain in detail about all Normal forms.(Remember)(APR/MAY 2019)
[Link] discuss about the functional dependency concepts.(Understand)(APR/MAY 2019)
PART-C
1. Look at this database, which is in 1NF, to see what you must do to put that database in DK/NF.
2. Discuss the correspondence between the ER model construct and the relational model constructs.
Show how each ER model construct can be mapped to the relational model. Discuss the option for
mapping EER model construct.(Analyse)(Nov/Dec 2017)
ASSIGNMENT QUESTIONS
1. Consider the universal relation R={A,B,C,D,E,F,G,H,I} and the set of functional dependencies
F={(A,B)->{C},{A}- >{D,E},{B}->{F},{F}->{G,H},{D}->{I,J}}.What is the key role for R?
Decompose R in to 2NF then 3NF relations(analyzing)
2. Construct an ER diagram for a car insurance company whose customers own one or more cars
[Link] car has associated with it zero to any number of recorded [Link] insurance
policy covers one or more cars, and has one or more preminum payments associated with [Link]
payment is for a particular period of time,and has an associated due date and date when the payment
was received.(Nov/Dec 2016)(Apply)
UNIT III
TRANSACTIONS
PART-A
1. What is transaction? (remembering)
Collections of operations that form a single logical unit of work are called transactions.
3. What are the properties of transaction? Define ACID properties. (APRIL / MAY 2013)
(remembering) (NOV/DEC 2014)(MAY/JUNE 2016)
The properties of transactions are:
Atomicity
Consistency
Isolation
Durability
11. What are the two types of serializability? (NOV/DEC 2014) (remembering)
The two types of serializability is
1. Conflict serializability, 2. View serializability
15. Define the phases of two phase locking protocol. (remembering) (APRIL / MAY 2013)
Growing phase: A transaction may obtain locks but not release any lock.
Shrinking phase: A transaction may release locks but may not obtain any new locks.
16. What are the two methods for dealing deadlock problem? (remembering)
The two methods for dealing deadlock problem is deadlock detection and deadlock recovery.
17. Differentiate strict two phase locking protocol and rigorous two phase locking
protocol. (MAY/JUNE 2016) (evaluating)
In strict two phases locking protocol all exclusive mode locks taken by a transaction is held until that
transaction commits.
Rigorous two phase locking protocol requires that all locks be held until the transaction commits.
18. What benefit does strict two-phase locking provide? What disadvantages result?
(remembering) (MAY/JUNE 2012)
Because it produces only cascadeless schedules, recovery is very easy. But the set of schedules
obtainable is a subset of those obtainable from plain two phase locking, thus concurrency is
reduced.
19. List the two commonly used Concurrency Control techniques. (analyzing)(NOV/DEC
2011)
1. Two Phase Locking
2. Serialization
20. List the SQL statements used for transaction control. (analyzing) (NOV/DEC 2011)
COMMIT
ROLLBACK
SAVEPOINT
SET TRANSACTION
SET CONSTRAINT
All transaction control statements, except certain forms of the COMMIT and ROLLBACK
commands, are supported in PL/SQL.
Dirty Read
Non-Repatable read
Phantom Read
Based on these phenomena, The SQL standard defines four isolation levels :
Read Uncommitted
Read Committed
Repeatable Read
Serializable
28. What do you mean by phantom problem? (Remember)
If transactions operate at less than the maximum isolation level is the so-called phantom problem.
30. What are the three problems that any concurrency control mechanism must address? (R)
The three problems are:
36. What type of locking needed for insert and delete operations?(Understand) (Apr/May 2017)
There are two types of Locks
1. Shared lock
2. Exclusive lock
37. What is meant by log based Recovery?(APR/MAY 2019)
1. The log is a sequence of records. Log of each transaction is maintained in some stable
storage so that if any failure occurs, then it can be recovered from there.
2. If any operation is performed on the database, then it will be recorded in the log.
20 Department of CSBS
3. But the process of storing the logs should be done before the actual transaction is applied in
the database.
There are two approaches to modify the database:
Deferred database modification
Immediate database modification
PART-B
1. a) How Transactions are possible in Distributed database? Explain briefly (8) (remembering)
b) What is Transaction state and its ACID properties? (8) (remembering) [Nov /Dec 2008].
2. a) How can we achieve concurrency control achieved in DBMS through
Serializability? (8) (remembering) [Nov /Dec 2008/April 2008.]
3. a) What is deadlock prevention and dead lock detection method (10) [May 2009]
(remembering)
b) Explain the deadlock recovery technique (6)
4. Explain the following protocols for concurrency control (understanding) [Nov /Dec
2008/April 2008.]
i) Lock based protocols (8)
ii) Time stamp based protocols DATABASE MANAGEMENT SYSTEM (8)
5. Explain the concepts of serializability. (understanding) (APR/MAY 2011) (8)
6. (i) Explain Two-phase locking protocol. (understanding) (APR/MAY 2011) (8)
(ii) Describe about the deadlock prevention schemes. (8)
7. (i) Define a transaction. Then discuss the following with relevant examples:(remembering)
(8)
(1) A read only transaction (NOV/DEC 2011)
(2) A read write transaction
(3) An aborted transaction
(ii) With a neat sketch discuss the states a transaction can be in. (4)
(iii) Explain the distinction between the terms serial schedule and serializable schedule. Give
relevant example. (4) (understanding)
8. Write down in detail about Deadlock and Serializability. (MAY/JUNE 2012) (creating)
(16)
9. Discuss in detail about transaction concepts and two phase commit protocol. (creating) (16)
(NOV/DEC 2012) &(APRIL / MAY 2013)
10. Write down in detail about intent locking and isolation levels.(16) (creating) (NOV/DEC
2012)
11. Illustrate dead lock and conflict serializability with suitable example. (understanding)(APRIL
/ MAY 2013)
12. What is Concurrency? Explain it in terms of locking mechanism and two phase locking
protocol. (NOV/DEC 2014) (remembering)
13. Write a short notes on (i) Transaction Concept (ii) Deadlock (NOV/DEC 2014) (creating)
14. Explain the Two- Phase commit and Three –Phase commit Protocols.(APR/MAY 2015)(16)
(understanding)
15. Consider the following schedules. The actions are listed in the order they are scheduled and
prefixed with the transaction name.
S1:T1:R(X),T2:R(X),T1:W(Y),T2:W(Y),T1:R(Y),T2:R(Y)
S2:T3:W(X),T1:R(X),T1:W(Y),T2:R(Z),T2:W(Z),T3:R(Z)
For each of the schedule answer the following questions:
(i) What is the precedence graph for the schedule? 2)
(ii) Is the schedule conflict-serializable?If so, what are all the conflict equivalent
serial schedules? (7)
(iii) Is the schedule view – serializable? If so, what are all the view equivalentserial
schedules? (7) (APR/MAY 2015) (evaluating)
16. (i) What is concurrency control? How is it implemented in DBMS? Illustrate with a
suitable example. (remembering)
(ii) Discuss view serializability and conflict serializability. (APR/MAY2 015)(understanding)
17. What is deadlock? How does it occur? How transactions be written to (remembering)
(i) Avoid deadlock.
(ii) Guarantee correct execution. Illustrate with suitable example(APR/MAY 2015)
18. Briefly explain about Two phase commit.(May/June 2016)(Remember)
[Link] about Locking Protocols.(May/June 2016)(understanding)
20.(i) Consider the following two transactions:( Nov/Dec 2016)
T1: read(A);
read(B);
if A = 0 then B := B + 1;
write(B).
T2: read(B);
read(A);
if B = 0 then A := A + 1;
write(A).
Add lock and unlock instructions to transactions T1 and T2, so that they onserve the two-phase
locking [Link] the execution of these transactions result in a deadlock? (creating)
(ii) Consider the following extension to the tree-locking protocol, which allows both shared and
exclusive locks:
• A transaction can be either a read-only transaction, in which case it can request only shared locks,
or an update transaction, in which case it can request only exclusive locks.
• Each transaction must follow the rules of the tree protocol. Read-only transactions may lock any
data item first, whereas update transactions must lock the root first. Show that the protocol ensures
serializability and deadlock freedom. (analyzing)
21.(i) Illustrate two phase locking protocol with an example.(Nov/Dec 2016) (evaluating)
(ii) Outline deadlock handling mechanisms.
22. What is concurrency control? How is it implemented in DBMS? Explain. (Remember)(DEC
2007)
23. Explain various recovery techniques during transaction in detail. (Remember)(MAY 2017)
24. State and explain the lock based concurrency control with suitable
example.(Remember)(NOV/DEC 2017)
25. When does deadlock occurs?Explain two-phase commit protocol with suitable example.
22 Department of CSBS
(NOV/DEC 2017)
27. Explain the catalog information for cost estimation for selection and sorting operation in
database. (Remember)( (NOV/DEC 2017)
28. Discuss the violations caused by each of the following:dirty read,non-repeatable read and
phantoms with suitable example.(Analyse)(Apr/May 2017)
29. Explain why timestamp-based concurrency control allows schedules that are not
[Link] how it can be modified through buffering to disallow such schedules. .
(Remember) (Apr/May 2017)
30. What is meant by semantic query optimization? How does it differe from with
example.(Understand)(Apr/May 2017)
31. Discuss in detail about the testing of serializability.(Analyse)(APR/MAY 2019)
[Link] deferred and immediate modification versions of the log based recovery scheme.
(Remember)( APR/MAY 2019)
PART –C
1. Consider the following two transactions:( Nov/Dec 2016) (analyzing)
T1: read(A);
read(B);
if A = 0 then B := B + 1;
write(B).
T2: read(B);
read(A);
if B = 0 then A := A + 1;
write(A).
Add lock and unlock instructions to transactions T1 and T2, so that they on serve the two-phase
locking [Link] the execution of these transactions result in a deadlock?
[Link] in detail about the ACID properties of a transaction.(Remember) )(APR/MAY 2019)
[Link] is concurrency control? How it is implemented in DBMS?Briefly elaborate with suitable
diagrams and examples. (Remember) (Apr/May 2019)
ASSIGNMENT QUESTIONS
1. Consider the following schedules. The actions are listed in the order they are scheduled and
prefixed with the transaction name.(Remember)
S1:T1:R(X),T2:R(X),T1:W(Y),T2:W(Y),T1:R(Y),T2:R(Y)
S2:T3:W(X),T1:R(X),T1:W(Y),T2:R(Z),T2:W(Z),T3:R(Z)
For each of the schedule answer the following questions:
(i) What is the precedence graph for the schedule? (2)
(ii) Is the schedule conflict-serializable?If so, what are all the conflict equivalent
serial schedules? (7)
(iii) Is the schedule view – serializable? If so, what are all the view equivalent serial
schedules? (7)
[Link] the following extension to the tree-locking protocol, which allows both shared and
exclusive locks.
• A transaction can be either a read-only transaction, in which case it can request only shared locks,
or an update transaction, in which case it can request only exclusive locks. (Remember)
• Each transaction must follow the rules of the tree protocol. Read-only transactions may lock any
data item first, whereas update transactions must lock the root first. Show that the protocol ensures
serializability and deadlock freedom. (Understand)
UNIT-IV IMPLEMENTATION TECHNIQUES
PART-A
1. Draw the storage device hierarchy?(Knowledge)
Storage-device hierarchy
RAIDs are Redundant Arrays of Inexpensive Disks. There are six levels of organizing these disks:
0 -- Non-redundant Striping
1 -- Mirrored Disks
2 -- Memory Style Error Correcting Codes
3 -- Bit Interleaved Parity
4 -- Block Interleaved Parity
5 -- Block Interleaved Distributed Parity
6 -- P + Q Redundancy
4. What is buffer manager? (Knowledge)
Programs in a DBMS make requests (that is, calls) on the buffer manager when they need a block
from a disk. If the block is already in the buffer, the requester is passed the address of the block in
main memory. If the block in not in the buffer, the buffer manager first allocates space in the buffer
for the block, through out some other block, if required, to make space for the new block. If the
block that is to be thrown out has been modified, it must first be written back to the disk. The
internal actions of the buffer manager are transparent to the programs that issue disk-block requests
One or more of the fields can be of differing lengths in each record, called variable length records
Advantages: the records will be smaller and will need less storage space the records will load faster
Disadvantages: The computer will be unable determine where each record starts processing the
records will be slower.
12. What are the 3 alternatives for data entries k* in B+ tree? (Remember)
Data record with key value k
<k, rid of data record with search key value k>
<k, list of rids of data records with search key k>
20. What are the disadvantages of B Tree over B+ Tree? (Knowledge) (NOV/DEC 2016)
Disadvantages of B+ Tree
Disadvantages of B Tree
The Query Execution Plans describe the steps and the order used to access or modify data in the
database. Once you have this information you can identify what parts of the query are slow.
Actual Execution Plan - (CTRL + M) - is created after execution of the query and contains
the steps that were performed
Estimated Execution Plan - (CTRL + L) - is created without executing the query and
contains an approximate execution plan
Execution plans can be presented in these three ways and each option offers benefits over the other.
Text Plans
Graphical Plans
XML Plans
When beginning to work with execution plans, the graphical plan is usually the easiest place to start
unless your plan is very complex, then the text plans are sometimes easier to read.
31. Which cost component are used most often as the basis for cost function?
(Rememeber)(Apr/May 2017)
The cost component are
29 Department of CSBS
i)Access cost to secondary storage
ii)Memory usage cost
iii)storage cost
The Query Optimizer examines all algebraic expressions that are equivalent to the given query
and chooses the one that is estimated to be the cheapest. We can expect an improved efficiency
during the evaluation of the query.
Eg., EMP(Emp#, Name, Salary, Dept$)
DEPT(Dept#, DeptName, Mgr)
37. Why does SQL allow duplicate tuples in a table or in a query result? (NOV/DEC 2015)
(remembering)
SQL does permit duplicate "tuples" in its tables
* Duplicate elimination is an expensive operation.
* The user may want to see duplicate tuples in the result of a query.
Client restore One session per restore Multiple concurrent sessions access different
operations volumes simultaneously on both the server and
the storage agent. Active versions of client
backup data is collocated in active-data pools.
PART-B
1. a) What is RAID? List the different levels in Raid technology and explain its features.
(Knowledge) (8) (APR/MAY 2011/2019)& (NOV/DEC 2012)(NOV/DEC 2014)
b) Describe the different method of implementing variable length records(Understand) (8)
(APR/MAY 2011)
2. Explain static and dynamic Hashing Techniques? (Understand) (16) (Nov /Dec 2008)
3. Briefly describe about B+ tree index and B tree structure. (Understand) (16) (Nov /Dec 2008)
(NOV/DEC 2014)
4. Explain different properties of indexes in detail.(Remember) (16) (Nov /Dec 2008)
5. Construct B+ tree to insert the following (order of the tree is 3)(Apply) (16)
26, 27, 28, 3, 4, 7, 9, 46, 48, 51, 2, 6. (APRIL / MAY 2013) & (MAY/JUNE 2012)
6. Write down in detailed notes on ordered indices and B – Tree index files. (Understand)
(NOV/DEC 2012)
7. Describe in detail about how records are represented in a file and how to organize them
in a file. (Understand) (MAY/JUNE 2012) (16)
8. Explain magnetic disk with a neat diagram.(Remember)
8. With suitable diagrams, discuss about the Raid Levels(Level 0,Level 1,Level 0+1,Level 3,Level
4 and Level 5) (Create) (APRIL / MAY 2015) (16)
9. (i)What is RAID?List the different level in RAID techonology and explain its features.(Knowledge)
(ii) Illustrate indexing and hashing techniques with suitable examples. (Understand) (APRIL /
MAY 2015)
11. Briefly explain RAID and RAID levels. (Remember) (May/June 2016)
[Link] explain about B+ tree index file with example.(Knowledge) (May/June 2016)
(NOV/DEC 2017)
13.(i)Explain the architecture of a distributed database system.(Nov/Dec 2016) , (NOV/DEC 2017)
(Remember)
(ii) Explain the concept of RAID. (Remember)
14. Explain the distinction between static and dynamc [Link] the relative merites of each
technique in database applications. (Remember) (NOV/DEC 2017)
15. Explain what a RAID system [Link] does it improve performance and [Link] the
level 3 and level 4 of RAID.(Remember)(Apr/May 2017)
16. Describe the structure of B+tree and give the algorithm for search in the
B+tree with example.(Understand)(APR/MAY 2019)
PART-C
ASSIGNMENT QUESTIONS
[Link] about the Join order optimization and Heuristic optimization algorithms. (creating)
(APR/MAY2015) (16)
[Link] query optimization with an example.(Remember)(Nov/Dec 2016)
UNIT V
ADVANCED TOPICS
Hash Function − A hash function, h, is a mapping function that maps all the set of search-
keys K to the address where actual records are placed. It is a function from search keys to bucket
addresses.
7. Difference between static and dynamic ?(understand)
Static Hashing :
In static hashing, when a search-key value is provided, the hash function always computes the same
address. For example, if mod-4 hash function is used, then it shall generate only 5 values. The output
address shall always be same for that function. The number of buckets provided remains unchanged at all
times.
Dynamic Hashing :
The problem with static hashing is that it does not expand or shrink dynamically as the size of the
database grows or shrinks. Dynamic hashing provides a mechanism in which data buckets are added and
removed dynamically and on-demand. Dynamic hashing is also known as extended hashing.
[Link] is query processing?
Query Processing includes translations on high level Queries into low level expressions that can
be used at physical level of file system, query optimization and actual execution of query to get the
actual result.
9. What is query optimization?(understand)
Query optimization is of great importance for the performance of a relational database, especially
for the execution of complex SQL statements. A query optimizer decides the best methods for
implementing each query.
The query optimizer selects, for instance, whether or not to use indexes for a given query, and which join
methods to use when joining multiple tables. These decisions have a tremendous effect on SQL
performance, and query optimization is a key technology for every application, from operational Systems
to data warehouse and analytical systems to content management systems.
PART - B
[Link] about RAID Models and its types ?(understand)
[Link] about Indexing and Hashing?(understand)
[Link] Tree? Discuss about B + Tree and B – Tree indexing files?(Create)
[Link] about Hashing ?(understand)
[Link] about Query processing and Query Optimization ?(understand)
[Link] about the MONGO DB ?(understand)
[Link] about the architecture of MONGO DB ?(understand)
[Link] about the CURD operation?(understand)
PART -C
[Link] we want to search 65 in the below B+ tree structure. First we will fetch for the
intermediary node which will direct to the leaf node that can contain record for 65. So we find
branch between 50 and 75 nodes in the intermediary node. Then we will be redirected to the third
leaf node at the end. Here DBMS will perform sequential search to find 65. Suppose, instead of 65,
we have to search for 60. What will happen in this case? .(Remember)