Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Similar documents
Database Management Systems Paper Solution

Techno India Batanagar Computer Science and Engineering. Model Questions. Subject Name: Database Management System Subject Code: CS 601

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

Babu Banarasi Das National Institute of Technology and Management

DATABASE MANAGEMENT SYSTEM

DATABASE MANAGEMENT SYSTEMS

CS/B.Tech/CSE/New/SEM-6/CS-601/2013 DATABASE MANAGEMENENT SYSTEM. Time Allotted : 3 Hours Full Marks : 70

CMSC 461 Final Exam Study Guide


Data about data is database Select correct option: True False Partially True None of the Above

Northern India Engineering College, New Delhi Question Bank Database Management System. B. Tech. Mechanical & Automation Engineering V Semester

QUIZ 1 REVIEW SESSION DATABASE MANAGEMENT SYSTEMS

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Database Management Systems (Classroom Practice Booklet Solutions)

SYED AMMAL ENGINEERING COLLEGE

Sankalchand Patel College of Engineering, Visnagar B.E. Semester III (CE/IT) Database Management System Question Bank / Assignment


Database Management Systems (Solutions for Vol 1_Classroom Practice Questions)

Rajiv GandhiCollegeof Engineering& Technology, Kirumampakkam.Page 1 of 10

MIDTERM EXAMINATION Spring 2010 CS403- Database Management Systems (Session - 4) Ref No: Time: 60 min Marks: 38

Intro to Transactions

DATABASE MANAGEMENT SYSTEM SHORT QUESTIONS. QUESTION 1: What is database?

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

ROEVER ENGINEERING COLLEGE

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

SQL Interview Questions


Conceptual (high-level, semantic)/ Physical (low-level, internal)/ Implementation (representational)

CSCE 4523 Introduction to Database Management Systems Final Exam Fall I have neither given, nor received,unauthorized assistance on this exam.

VIEW OTHER QUESTION PAPERS

CS 564 Final Exam Fall 2015 Answers

Intro to DB CHAPTER 15 TRANSACTION MNGMNT

Transaction Management: Introduction (Chap. 16)

In This Lecture. Exam revision. Main topics. Exam format. Particular topics. How to revise. Exam format Main topics How to revise

SYED AMMAL ENGINEERING COLLEGE

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Chapter 7 (Cont.) Transaction Management and Concurrency Control

L i (A) = transaction T i acquires lock for element A. U i (A) = transaction T i releases lock for element A

Transactions. Transaction. Execution of a user program in a DBMS.

DATABASE DESIGN I - 1DL300

What are Transactions? Transaction Management: Introduction (Chap. 16) Major Example: the web app. Concurrent Execution. Web app in execution (CS636)

Goal of Concurrency Control. Concurrency Control. Example. Solution 1. Solution 2. Solution 3

Chapter 2: Intro to Relational Model

CT13 DATABASE MANAGEMENT SYSTEMS DEC 2015

CS2255 DATABASE MANAGEMENT SYSTEMS QUESTION BANK UNIT I

CSE 444: Database Internals. Lectures Transactions

Final Exam. December 5th, :00-4:00. CS425 - Database Organization Results

Relational Model and Relational Algebra A Short Review Class Notes - CS582-01

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

Motivating Example. Motivating Example. Transaction ROLLBACK. Transactions. CSE 444: Database Internals

CS403- Database Management Systems Solved MCQS From Midterm Papers. CS403- Database Management Systems MIDTERM EXAMINATION - Spring 2010

Transactions and Concurrency Control

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 13 Managing Transactions and Concurrency

Database Tuning and Physical Design: Execution of Transactions

References. Transaction Management. Database Administration and Tuning 2012/2013. Chpt 14 Silberchatz Chpt 16 Raghu

Introduction to Database Systems. Announcements CSE 444. Review: Closure, Key, Superkey. Decomposition: Schema Design using FD

Final Review. May 9, 2018 May 11, 2018

Database Management

CSE 444, Winter 2011, Midterm Examination 9 February 2011

Concurrency Control & Recovery

Final Review. May 9, 2017

Intro to Transaction Management

Database Systems. Announcement

1. (a) Explain the Transaction management in a database. (b) Discuss the Query Processor of Database system structure. [8+8]

Transaction Management and Concurrency Control. Chapter 16, 17

Relational model continued. Understanding how to use the relational model. Summary of board example: with Copies as weak entity

CSCE 4523 Introduction to Database Management Systems Final Exam Spring I have neither given, nor received,unauthorized assistance on this exam.

