0% found this document useful (0 votes)
1 views3 pages

Dbms Mid Answer

This document outlines an exam for a Database Management Systems course, including multiple-choice questions and practical SQL tasks. The exam is scheduled for July 28, 2024, and consists of two main questions covering key concepts and schema-related queries. Students are required to answer questions related to database definitions, constraints, and SQL statements for data retrieval.

Uploaded by

mhmdhamd5347
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)
1 views3 pages

Dbms Mid Answer

This document outlines an exam for a Database Management Systems course, including multiple-choice questions and practical SQL tasks. The exam is scheduled for July 28, 2024, and consists of two main questions covering key concepts and schema-related queries. Students are required to answer questions related to database definitions, constraints, and SQL statements for data retrieval.

Uploaded by

mhmdhamd5347
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/ 3

Faculty of Computers & AI

Database management
Course systems
Time allowed: 1 hour
Code: CSC125 Marks: /20
Level: 1 Date of Exam: 28/7/2024

Student Name:…………………………………….……. ID :………………….……..


Question # 1: Choose the correct answer for the following questions (1 mark/question)
1. ---------- is used to simplify the processes of defining, constructing, manipulating database
a. File system b. Database management system c. Database system d. otherwise
2. ----------- is include functions such as querying and update the database
a. DB design b. DB constructing c. DB manipulating d. DB sharing
3. In ---------- data definition is typically part of the application programs
a. File System b Database system c. DBMS d. Otherwise
4. -------- is used to specify user views and their mappings to the conceptual schema
a. DDL b. SDL c. VDL d. DML
5. Which of the following stages are used to specifying the data types, structures, and constraints of
the data to be stored in the database.
a. Defining b. Constructing c. sharing d. otherwise
6. In -------- architecture there are intermediate layer which called the application server or the Web
server
a. Centralized b. Two- Tier c. Three-Tier d. n-Tier
7. The most important advantages of relational databases:
a. Repetition. b. Impossibility of making a backup during short time.
c. Verifying the principle of data integration. d. Low Productivity

8. Key Constraints is --------- constraints


a. Inherent model-based b. Schema-based c. Application-based d. Otherwise
9. --------- whose values are used to identify rows in the relation
a. Super key b. Secondary key c. Primary key d. Foreign key

Question # 2: for the blow schema answer the following questions (mark/question)

1. What is the primary key of DEPT_LOCATIONS Relation? ( Dnumber , DLocation) (1 mark)

2. What is the foreign keys of EMPLOYEE Relation? (2 mark)

Super_SSN reference Ssn and Dno reference Dnumber in DEPARTEMENT table

Page 1 of 3
3. Write DDL to create DEPARTEMENT Relation (3 mark)

4. What is the degree of PROJECT relation? (1 mark)


four

Page 2 of 3
5. Retrieve the name and address of all employees who work for the
‘Research’ department (2 mark)

6. Write SQL statement to retrieve the names of all employees in department 5 who work more than
10 hours per week on the ProductX project. (2 mark)

Select Fname
From Employee , deparment ,project, works_on
Where dno= dnumber
and dno=5
and pno=pnumber
and pname= “ProductX”
and Ssn=Essn and hour>10

End of Exam

With best wishes for success


Dr.

Page 3 of 3

You might also like