0% found this document useful (0 votes)
81 views4 pages

Final Exam DB1 2021 Model 1 Solved

Uploaded by

yg19308
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views4 pages

Final Exam DB1 2021 Model 1 Solved

Uploaded by

yg19308
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Academic Year: 2020/2021

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

MODEL 1 Page 1/4


9. The GROUP BY is use with the …………statement only.
A. SELECT B. CREATE C. UPDATE D. INSERT
10. In SQL; the ORDER BY clause is used to order the ……. of the resulted table.
A. attributes B. tuples C. relationships D. names
11. ……….is an entity type that is a distinct subgrouping of occurrences of an entity type,
which require to be represented in a data model.
A. Subclass B. Member C. Superclass D. Regular
12. The ………..of a relation is the number of tuples it contains.
A. Degree B. Cardinality C. electivity factor D. tuples
13. ……… is the set of allowable values for one or more attributes.
A. Null B. Key C. Domain D. Constraint
14. In relational database the PK must has two properties ……..
A. Minimal & Unique B. Irreducible & Composite
C. Derived & Minimal D. Composite & Minimal
15. …… is the process of minimizing the differences between entities by identifying their common
characteristics.
A. Generalization B. Union C. Inheritance D. Specialization
16. ……….is an entity type that includes one or more distinct subgroupings of its occurrences,
which require to be represented in a data model.
A. Subclass B. Member C. Superclass D. Regular
17. Which one of the following SQL statements is correct?
A. UPDATE table_name SET attribute1 = ‘new_value1’, attribute2= ‘new_value2’ WHERE attribute1 =
‘old_value1’;
B. UPDATE table_name SET attribute1= ‘new_value1’ AND attribute2= ‘new_value2’ WHERE attribute1 =
‘old_value1’;
C. UPDATE attribute1, attribute2 SET ‘new_value1’, ‘new_value2’ WHERE attribute 1 = ‘old_value1’;
D. UPDATE attribute1, attribute2 SET ‘new_value1’ AND ‘new_value2’ WHERE attribute 1 = ‘old_value1’;
18. A………. attribute represents a value that is computed 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
19. ………. is a complete definition or description of the database structure and constraints stored
in the catalog.
A. DBMS B. Database Application C. Meta-data D. Program
MODEL 1 Page 2/4
20. ………….schemas correspond to different views of the data.
A. Conceptual B. External C. Internal D. Physical
Question 2: State True or False (10 Marks)
1. An SQL query can contain a HAVING clause even if it does not have a GROUP BY clause.
2. SQL includes both data definition language and data maintenance language.
3. leaf node is a class that has no subclasses of its own.
4. Backup and recovery services are improved using the database approach.
5. Integrity system is the one responsible for restoring the database to a previous consistent state
following a hardware or software failure.
6. Atomicity of updates is one of the relational database advantages.
7. In the ERD; the oval represent relationship between two entities.
8. The attributes in FK may have values other than the domain(s) of the primary key attributes PK
9. The data administrator is responsible for the physical realization of the database, including physical
database design and implementation.
10. In the relational database the order of attributes has no significance;

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

End Of Exam MODEL 1 Page 4/4


Best wishes. Dr. Amira El-Zeiny

You might also like