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

Taif University: Lab - Final Exam, Spring 2020

This document contains instructions for a final exam for a Systems Analysis and Design course at Taif University. It provides details of a scenario involving instructors teaching subjects, students attending lab sessions, and asks students to: 1) Identify the entities, attributes, relationships, primary keys and foreign keys 2) Draw an entity relationship diagram The scenario involves capturing information about instructors, students, courses, departments and their relationships through teaching, attending labs, and department affiliations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views3 pages

Taif University: Lab - Final Exam, Spring 2020

This document contains instructions for a final exam for a Systems Analysis and Design course at Taif University. It provides details of a scenario involving instructors teaching subjects, students attending lab sessions, and asks students to: 1) Identify the entities, attributes, relationships, primary keys and foreign keys 2) Draw an entity relationship diagram The scenario involves capturing information about instructors, students, courses, departments and their relationships through teaching, attending labs, and department affiliations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Taif University

Department of Information Technology

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

Student ID: 43708717 Student Name: Hamdan Almalki


Prof-in-charge Dr. Jehad Faisal Section: 3093
Total No of pages 2 Max Marks: 10 Obtained Marks

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)

b) Draw a complete ER diagram for above scenario. 5

Answer:
Taif University
College of Computer Science and
Information Technology
Taif University
College of Computer Science and
Information Technology

You might also like