Solutions to Final Examination

Database Applications (15-415)

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Relational Model, Relational Algebra, and SQL

Normalization. Murali Mani. What and Why Normalization? To remove potential redundancy in design

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Chapter 2: Intro to Relational Model

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI

CSE 444: Database Internals. Lectures 13 Transaction Schedules

Introduction to Data Management CSE 344

CS403- Database Management Systems Solved Objective Midterm Papers For Preparation of Midterm Exam

Database Management Systems Written Examination

1. (a) Briefly explain the Database Design process. (b) Define these terms: Entity, Entity set, Attribute, Key. [7+8] FIRSTRANKER

Chapter 22. Transaction Management

Announcements. Transaction. Motivating Example. Motivating Example. Transactions. CSE 444: Database Internals

UNIT 3 DATABASE DESIGN

CS 5300 module6. Problem #1 (10 Points) a) Consider the three transactions T1, T2, and T3, and the schedules S1 and S2.

Relational Database Management System 2014

Unit 2. Unit 3. Unit 4

Databases - Transactions II. (GF Royle, N Spadaccini ) Databases - Transactions II 1 / 22

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Bachelor in Information Technology (BIT) O Term-End Examination

Introduction to Query Processing and Query Optimization Techniques. Copyright 2011 Ramez Elmasri and Shamkant Navathe

II B.Sc(IT) [ BATCH] IV SEMESTER CORE: RELATIONAL DATABASE MANAGEMENT SYSTEM - 412A Multiple Choice Questions.

Announcements. Motivating Example. Transaction ROLLBACK. Motivating Example. CSE 444: Database Internals. Lab 2 extended until Monday

ELECTRICAL ENGINEERING

Goals for Today. CS 133: Databases. Final Exam: Logistics. Why Use a DBMS? Brief overview of course. Course evaluations

Functional Dependencies and Normalization

CSE344 Final Exam Winter 2017

CSE 190D Spring 2017 Final Exam Answers

CSE 190D Database System Implementation

MaanavaN.Com DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING QUESTION BANK

Relational Database: The Relational Data Model; Operations on Database Relations

Transcription:

Serial : 0. PT_CS_DBMS_02078 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: 0-5262 CLASS TEST 208-9 COMPUTER SCIENCE & IT Subject : DBMS Date of test : 02/07/208 Answer Key. (a) 7. (c). (a) 9. (d) 25. (b) 2. (d) 8. (a). (b) 20. (b) 26. (a). (b) 9. (d) 5. (c) 2. (d) 27. (b). (d) 0. (c) 6. (c) 22. (c) 28. (c) 5. (a). (c) 7. (b) 2. (b) 29. (c) 6. (c) 2. (a) 8. (a) 2. (c) 0. (d)

CT-208 CS DBMS 7 Detailed Explanations. (a) Every student can enroll more than one course. Every course can be enrolled by more than one student. Therefore it s many to many relationship. 2. (d) Both the statements are incorrect. The select operation is commutative i.e. σc ( σ ( )) ( ( )) c R σ 2 c σ 2 c R. Ultimately only those tuples will be selected which satisfy both C and C 2. Hence order does not matter. But Π (projection) operation is not commutative. Π ( Π ( R)) = Π ( R)) if and only if a is substring (or subset) of a 2, otherwise operation would be incorrect. a a2 a. (b) The correct matching is Pseudotransitive rule : If {X Y, YZ W} then XZ W Augmentation rule : If X Y then XZ YZ for any Z Reflexive rule : If X Y, then X Y Union rule : If {X Y and X Z} then X YZ. (d) COUNT ( ) returns a count of the number of rows retrieved, whether or not they contain NULL values. The group functions MAX, SUM and AVG ignore null values and perform their respective operations on non-null values only. 5. (a) For the output to be same as relation A two conditions must be satisfied. (i) A has no duplicates: If A has duplicates then output will not contain duplicates because of DISTINCT keyword (output will not be same as A(a, b)). (ii) B is non-empty: If B(c, d) is empty then cross product of A and B will result empty rows, so is the output (output will not be same as A(a, b)). 6. (c) B + trees are used for indexing because of the following reasons. High fan-out, which allows to direct searches to the leaf level. Leaf nodes are interconnected. Hence I/O cost is reduced drastically for range queries. 7. (c) The user (programmer) ensures that the database is in consistent state after the execution of transactions. Concurrency control manager ensures isolation. Recovery management component ensures atomicity and durability. 8. (a) The following conflicts leads to respective problems WR conflict : Reading uncommitted data. RW conflict : Unrepeatable read. WW conflict : Overwriting uncommitted data. 9. (d) 2PL ensures conflict serializability but may lead to deadlock. Time-stamp concurrency control algorithm is a non-lock concurrency control method. In time-stamp based method, deadlock cannot occur as no transaction ever waits.

