6 Pages

internal-02

Course: COMPRO CS401, Spring 2010
School: Maharishi
Rating:
 
 
 
 
 

Word Count: 1494

Document Preview

OF UNIVERSITY LONDON Goldsmiths College BSc Examination 2002 COMPUTING AND INFORMATION SYSTEMS IS52003A (CIS209) Database Systems Internal Duration: 3 hours This paper consists of 5 problems. Each problem carries 25 marks. Answer only 4 of them. You may choose any 4 problems; full marks will be awarded for complete answers to 4 problems. Problems are made of questions. For each problem you choose, attempt all...

Register Now

Unformatted Document Excerpt

Coursehero >> Iowa >> Maharishi >> COMPRO CS401

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
OF UNIVERSITY LONDON Goldsmiths College BSc Examination 2002 COMPUTING AND INFORMATION SYSTEMS IS52003A (CIS209) Database Systems Internal Duration: 3 hours This paper consists of 5 problems. Each problem carries 25 marks. Answer only 4 of them. You may choose any 4 problems; full marks will be awarded for complete answers to 4 problems. Problems are made of questions. For each problem you choose, attempt all its questions. The mark carried by each question is printed within square brackets. Gauge the length of each answer by the number of marks awarded. Electronic calculators are not necessary for this assignment, therefore they should not be used. THIS EXAMINATION PAPER MUST NOT BE REMOVED FROM THE EXAMINATION ROOM. CIS209 IS52003A 2002 Internal 1 PROBLEM 1 [25] Topics covered: generalities about databases ; generalities about the relational model. Question 1 Define the relational model. What is a relational database management system (DBMS)? Question 2 Define the notion of foreign key. Give an example. [3] [3] Question 3 Explain the two types of programdata independence on the basis of the three level ANSI/SPARC architecture of a database system. [4] Question 4 What is a system catalogue? Give examples of two types of data/information it usually includes and, in each case, explain the (potential) use of this data/information (one or two sentences per type of data/information). [5] Question 5 Data can be stored in files and application programs can share this data by having a direct access to the respective files (refer to Diagram 1, below). However, data-centred applications normally employ a database management system (refer to Diagram 2, below). Database Management System Program/Application 1 Program/Application n data as files (disk) Program/Application 1 Program/Application n data as files (disk) Diagram 1 Diagram 2 State why the latter approach (Diagram 2) is preferred for data-centred applications (refer to at least two features of a DBMS). [5] Question 6 Explain what is it meant by impedance mismatch, in the context of relational database systems. [5] CIS209 IS52003A 2002 Internal 2 TURN OVER PROBLEM 2 [25] Topics covered: conceptual design / ER modelling ; the transformation of an ER model into a relational model. Question 1 Can a set of data requirements be correctly modelled by two or more different ER diagrams? Explain your answer. You may use a small example, if you think it will help your explanation. [3] Question 2 Draw an ER diagram for the following description. Illustrate only the entity types (disregard the attributes), the relationships between them, and the multiplicity of each relationship. [12] A company specialises on IT training. At the time being, the company has 20 instructors, provides 30 courses and can handle a maximum number of 600 trainees. However, these numbers may increase in the future. Each trainee registers for a minimum of 1 and a maximum of 3 courses. The number of trainees that can register for a course is not limited. Each course is assigned to a maximum number of 5 instructors. A course may be assigned to no instructors, if there are no trainees registered for it. An instructor may be assigned to a maximum of 10 courses. Each course is organised in 10 sessions. Each session is taught by one instructor, only. An instructor may be in charge of any number of sessions (obviously, an implicit constraint exists, namely that an instructor cannot be in charged of more than 100 sessions, but you may disregard this constraint). Question 3 Draw an ER diagram for the following description. [5] The students of a university register for different modules. One student may register for one or more modules (but not exceeding 24). One module, normally, has many students registered for it. If students fail a module they have to register again (they have to retake it). Therefore, the information relevant to registration is: date of registration and result. Question 4 Consider the following ER diagram. Translate it into a relational model and specify the primary keys, foreign keys, and foreign key rules for each of the resulting relations. [5] Residence address {PK} noOfBedrooms noOfBathrooms noOfKitchens livingArea price {Mandatory, Or} Flat floor hasLift hasAccessToGym hasAccessToSauna House type areaOfGarden leaseForGround isListed CIS209 IS52003A 2002 Internal 3 TURN OVER PROBLEM 3 [25] Topics covered: functional dependencies, non-loss decomposition, normal forms (up to BCNF) and dependency preservation. Question 1 Explain how the process of normalisation can complement the process of ER modelling in database design. [3] Question 2 Consider the following relation. Student-Name Username Email Course Exam Date Attempt Result (a) Give examples of three possible non-trivial functional dependencies (FDs) and concisely explain why did you consider them to be FDs. At least one FD should have a composite determinant. [3] (b) Choose a primary key for this relation. Question 3 Consider the following relation. Patient Doctor Disease Diagnosis Treatment Diet [1] and the following functional dependencies: (Patient, Disease, Doctor) Diagnosis (Patient, Disease) Treatment Treatment Diet Assume they completely express all the functional dependencies existing in the given relation (i.e., the other are either trivial or can be deduced from the given ones). Decompose/transform (non-loss) the given relation into a set of relations in BCNF. Explain how you apply Heaths theorem for each decomposition you make. State the end result clearly. Also, state the candidate keys for each resulting BCNF relation. [12] Question 4 Consider the following relation R: Patient Disease Doctor Treatment Consider the following functional dependencies for R: (Patient, Disease) Doctor (Patient, Disease) Treatment Doctor Disease Assume they completely express all the functional dependencies existing in R. Discuss the way in which these functional dependencies can be expressed via normal forms (decomposition) in parallel with the issue of dependency preservation. [6] CIS209 IS52003A 2002 Internal 4 TURN OVER TURN OVER PROBLEM 4 [25] Topics covered: SQL (data definition, data manipulation, integrity constraints). Question 1 Write the SQL statements that implement the database schema that corresponds to the following ER model. The entity Child is a weak entity which depends on Employee. Your answer should include a statement of the relevant integrity constraints. The answer can be given purely in terms of two CREATE statements. [6] Employee empNo {PK} name jobTitle department salary 1 0..* Child name sex dateOfBirth Question 2 Express the following natural language queries in SQL (refer to the schema below): (a) List the title, authors, and price for all the books published by Addison-Wesley in 2000, in alphabetical order with respect to titles. [2] (b) List the titles of all the books that can be taken on loan for more than three days. [2] (c) List how many non-returned books (as in physical copies) does the reader Goldy Smith have (a non-returned book has no value for dateIn) [2] (d) List all the readers (as name and address) who have books overdue, together with the titles of these books a book is considered overdue if it was not yet returned and it was on loan for more than the maximum number of days allowed (maxDaysLoan); (hint: assume that the difference between two values of type DATE corresponds to the data type associated with maxDaysLoan; CURRENT_DATE is an SQL unary operator which returns the current date). [3] (e) List the names of all the readers who have non-returned books together with the total number of non-returned books, but only if this total exceeds their quota (maxNoBooksForLoan). [4] Question 3 Express the following integrity constraints in SQL (refer to the schema below): (a) Books located in Reference should not be allowed to be borrowed, i.e., the maxDaysLoan for all their copies should be zero (note that this will not stop an actual loan to happen and even to be recorded in the database). [3] (b) Books whose price exceeds 100 should not be allowed to be borrowed (the same observation as above applies here, too). [3] Database schema for the above two questions: Book ISBN title ISBN name catalogNo authors location address dateOut publisher maxDaysLoan year price PhysicalCopy catalogNo overdueChargePerDay Reader userName maxNoBooksForLoan dateIn Loan userName CIS209 IS52003A 2002 Internal 5 TURN OVER PROBLEM 5 [25] Topics covered: optimisation, transaction processing including recovery and concurrency. Question 1 a) Explain, via a simple example, the idea of query optimisation. [5] b) Enumerate some statistical information about a database that may be used by an optimiser. Where is such information stored? [2] Question 2 a) What is a transaction? Give a simple example. b) Explain the ACID properties of transactions (one/two sentences per property). [4] [4] Question 3 There are five types of transactions that can be identified when a system failure arises. Describe each of them, stating, in each case, the corresponding recovery action that a DBMS must take (a diagram may help your explanation). [5] Question 4 Consider the following transaction, called T, represented in Diagram 1 (t i represent tuples). Explain the execution of T in time, in terms of locks, using the following primitives: [5] request-for-lock(type, tuple); acquire-lock(type, tuple); wait; release-lock(type, tuple) and the time scale represented in Diagram 2. Each horizontal line on the time scale could represent the execution of an operation, provided the requests for the corresponding locks is successful. The evolution of locks on these tuples from the point of view of another transaction, executed concurrently with T, is also described in Diagram 2. another transaction has: acquire-lock(X, t2) and acquire-lock(S, t1) start T release-lock(X, t2) BEGIN SELECT UPDATE UPDATE UPDATE COMMIT Diagram 1 t1 t2 t3 t1 release-lock(S, t1) Diagram 2 CIS209 IS52003A 2002 Internal 6
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Maharishi - COMPRO - CS401
UNIVERSITY OF LONDONGoldsmiths CollegeBSc Examination 2001 COMPUTING AND INFORMATION SYSTEMSIS52003A (CIS209) Database SystemsInternalDuration: 3 hoursThis paper is divided into three parts: Part A, B and C. All parts are compulsory. Each part consi
Maharishi - COMPRO - CS401
Waqas Javed ID 982800 Exercise 11.10 a)OperatesCompany1.1 Belongs 1.4Departmentb)1.*Department1.1 Employs Works for 1.*Employeec)BelongsDependants0.* Has 1.1Employeed)Employee1.1 1.1 has 0.1HistoryOperatese)Company1.1 Belongs 1.4Dep
Maharishi - COMPRO - CS401
Lab Assignment # 1 Dated: May 4, 2010 Name: Waqas Javed Exercise 3.1 (a) Relation In the relational model, all data is logically structured within relations. Relation is a table with columns and rows. It used to hold information about objects to be repres
Maharishi - COMPRO - CS401
CIS209 - Mock exam paper 1998/1999 - version 1.0 (15/03/99)Marian UrsuUNIVERSITY OF LONDON BSc Mock Examination 1998/1999 COMPUTING AND INFORMATION SYSTEMSCIS209 Database SystemsDuration: 3 hours Date and time:This paper is divided into four parts, f
Maharishi - COMPRO - CS401
1. A flashing amber (yellow) signal light at an intersection means: 1. Come to full stop 2. 1. Only in the daytime 2. At any time 3. If the condition of traffic and the highway permit traffic condition 2. As close to the rear of the other vehicle as possi
Maharishi - COMPRO - CS401
11.11 You are required to create a conceptual data model of the data requirements for a company that specializes in IT training. The Company has 30 instructors and can handle up to 100 trainees per training session. The Company offers five advanced techno
Maharishi - COMPRO - CS401
SOLUTIONS - CIS209 - INTERNAL - 2002PROBLEM 1Question 1 Define the relational model. What is a relational database management system (DBMS)? Answer[25][3]The relational model is a data model (or a model for representing data). The (relational) data o
Maharishi - COMPRO - CS401
SOLUTIONS - CIS209 - INTERNAL - 2002PROBLEM 1Question 1 Define the relational model. What is a relational database management system (DBMS)? Answer[25][3]The relational model is a data model (or a model for representing data). The (relational) data o
Maharishi - COMPRO - CS401
CIS209 - Exam paper 1998/1999 - version 1.1 (23/02/99)Marian UrsuPart A Attempt four of the following six problems (estimated time 20 minutes)Total marks = 12 Problem 1. Explain briefly, in one or two sentences, three advantages of your choice, of the
Maharishi - COMPRO - CS401
CIS209 WEST Exam paper 1999/2000Marian UrsuPart A Attempt three of the following four problems. Total marks = 9; all problems carry equal marks.Problem 1. Do database systems provide physical programdata independence? Explain why? [3]Solution:yes the
Maharishi - COMPRO - CS401
SOLUTIONS - CIS209 - INTERNAL - 2004QUESTION 1Part 1 Define the following terms (one or two sentences per term): a) b) c) d) e) f) Data Database Database Management System Security Integrity Views. [1] [1] [1] [1] [1] [1]Data: For end users, this const
Maharishi - COMPRO - CS401
Waqas Javed 982800 Exercise 20.1 Transaction is an action, or series of actions, carried out by a single user or application program, which reads or updates the contents of the database. A transaction is a logical unit of work on the database. It may be a
Maharishi - COMPRO - CS401
Chapter 3The Relational Model Transparencies Pearson Education Limited 1995, 2005Chapter 3 - Objectivesx x x x x x xTerminology of relational model. How tables are used to represent data. Connection between mathematical relations and relations in the
Maharishi - COMPRO - CS401
Chapter 2Database Environment Transparencies Pearson Education Limited 1995, 20051Chapter 2 - Objectivesx x xPurpose of three-level database architecture. Contents of external, conceptual, and internal levels. Purpose of external/conceptual and conc
Maharishi - COMPRO - CS401
Chapter 1Introduction to Databases Transparencies Pearson Education Limited 1995, 2005Chapter 1 - Objectivesx x x x xSome common uses of database systems. Characteristics of file-based systems. Problems with file-based approach. Meaning of the term d
Maharishi - COMPRO - CS401
1. A flashing amber (yellow) signal light at an intersection means: 1. Come to full stop 2.1. Only in the daytime 2. At any time 3. If the condition of traffic and the highway permittraffic condition 2. As close to the rear of the other vehicle as possi
Maharishi - COMPRO - CS401
1. A flashing amber (yellow) signal light at an intersection means: 1. Come to full stop 2. Slow down and drive with increased caution 3. Danger dead end highway 4. Signal out of orde 2. A traffic control signal containing the word ?STOP?held out by a per
Wisc Oshkosh - BIO - 390
Metabolite Extraction from Synechocystis 6803 Matt Kunkel with Jake Heier and Rachel Crist Mini-Review Biotechnology 5/12/10Introduction:Metabolites are the intermediate and final products that result from bacterial metabolism. There are two types of me
WVU - CHE - 102
Calculating Changes of Enthalpy, Internal Energy, Volume For a Process of InterestChE 202 Spring 2010Copyright 2010 D.B. Dadyburjor and J. A. ShaeiwitzCalculating Changes of Enthalpy, Internal Energy, Volume H , U , V Why do I care? So we can use the
WVU - CHE - 102
Psychrometrics Problems Involving HumidityChE 202 Spring 2010Copyright 2010 D.B. Dadyburjor and J. A. ShaeiwitzRetrospective Sub-processes consideredChange in pressure at constant temperature Change in temperature at constant pressure Change in T or P
WVU - CHE - 102
Energy Balances with Chemical ReactionChE 202 Spring 2010Copyright 2010 D.B. Dadyburjor and J. A. ShaeiwitzRetrospective Sub-processes consideredChange in pressure at constant temperature Change in temperature at constant pressure Change in T or P at
WVU - CHE - 102
Unsteady State Mass and Energy BalancesChE 202 Spring 2010Copyright 2010 D.B. Dadyburjor and J. A. ShaeiwitzRetrospective Sub-processes consideredChange in pressure at constant temperature Change in temperature at constant pressure Change in T or P at
WVU - CHE - 102
Heats of Mixing (Solution)ChE 202 Spring 2010Copyright 2010 D.B. Dadyburjor and J. A. ShaeiwitzRetrospective Sub-processes consideredChange Change Change Change in in in in pressure at constant temperature temperature at constant pressure T or P at co
WVU - CHE - 230
ChE 230 - Numerical Methods for Chemical Engineering Spring 2010Instructor: Office: Phone: Email: Class: C.D. Stinespring 423 ESB 304-293-9363 charter.stinespring@mail.wvu.edu TR 3:30-5:20 PM / Room 107 MRB (T) - Room 2001 AGS (R)Course Objectives: 1. S
WVU - CHE - 230
ChE 230 Spring 2010 Problem Set 1 1/12/10-1/19/101. The velocity (V) of a falling parachutist as a function of time (t) can be calculated using the equation gm V( t ) = ( 1 e ( c / m )t ) c where c is the drag coefficient, g = 9.8 m/s2 is the acceleratio
WVU - CHE - 230
ChE 230 Spring 2009 Problem Set 2 01/19/10-01/26/091. The SRK equation of state is similar to the van der Waals equation and is given by RT a P= V b V( V + b) For N2O Tc = 309.6 K R= 0.08206 L atm/K mole Pc = 72.4 atm a = 0.42748(R Tc)2/Pc = 0.165 b = 0.
WVU - CHE - 230
ChE 230 Spring 2010 Problem Set 3 01/28/10-02/04/101. Three matrices are defined as 1 6 A = 3 10 7 4 6 0 B= 1 4 1 1 C= 6 8a) Perform all possible matrix multiplications that can be computed between pairs of matrices. b) Justify why the remaining pairs
WVU - CHE - 230
ChE 230 Spring 2010 Problem Set 4 02/04/10-02/11/101. (Linear equations) A separation system takes the feed (F) consistin of three species (A,B, and C) as shown in the diagram below and creates the three exit streams (V, S, L) each with a different compo
WVU - CHE - 230
ChE 230 Spring 2010 Problem Set 5 03/02/10 03/09/101. Years of operating data suggest that the time to run a batch reaction to completion is distributed normally with = 1.86 hr and = 1.25 min. a. What is the probability that the reaction time of the next
WVU - CHE - 230
ChE 230 Spring 2010 Problem Set 6 03/09/09 03/16/091. Refer back to Problem 3 on the last Problem Set. Use the same confidence levels. a. Based on the 48 data points, was the variance of the reaction temperature really 1.95 in the past? b. Repeat part (a
WVU - CHE - 230
ChE 230 Spring 2010 Problem Set 7 03/16/10 03/23/101. The vapor pressure (P*)of ethylene glycol at several temperatures is given below: T (oC) P* (mm Hg) 79.7 5.0 105.8 20.0 120.0 40.0 141.8 100.0 178.5 400.0 197.3 760.0Using Mathcad, Polymath and hand
WVU - CHE - 230
ChE 230 Spring 2010 Problem Set 8 04/06/10 - 04/13/101. The heat capacity at constant pressure of a gas is determined experimentally at several temperatures with the following results:T (oC) CP (J/mol oC)0 33.5100 35.1200 36.7300 38.4400 40.2500 4
WVU - CHE - 230
ChE 230 Spring 2010 Problem Set 9 04/13/10 - 04/20/101. The mass balance for a chemical in a completely mixed reactor can be written asdC = F QC kVC2 dt where V = reactor volume (10 m3), C = concentration (g/m3), F = feed rate (200 g/min), Q = flow rate
WVU - CHE - 102
WVU - CHE - 102
WVU - CHE - 102
WVU - CHE - 102
WVU - CHE - 102
Energy BalancesChE 202 Spring 2010Copyright 2010 D.B. Dadyburjor and J. A. ShaeiwitzRetrospective 1Last SemesterMaterial balances(Flow + steady-state) or (batch) With/out reaction Single/multiple units Non/ideal gas Single-phase or liquid-vapor (equ
WVU - MATH - 251
WVU - MATH - 251
WVU - MATH - 251
WVU - MATH - 251
WVU - MATH - 251
WVU - MATH - 251
WVU - MATH - 251
WVU - MATH - 251
WVU - MATH - 251
WVU - MATH - 251
WVU - MATH - 251
WVU - MATH - 251
WVU - MATH - 251
Math 251 Section 3: Review for Test2Test2 covers Section10.1 through Section 10.7 (except for 10.6) in calculus. Here is the highlight of each section. Section10.1 The distance between two points; the equation of a sphere. Section10.2 Vector addition, su
WVU - MATH - 251
Math 251 Section 3: Review for Test3Test3 covers Section10.6, 10.8, 10.9, 11.1, 11.2, 11.3 and Vector Space (supplementary notes) with a little emphasis on 10.9, 11.2 and 11.3. Here is the highlight of each section. Section10.6 Sketch the graph of cylind
WVU - MATH - 251
Math 251 Section 4: Review for Test4Test4 covers Section11.4 through Section12.2 (except for Section11.8). Here is the highlight of each section. Section11.4 Find the equation of the tangent plane to a given surface (the formula will be given in the test
WVU - MATH - 251
Math 251 Section 3: Review for Final ExamThe Final Exam (8:00 am 10:00 am, Fri, May 7) covers Section10.1 through Section12.7 except for 10.6, 10.8, 10.9, 11.7, 11.8, 12.4 and 12.6. Here is the highlight of each section with some examples for reference.
WVU - CHE - 202
Rev May-10West Virginia University Department of Chemical Engineering Written Design ReportsThe format for presenting a written design report differs from that of a laboratory report. A laboratory report is more of a scholarly endeavor in which a scient
WVU - CHE - 202
CHE 202Material and Energy Balances 2 Spring 2010DadyburjorGROUP _MEMBERS:_Detailed comments will be found in the written report ORAL Time management Outline, Bottom line, PFD early Results-Discussion: Mentioned important items Overheads number Size,
WVU - CHE - 202
Rev Apr-10West Virginia University Department of Chemical Engineering Oral ReportsWhen presenting an oral report it is important to realize that the audience cannot digest material in the same way as they can when reading a report. There will be no time
UC Davis - EMS - 164
EMS 164 - Homework 1 Solutions 1. Define in your own words the following terms: enthalpy, entropy, free energy, eutectic. Give examples of systems composed of one phase and two phases. For the latter, indicate the two phases (hint: you may consider some m
UC Davis - EMS - 164
EMS 164- Homework 2 Solutions 1. Complete the construction of the phase diagram from the following information (started in our discussion on April 9): (10 points) a) Component A melts at 1600 C and B at 1400 C b) An intermediate compound (50A-50B) melts c
UC Davis - EMS - 164
EMS 164- Homework 3 Solutions 1. In a graphical representation show that diffusion occurs down the chemical potential gradient in a diffusion couple made of two solid solutions with compositions within a miscibility gap (class problem). (Not graded) Figur
UC Davis - EMS - 164
EMS 164- Solutions for Homework 4 Problems 2.3 and 2.7 in textbook 1.Dendritic segregation, or coring, is very common in alloy castings. Segregation can be removed by a homogenizing anneal. The dendritic arm spacing is assumed to equal 2l (sinusiodal wave