Babu Banarasi Das National Institute of Technology and Management

Similar documents
DATABASE MANAGEMENT SYSTEMS

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

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad


MaanavaN.Com DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING QUESTION BANK

The University of British Columbia Computer Science 304 Practice Final Examination

CMSC 461 Final Exam Study Guide

Example Examination. Allocated Time: 100 minutes Maximum Points: 250

CS2255 DATABASE MANAGEMENT SYSTEMS QUESTION BANK UNIT I

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Winter 2009 Lecture 4 - Schema Normalization

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

UNIT 3 DATABASE DESIGN

Database Management Systems Paper Solution

VIEW OTHER QUESTION PAPERS

Functional Dependencies CS 1270

E.G.S. PILLAY ENGINEERING COLLEGE (An Autonomous Institution, Affiliated to Anna University, Chennai) Nagore Post, Nagapattinam , Tamilnadu.


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

Attach extra pages as needed. Write your name and ID on any extra page that you attach. Please, write neatly.

VALLIAMMAI ENGINEERING COLLEGE

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Fall 2009 Lecture 3 - Schema Normalization

CS348: INTRODUCTION TO DATABASE MANAGEMENT (Winter, 2011) FINAL EXAMINATION

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

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

B.C.A DATA BASE MANAGEMENT SYSTEM MODULE SPECIFICATION SHEET. Course Outline

COSC Dr. Ramon Lawrence. Emp Relation

CSE 562 Database Systems

A7-R3: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS

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

SYED AMMAL ENGINEERING COLLEGE

CS6302- DATABASE MANAGEMENT SYSTEMS- QUESTION BANK- II YEAR CSE- III SEM UNIT I

Unit 3 : Relational Database Design

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

CSE 344 MARCH 9 TH TRANSACTIONS

Chapter 8: Relational Database Design

COMP7640 Assignment 2

Introduction to Data Management CSE 414

Total No. of Questions :09] [Total No. of Pages : 02. II/IV B.Tech. DEGREE EXAMINATIONS, NOV/DEC Second Semester CSE/IT DBMS

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

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

Informal Design Guidelines for Relational Databases

Homework 6: FDs, NFs and XML (due April 13 th, 2016, 4:00pm, hard-copy in-class please)

Schema Refinement and Normal Forms

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

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

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

Q.1 Short Questions Marks 1. New fields can be added to the created table by using command. a) ALTER b) SELECT c) CREATE. D. UPDATE.

CS211 Lecture: Database Design

SCHEMA REFINEMENT AND NORMAL FORMS

Chapter 10. Normalization. Chapter Outline. Chapter Outline(contd.)

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

The University of Nottingham

Relational Database Design (II)

This lecture. Databases -Normalization I. Repeating Data. Redundancy. This lecture introduces normal forms, decomposition and normalization.

SYED AMMAL ENGINEERING COLLEGE

CS352 Lecture - Concurrency

Functional Dependencies & Normalization for Relational DBs. Truong Tuan Anh CSE-HCMUT

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

Database Systems CSE 414

Elmasri/Navathe, Fundamentals of Database Systems, Fourth Edition Chapter 10-2

Transactions. Kathleen Durant PhD Northeastern University CS3200 Lesson 9

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

DATABASE MANAGEMENT SYSTEM

Name :. Roll No. :... Invigilator s Signature : DATABASE MANAGEMENT SYSTEM

Chapter 10. Chapter Outline. Chapter Outline. Functional Dependencies and Normalization for Relational Databases

Database Systems. Basics of the Relational Data Model

CS352 Lecture - Concurrency

Unit- III (Functional dependencies and Normalization, Relational Data Model and Relational Algebra)

Distributed KIDS Labs 1

Introduction to Data Management CSE 344

GUJARAT TECHNOLOGICAL UNIVERSITY