8 Computer Science & IT 0. (c) A read-locked item is also called share-locked because other transactions are allowed to read the item. Hence multiple share-lock requests can be granted at the same time.. (c) The number of possible super keys is 2 = 8 These are actually the number of subsets of (A, B and D). Any subset of these three with C would make a super key for relation R. 2. (a) All the functional dependencies, in implied FD set can be derived using given set and hence all are valid.. (a) The canonical cover is {P Q, Q R} These two functional dependencies can functionality determine all the FD s of the relation. The number of FD s in the minimal cover is 2.. (b) This query counts the number of tuples with marks > minimum marks. All the tuples will have uniques marks. Hence only one tuple with minimum marks. Therefore 5 will be the result of the query (5 records will have marks greater than minimum marks). 5. (c) Maximum number of node at st level = Maximum number of node at 2 nd level = (because order is i.e., block pointers) Maximum number of node at rd level = = 6 Maximum number of node at th level = 6 = 6 Maximum number of node at 7 th level = 02 = 096 So total number of nodes = ++6+6+256.+..+096 = 56 6. (c) For B + tree, let n be the degree (n ) Key size + n Block pointer 52 (n ) 8 + 8 n 52 6n = 520 n = is best choice 7. (b) Y is weak entity and hence existence dependent on X. More over Y does not have it s own key and combines it s partial key with key of strong entity in order to have a key. Every Y must appear in X i.e. total participation of Y is required in X. 8. (a) The output of Q and Q 2 would be same. This is because natural join ( ) has an implicit condition similar to condition (PSNGR.TNo = TRN.TNo), in Q for common attribute. The output of Q would contain tuples from both relations which does not satisfy the condition for natural join.

CT-208 CS DBMS 9 Output Q and Q 2 : Output of Q : Pass_Name TNo Type Suresh T SHA Anirudh T SHA Pass_Name TNo Type Suresh T SHA Anirudh T SHA Mallesham T NULL Shiva T NULL NULL T SFA NULL T EXP NULL T RAJ 2 9. (d) It is given that key size + Record pointer size = Record size This makes Blocks size Header Key + Record pointer = Index block factor = Blocks size Header Record size = Database file block factor 20. (b) In M : scenario, the relation will have unique values from the side with cardinality M. Hence when the relations are combined, the key attribute from M-cardinality relation will be the key of new relation. 2. (d) Both S and S 2 are false. S is false because relational algebra can only define DML operations. S 2 is false because relational calculus is declarative procedure. 22. (c) S is false because for set-difference operation, both relations must be union compatible. For performing any set operation on two or more relations, they must be compatible. 2. (b) S is false because if X Y is trivial FD then X Y. In S 2, for relation R candidate key s : AB, BC, CD, AD Prime attributes : A, B, C, D Relation in NF but not BCNF. 2. (c) A schedule is said to be irrecoverable if T i reads A which is updated by uncommitted T j and commit of T i is before T j. The given schedule does not have uncommitted read. So it is recoverable and cascadeless recoverable. 25. (b) According to 2PL, if lock conversion is allowed, then upgrading of locks must be done during expansion phase, and degrading of locks must be done in the shrinking phase. S 2 is true. Lock upgradation is not allowed in shrinking phase therefore S is False.

0 Computer Science & IT 26. (a) T T 2 Clearly we can see the cycle in precedence graph. Therefore this schedule S is not conflict equivalent to any serial schedule. T 27. (b) Even through the R and S may have common attributes it would give output as cross-product unless we give explicit condition for tuple matching. To make it equivalent to natural join we have to use WHERE condition to match the common attributes. 28. (c) The given query finds the pid s of parts that are supplied by atleast four suppliers. Inner query returns the count value and outer query checks whether the count value returned by the inner query is > or not. 29. (c) Update on Null gives Null Average function ignores Null values. Number of non-null entries = So, average will produce 5000 + 6000 + 7000 + 8000 = 6500 0. (d) In level 2 there will be 0 nodes as order is 0. In level there will be 0 0 = 00 nodes In level there will be 0 00 = 000 nodes At level each node will have 9 record pointers. So, therefore the maximum number of records that be indexed are 000 9 = 9000.