1. Given the STUDENTS relation as (a) Relationship R is one-to-many and
shown below the participation of A in R is total. Student Student Student Email Student CPI (b) Relationship R is one-to-many and ID Name Age the participation of A in R is 2345 Shankar shankar@math X 9.4 partial. 1287 Swati swati@ee 19 9.5 (c) Relationship R is one-to-one and 7853 Shankar shankar@cse 19 9.4 9876 Swati swati@mech 18 9.3 the participation of A in R is total. 8765 Ganesh ganesh@civil 19 8.7 (d) Relationship R is one-to-many and For (Student Name, Student Age) the participation of A in R is to the key for this instance, the partial. value X should not be equal to 5. Which of the following is NOT a (a) 19 (b) 20 superkey in a relational schema (c) 21 (d) 22 with attributes V, W, X, Y, Z and 2. The maximum number of primary key VY? superkeys for the relation scheme (a) VXYZ (b) VWXZ R(E, F, G, H) with E as the key is (c) VWXY (d) VWXYZ ___ 6. A prime attribute of a relation (a) 8 (b) 9 schems is an attribute that appears (c) 10 (d) 11 (a) In all candidate keys of R. 3. In an Entity-Relationship (ER) (b) In some candidate key of R. model, suppose R is a many-to-one (c) In a foreign key of R. relationship from entity set E1 to (d) Only in the primary key of R. entity set E2 Assume that E1 and 7. Given the basic ER and relational E2 participate totally in R and that the cardinality of E1 is greater than models, which of the following is the cardinality of E2 INCORRECT? Which one of the following is true (a) An attribute of an entity can have about R? more than one value (a) Every entity in E1 is associated (b) An attribute of an entity can be with exactly one entity in E2 composite (b) Some entity in E1 is associated (c) In a row of a relational table, with more than one entity in E2. an attribute can have more than (c)Every entity in E2 is associated on value with exactly one entity in E1. (d) In a row of a relational table, an (d) Every entity in E2 is associated attribute can have exactly one with at most one entity in E1. value or a NULL value 4. An ER model of a database 8. Which one of the following option consiste of entity types A and B. is INCORRECT? These are connected by a (a) BankAccount_Num is a candidate relationship R which does not have key its own attribute. Under which one (b) Registration_Num can be a of the following conditions, can primary key the relational table for R be (c) UID is a candidate key if all merged with that of A? student are form the same country
(d) If S is a superkey such that 11. Consider the following ER diagram
S UID is NULL then S UID is also a superkey 9. Consider arelation table with a The minimum number of tables single record for each registered needed to represent M, N, P, R1, R2 is student with the following (a) 2 (b) 3 attributes. (c) 4 (d) 5 1. Registration_Num; Unique 12. Which one of the following is used resistration number of each to represent the supporting many- registered student one relationships of a weak entity 2. UID: Unique identity number, set in an entity-relationship unique at the national level for diagram? each citizen (a) Ovals that contain underlined 3. BankAccunt_Num: Unique identifiers account number at the bank. A (b) Rectangles with double/bold student can have multiple border accounts or join accounts. This (c) Diamonds with double/bold attribute stores the primary border account number. (d) Ovals with double/bold border 4. Name: Name of the student 13. Which one of the options given 5. Hostel_Room: Room number of below refers to the degree (or arity) the hostel of a relation in relational database Which one of the following option systems? is INCORRECT? (a) Number of attributes of its relation (a) BonkAcoount_Num is a candidate schema key (b) Number of tuples stored in the (b) Registration_Num can be a relation. primary key (c) Number of entries in the relation. (c) UID is a candidate key if all (d) Number of distinct domains of its students are from the same relation schema country 14. Consider the following statements (d) If S is a superkey such that S1 and S2 about the relational data S UID is NULL then S UID is model: also a superkey S1: A relation scheme can have at 10. Consider the following ER diagram most one foreign key. S2: A foreign key in a relation scheme R cannot be used to refer to tuples of R. Which of the following is a correct Which one of the following choices attribute set for one of the tables is correct? for the correct answer to the above (a) S1 is false and S2 is true question? (b) Both S1 and S2 are false (a){M1,M2,M3,P1} (c) Both S1 and S2 are true (b) {M1,P1,N1,N1} (d) S1 is true and S2 is false (c) {M1,P1,N1} (d) {M1, P1}
15. In E-R model, Y is the dominant (a) Schema (b) Subschema
entity and X is a subordinate (c) Virtual table (d) None of these entity 19. Immunity of the external schemas (or application programs) to (a) If X is deleted, then Y is also changes in the conceptual schema deleted is referred to as: (b) If Y is deleted, then X is also (a) Physical Data Independence deleted (b) Logical Data Independence (c) If Y is deleted, then X is not (c) Both (a) and (b) deleted (d) None of the above (d) None of the above 20. Consider the following table in a 16. Consider the entities ‘hotel room’, relational database and ‘person’ with a many to many relationship ‘lodging’ as shown Last Rank Room Shift below: Name Smith Manager 234 Morning Jones Custodian 33 Afternoon Smith Custodian 33 Evening If we wish to store information Doe Clerical 222 Morning about the rent payment to be made by person (s) occupying different (a) {Last Name} (b) {Room} hotel rooms, them this information (c) {Shift} (d) {Room, Shift} should appear as an attribute of (a) Person (b) Hotel Room (c) Lodging (d) None of these The information should appear as an attribute of lodging, because this is the only common attriubute that relating to the hotel room and person. The information should appear as an attribute of lodging, because this is the only common attribute that relating to the hotel room and person. 17. Which symbol denote derived attributes in the ER Model? (a) Double ellipse (b) Dashed ellipse (c) Squared ellipse (d) An ellipse with attribute name underlined 18. A view of database that appears to an application program is known as