Total No. of Questions :09] [Total No. of Pages : 02

mywbut.com Concurrency Control

15CS53: DATABASE MANAGEMENT SYSTEM

Name :. Roll No. :... Invigilator s Signature : DATABASE MANAGEMENT SYSTEM

Transactions and Concurrency Control

DATABASE DESIGN I - 1DL300

Databases -Normalization I. (GF Royle, N Spadaccini ) Databases - Normalization I 1 / 24

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

DBS 2006: 1 st week. DBS 2006: Plan. DB Life-Cycle: Requirement analysis. Data modelling: Conceptual Design. Logical Schema Design

Database Systems CSE Comprehensive Exam Spring 2005

QUIZ 1 REVIEW SESSION DATABASE MANAGEMENT SYSTEMS

CSE 444, Winter 2011, Midterm Examination 9 February 2011

Database Management System

The University of British Columbia

Database Systems CSE 414

Database Design Theory and Normalization. CS 377: Database Systems

Essay Question: Explain 4 different means by which constrains are represented in the Conceptual Data Model (CDM).

Database Management Systems

2011 DATABASE MANAGEMENT SYSTEM

CS411 Database Systems. 05: Relational Schema Design Ch , except and

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

CS322: Database Systems Transactions

Functional Dependencies and. Databases. 1 Informal Design Guidelines for Relational Databases. 4 General Normal Form Definitions (For Multiple Keys)

CSE 444 Midterm Exam

Relational Database design. Slides By: Shree Jaswal

CSE 344 MARCH 25 TH ISOLATION

CSE 344 MARCH 5 TH TRANSACTIONS

Chapter 14. Database Design Theory: Introduction to Normalization Using Functional and Multivalued Dependencies

Transcription:

Babu Banarasi Das National Institute of Technology and Management Department of Computer Applications Question Bank (Short-to-Medium-Answer Type Questions) Masters of Computer Applications (MCA) NEW Syllabus (Affiliated to U. P. Technical University, Lucknow.) III Semester MCA313: Database Management System UNIT I 1. Define the concept of database schema. Describe the types of schemas that exist in a database complying with the three levels ANSI/SPARC architecture. 2. List four significant differences between a file-processing system and a DBMS. 3. List five responsibilities of a database management system. For each responsibility, explain the problems that would arise if the responsibility were not discharged. 4. What do understand by the term data model? Explain the difference between a data model and its implementation. Why is the difference important? 5. What three main types of actions involve databases? Briefly discuss each. 6. What is the difference between logical data independence and physical data independence? 7. What is the difference between procedural and nonprocedural DMLs? 8. Discuss the different types of user-friendly interfaces and the types of users who typically use each. 9. Discuss some types of database utilities and tools and their functions.

10. Distinguish between strong and weak entity? 11. Should a real world object be modelled as an entity or as an attribute? 12. Construct an E-R diagram for a car-insurance company whose customers own one or more cars each. Each car has associated with it zero to any number of recorded accidents. 13. Construct an E-R diagram for a hospital with a set of patients and a set of medical doctors. Associate with each patient a log of the various tests and examinations conducted. 14. We can convert any weak entity set to a strong entity set by simply adding appropriate attributes. Why, then, do we have weak entity sets?

UNIT II 1. Describe the differences in meaning between the terms relation and relation schema. Illustrate your answer by an example. 2. Discuss the characteristics of relations that make them different from ordinary tables and files. 3. Why are duplicate tuples not allowed in a relation? 4. Why are tuples in a relation not ordered? 5. What is the difference between a key and a superkey? 6. Discuss the various reasons that lead to the occurrence of null values in relations. 7. Define foreign key. What is this concept used for? How does it play a role in the join operation? 8. Does the relational model, as seen by an SQL query writer, provide physical and logical data independence? Explain. 9. What is the difference between a candidate key and the primary key for a given relation? What is a superkey? 10. Answer each of the following questions briefly. The questions are based on the following relational schema: Emp(eid: integer, ename: string, age: integer, salary: real) Works(eid: integer, did: integer, pct time: integer) Dept(did: integer, dname: string, budget: real, managerid: integer) a. Give an example of a foreign key constraint that involves the Dept relation. What are the options for enforcing this constraint when a user attempts to delete a Dept tuple? b. Write the SQL statements required to create the above relations, including appropriate versions of all primary and foreign key integrity constraints. 11. Given two relations R1 and R2, where R1 contains N1 tuples, R2 contains N2 tuples, and N2 > N1 > 0, give the minimum and maximum possible sizes (in tuples) for the result relation produced by each of the following relational algebra expressions. In each case, state any assumptions about the schemas for R1 and R2 that are needed to make the expression meaningful: (1) R1 U R2, (2) R1 R2, (3) R1 R2, (4) R1 X R2, (5) ϭ a=5 (R1), (6) a (R1), and (7) R1=R2 12. What is relational completeness? If a query language is relationally complete, can you write any desired query in that language? 13. What is an unsafe query? Give an example and explain why it is important to disallow such queries.

UNIT III 1. Explain what is meant by repetition of information and inability to represent information. Explain why each of these properties may indicate a bad relational database design. 2. Suppose that we decompose the schema R = (A, B, C, D, E) into (A, B, C) (A, D, E) Show that this decomposition is a lossless-join decomposition if the following set F of functional dependencies holds: A BC CD E B D E A 3. Use the definition of functional dependency to argue that each of Armstrong s axioms (reflexivity, augmentation, and transitivity) is sound. 4. Give a set of FDs for the relation schema R(A,B,C,D) with primary key AB under which R is in 1NF but not in 2NF. 5. Give a set of FDs for the relation schema R(A,B,C,D) with primary key AB under which R is in 2NF but not in 3NF. 6. Consider the relation schema R(A,B,C), which has the FD B C. If A is a candidate key for R, is it possible for R to be in BCNF? If so, under what conditions? If not, explain why not. 7. Suppose that we have a relation schema R(A,B,C) representing a relationship between two entity sets with keys A and B, respectively, and suppose that R has (among others) the FDs A B and B A. Explain what such a pair of dependencies means (i.e., what they imply about the relationship that the relation models). 8. Consider a relation R with five attributes ABCDE. You are given the following dependencies: A B, BC E, and ED A. a. List all keys for R. b. Is R in 3NF? c. Is R in BCNF? 9. Describe the purpose of normalizing the data? Describe the types of anomalies that may occur on a relation that has redundant data? 10. Give an example of a relation which is in 3NF but not in BCNF? How will you convert that relation to BCNF?

11. Given a relation R(S, B, C, D) with key={s, B, D} and F={S C}. Identify the normal form of the relation R? 12. List the three design goals for relational databases, and explain why each is desirable. 13. Give an example of a relation schema R and a set of dependencies such that R is in BCNF, but is not in 4NF. 14. Explain why 4NF is a normal form more desirable than BCNF. 15. Explain how dangling tuples may arise. Explain problems that they may cause.

UNIT IV 1. List the ACID properties. Explain the usefulness of each. 2. Suppose that there is a database system that never fails. Is a recovery manager required for this system? 3. Database-system implementers have paid much more attention to the ACID properties than have file-system implementers. Why might this be the case? 4. Explain the distinction between the terms serial schedule and serializable schedule. 5. Since every conflict-serializable schedule is view serializable, why do we emphasize conflict serializability rather than view serializability? 6. Under what conditions is it less expensive to avoid deadlock than to allow deadlocks to occur and then to detect them? 7. If deadlock is avoided by deadlock avoidance schemes, is starvation still possible? Explain your answer. 8. What is meant by the concurrent execution of database transactions in a multiuser system? Discuss why concurrency control is needed, and give informal examples. 9. Discuss the different types of failures. What is meant by catastrophic failure? 10. What is the system log used for? What are the typical kinds of records in a system log? What are transaction commit points, and why are they important? 11. What is a schedule (history)? Define the concepts of recoverable, cascadeless, and strict schedules, and compare them in terms of their recoverability. 12. Discuss the different measures of transaction equivalence. What is the difference between conflict equivalence and view equivalence? 13. Discuss the different measures of transaction equivalence. What is the difference between conflict equivalence and view equivalence?

14. Discuss how serializability is used to enforce concurrency control in a database system. Why is serializability sometimes considered too restrictive as a measure of correctness for schedules?

UNIT V 1. Explain how the following differ: fragmentation transparency, replication transparency, and location transparency. 2. When is it useful to have replication or fragmentation of data? Explain your answer. 3. Explain the notions of transparency and autonomy. Why are these notions desirable from a human-factors standpoint? 4. To build a highly available distributed system, you must know what kinds of failures can occur. a. List possible types of failure in a distributed system. b. Which items in your list from part a are also applicable to a centralized system? 5. Explain the difference between data replication in a distributed system and the maintenance of a remote backup site. 6. What is strict 2PL? Explain its role in Lock-Based Concurrency Control. 7. Show that the two-phase locking protocol ensures conflict serializability, and that transactions can be serialized according to their lock points. 8. Consider the following two transactions: T31: read(a); read(b); if A = 0 then B := B + 1; write(b). T32: read(b); read(a); if B = 0 then A := A + 1; write(a). Add lock and unlock instructions to transactions T31 and T32, so that they observe the two- phase locking protocol. Can the execution of these transactions result in a deadlock? 9. What benefit does strict two-phase locking provide? What disadvantages result? 10. What benefit does rigorous two-phase locking provide? How does it compare with other forms of two-phase locking?

11. Most implementations of database systems use strict two-phase locking. Suggest three reasons for the popularity of this protocol. 12. When a transaction is rolled back under timestamp ordering, it is assigned a new timestamp. Why can it not simply keep its old timestamp? 13. In multiple-granularity locking, what is the difference between implicit and explicit locking? 14. Show that there are schedules that are possible under the two-phase locking protocol, but are not possible under the timestamp protocol, and vice versa.