Final Exam DB1 2021 Model 1 Solved
Final Exam DB1 2021 Model 1 Solved
Damietta University
Course Name: Database Systems
Faculty of Computers and Information
Grade: Level 02
Total Grade: Max. 50 marks
Time Allowed: 2 hours
June 9, 2021
Final Exam - Model 1
Question 1: Choose the correct answers and label them in your answer sheet: (20 Marks)
1. A subclass can be a subclass in more than one class/subclass relationship; this is referred to
as ……….
A. specialization lattice B. strict hierarchy
C. generalization D. specialization hierarchy
2. ………… schemas correspond to different views of the data.
A. Conceptual B. External C. Internal D. Physical
3. Aggregate functions can be used only in the SELECT list and in the ……...clause.
A. Where B. Having C. Order by D. Group by
4. What is the purpose of the AS clause in SQL?
A. used to change the name of a column in the result set or to assign a name to a derived column
B. used with the ORDER BY clause only
C. defines a search condition D. All of the mentioned
5. an entity that is a member of a …………. inherits all the attributes and relationships of the entity
as a member of the ……….
A. Superclass / subclass B. Subclass / Superclass
C. Subclass / Subclass D. Superclass / Superclass
6. ………… system prevents unauthorized users accessing the database.
A. Integrity B. Security C. Concurrency control D. Recovery
7. 14.Which of The SQL Statements Is Correct?
A. SELECT Username, Password WHERE Username = 'user1'
B. SELECT Username AND Password FROM Users
C. SELECT Username, Password FROM Users D. None of These
8. Which of the following are the five aggregate functions provided by SQL?
A. SUM, AVG, MIN, MAX, MULT B. COUNT, SUM, AVG, MAX, MIN
C. SUM, AVG, MULT, DIV, MIN D. SUM, AVG, MIN, MAX, NAME
Question 3: Choose the correct answers and label them in your answer sheet: (20 Marks)
1. A ………is a class that has no subclasses of its own.
A. shared subclass B. leaf node C. partial subclass D.general superclass
2. A …………is simply a collection of records, which contains logically related data.
A. file B. record C. tuple D. A catalog
3. …………. system allows shared access of the database.
A. An Integrity B. A security C. A concurrency control D. A recovery
4. Which of the following SQL clauses is used to remove tuples from a database table?
A. DELETE B.REMOVE C.DROP D. CLEAR
5. A ………. attribute represents a value that is derivable from the value of a related attribute or set
of attributes, not necessarily in the same entity.
A. composite B. derived C. simple D. single
6. ……… key is the candidate key that is selected to identify tuples uniquely within the relation.
A. Foreign B. Super C. Primary D. Composite
7. ………. entity type an entity type that is existence-dependent on some other entity type.
A. Strong B. Weak C. Owner D. Composite
MODEL 1 Page 3/4
8. ……. is a virtual relation representing the dynamic result of one or more relational operations
operating on the base relations to produce another relation.
A. base relation B. view C. sub relation D. composite relation
9. The result of a SQL SELECT statement is a(n) ………….
A. file B. relation C. file D. form
10. …… is an attribute, or set of attributes, within one relation that matches the candidate key of
some other (possibly the same) relation.
A. Foreign B. Super C. Primary D. Composite