Question 1: chose the correct answer(s) ( 30degree) 1) All of the following terms are related to databases EXCEPT for: (a). Data (b). Search (c). Character retrieval (d). Entry 2) Which of the following is generally a benefit of normalisation? (a). Performance is improved (b). Insertion anomalies are avoided (c). Se lection anomalies are avoided (d). Number of tables is reduced (e). None of the above. 3) There are two relations X and Y. Relation X has arity 1 and cardinality 2, relation Y has arity 3 and cardinality 4. Indicate the result of the SQL statement SELECT COUNT(*) FROM X,Y. (The arity of a relation is the dimension of the domain in the corresponding Cartesian product) (a). (b). (c). (d). (e). 4 6 8 Cannot be calculated from the information given None of the above. 4) A lack of normalization can lead to which one of the following problems (a). (b). (c). (d). (e). Lost Updates Deletion of data Insertion problems Deferred مؤجلupdates Deadlock 5) If you had a database with 500 names and addresses of students enrolled at your school and wanted to know the phone number of one particular student, you would: (a). Perform a search of all boys in the database (b). (c). (d). Sort the database and scroll through the records Perform a search using the student's name as the criteria Sort the database in descending order 6) To transform a relation from 2NF to 3NF we must remove which one of the following? (a). (b). (c). (d). (e). All partial-key dependencies All inverse partial-key dependencies All repeating groups All transitive dependencies None of the above 7) Database Schema is: (a)The description of a database. Includes descriptions of the database structure and the constraints that should hold on the database (b) A diagrammatic display of (some aspects of) a database schema (c) component of the schema or an object within the schema (d) Refers to the content of a database at a moment in time 8) Database State: (a). The description of a database. Includes descriptions of the database structure and the constraints that should hold on the database (b). A diagrammatic display of (some aspects of) a database schema (c). component of the schema or an object within the schema (d). Refers to the content of a database at a moment in time 9) Conceptual data models : (a) object-based data models (b) Provide concepts that are close to the way many users perceive data (c) Provide concepts that describe details of how data is stored in the computer (d) (a) and (b) are true 10) Physical data models: (a) object-based data models (b) Provide concepts that are close to the way many users perceive data (c) Provide concepts that describe details of how data is stored in the computer (d) (a) and (b) are true 11- A recursive relationship is a relationship between an entity and ________ . A. itself B. a subtype entity C. an archetype entity D. an instance entity 12- Consider two tables: Quran and reciters ( )المقرئين, that are related by a “1-to-Many” relationship. Given this type of relationship, in which table should the corresponding foreign key be placed? A. Foreign key needed only in Quran table B. Foreign key needed only in reciters table C .Foreign key needed in both tables D. Composite entity must be added, and then foreign keys will be required in both the Quran and reciters tables 13- Which of the following indicates the minimum number of entities that must be involved in a relationship? A. Minimum cardinality B. Maximum cardinality C. ERD D. database resources 14- Properties that describe the characteristics of entities are called: A. entities. B. attributes. B. identifiers. D. relationships. C. 15- Which of the following is NOT a basic element of all versions of the E-R model? A. Entities B. Attributes C. Relationships D. Primary keys 16- 1Consider the relation schemas as follows. works(person name, company name, salary); lives(person name, street, city); located in(company name, city); managers(person name, manager name); where manager name refers to person name. Find the names of the persons who work for company ’FBC’ (company name=’FBC’). ِ(A) (Cname(Dept='Math' (Credits=3(Course)))? (B) Person Name(company_Name=’FBC’(works))? (C) Person Name ( company_Name=’FBC’(works))? (D) Person Name (live (Located_in=’FBC’(works)))? 17- Consider the relation schemas as follows. R1(Sid,Bid,Date); where Sid is sailor ID, Bid is boat ID, date is Boat reservation date S1(Sid,Sname,Rating,Age); Sname is sailor name, Rating is sailor rating, age is sailor age Find the names of the Sailors who reserved Bid=’103’ (a) SName(SalorName=’Sailor’(S1))? (b) SailorName ( Bid=’103’(103))? (c) SName (Bid=’103’ (R1) |x| (S1))? 18- The three subparts of this question use the following E-R diagram. Which of the following statements true? a- Both tables should have the same number of (primary) key attributes. bTable X should have a larger number of key attributes. c- Table Y should have a larger number of key attributes. d- The diagram does not suggest which table might have more attributes in its primary key. 19- In DML Language it is NOT to a- Create information table on the data base. b- Insertion of new data into the data base. c- deletion of information in the data base. d- Updating information in the data base. 20- In ERD “diamond” shape represents a- Attributes. b- Multi valued attribute c- Weak entity set d- Relational set. 21- The description of the database is called the (a) database schema (b) database state or snapshot (c) low level data model (d) physical data model Question 2: ( 10degree) Draw ER diagram with cardinality for the following schema: Add required fields, explain why you add them? 1. an invoice is written by one salesrep but a salesrep writes many invoices 2. a vendor sells many products but a product is bought from one vendor 3. an invoice has one or many products and a product is found on zero, one or many invoices 4. invoice contain(inv_#,invoice date, customer Lname, customer Fname, customer street, customer city) 5. inventory tables have(product ID, product quantity) 6. sales representative (salrepTelephone, salrepLname, salrepFname) 7. product(product ID, product name) 8. vendor( Ven_name, Ven_street, Ven_city, Ven_zip, Ven_tel) INVOICE PK INV_# INV_LINE_ITEM PK PK INV_DATE CUST_LNAME CUST_FNAME CUST_STREET CUST_CITY PROD_QUANTITY PRODUCT SALESREP PK PK SALESREP_ID SALESREP_LNAME SALESREP_FNAME SALESREP_TEL INV_# PROD_ID SELLS PROD_ID PROD_NAME SALESREP_ID VEND_ID SELLS VENDOR PK VEND_ID VEND_NAME VEND_STREET VEND_CITY VEND_ZIP VEND_TEL