You are on page 1of 3

Final: 27-3-2019

ALLAMA IQBAL OPEN UNIVERSITY, ISLAMABAD


(Department of Computer Science)
WARNING
1. PLAGIARISM OR HIRING OF GHOST WRITER(S) FOR SOLVING
THE ASSIGNMENT(S) WILL DEBAR THE STUDENT FROM
AWARD OF DEGREE/CERTIFICATE, IF FOUND AT ANY STAGE.
2. SUBMITTING ASSIGNMENT(S) BORROWED OR STOLEN FROM
OTHER(S) AS ONE’S OWN WILL BE PENALIZED AS DEFINED IN
“AIOU PLAGIARISM POLICY”.
Course: Database Applications (3579/3426) Semester: Spring, 2019
Level: P.G.D (CS)/MBA (IT) Total Marks: 100
Pass Marks: 40
ASSIGNMENT No. 1
(Units: 1 – 4)
Note: All questions are compulsory.
Q. 1 (a) What is the difference between data and information? Elaborate different
types of data that we need to store. (20)
(b) What is an attribute? Explain different types of attributes.
(c) Define primary key? Explain with example, different types of keys.

Q. 2 Differentiate the following with suitable examples: (20)


(a) Entity type & entity instance
(b) Degree & Cardinality
(c) Candidate key & Primary key
(d) Create table & Alter table

Q. 3 The figure below shows a class list for AIOU. Convert this user view to a set of
3NF relations. Assume the following: (20)
(a) An instructor has a unique location
(b) A student has a unique major
(c) A course has a unique title.

Allama Iqbal Open University


Class List — Spring 2019
Course Code: 3402
Course Title: Programming Concepts
Instructor Name: Yash Khan
Instructor Location: R420
Student ID. Student Name Major Grade
25210 AA SE01 A+
23735 BC DF02 B+
27265 CD SE03 C+
27399 DE DB04 D+
… … … …
Q. 4 Draw E-R Model for the following scenario: (20)
A company has a number of employees. The attributes of ‘Employee’ included
Name, Address, Phone No., and Date of Birth. The company has also several
projects. Attributes of ‘Project’ include Code, Description, and Start date. Each
employee may be assigned to one or more projects, or may not be assigned to a
project. A project must have at least one employee assigned, and may have several
employees assigned.

Q. 5 (a) Enlist and explain components of Entity Relationship Diagram with suitable
examples. (20)
(b) What do you mean by items? Give list form item types and their description.

ASSIGNMENT No. 2
(Units: 5–8)
Total Marks: 100 Pass Marks: 40

Note: Each question carries equal marks.


Q. 1 (a) What are functional dependencies? How a functional dependency is different
from a relationship between two entities? Explain with suitable examples. (20)
(b) Consider the following un-normalized database
UNF:
Customer [ custno, cust_name, cust_addr, cust_phone, ( artist_id,
artist_name, art_title, pur_date, price) ]

The following FDs hold for the database:


cusstno  cust_name, cust_addr, cust_phone
cusno, art_code, pur_date  price
art_code  art_title, artist_id, artist_name
artist_id  artist_name
Convert the database in to 3NF.

Q. 2 (a) Differentiate data administrator and database administrator. Also write down
the responsibilities of each in detail. (20)
(b) Write down the steps to create a simple form application to maintain
information of employees of a company.

Q. 3 Describe the following SQL commands with a suitable example: (20)


Select, Where clause, Order By, Insert Into, Update and Delete, Like, Between,
SQL Joins (Inner, Left, Right, Full, Self), Union, Group By, Having and Select Into

Q. 4 (a) Write down steps to create tabular report to list information about employees
of an organization. (20)
(b) What is meant by a form object type? Give list of different object types and
their description.

Q. 5 (a) Explain some of the important SQL Functions with the help of examples. (20)
(b) Write down steps to create a simple form application to maintain information
of employees of a company.


2
AIOU–AS-212(19)/PPU–27-3-2019–100.

You might also like