Taif University: Lab - Final Exam, Spring 2020
Taif University: Lab - Final Exam, Spring 2020
Taif University
College of Computer Science and Al-Haweiyah Campus, Al-Taif,
Information Technology Makkah Province
Kingdom of Saudi Arabia
Lab – Final Exam, Spring 2020 Phone: +966 2 727 2020
502361-3: Systems Analysis & Design Fax: +966 2 727 4299
Date: 14/04/2020 (Tuesday) cit.tu.edu.sa
www.tu.edu.sa
Question 1: Consider the following scenario and answer the following questions:
Scenario:
Instructor teaches a Subject. We capture the instructor information for example instructor id, name,
department and email. And also capture the details of subject for example course code, course name.
Student attends the Lab Session. Lab session is taken by Instructor.
We capture student details for example student id, student name, department. We capture the Lab
session details for example, Lab No, time, date, course id.
Note: - If you think there would be any other important attribute(s) must be captured, then please add
from your side.
a) What is Entity, attribute and relationship? Please write all entities name, attributes of entities
separately and relationships between entities. And also define the Primary key and Foreign key
for each entity. 5
Answer:
1-Instructor 2-Student 3-Course 4-Department
1.1-Id (PK) 2.1-Id(PK) 3.1-Id(PK) 4.1-Id(PK)
1.2-Name 2.2-Name 3.2-Name 4.2-Name
1.3-Department Id(FK) 2.3-Instructor id(FK)
2.4Course ID(FK)
Answer:
Taif University
College of Computer Science and
Information Technology
Taif University
College of Computer Science and
Information Technology