Sunteți pe pagina 1din 5

No of Pages: 5

University of Sri Jayewardenepura


Faculty of Management studies and commerce
End Semester Examination: Year I, Semester II (August 2011)
ITC1321 Introduction to Information Technology II
Duration: One and half (1 ) hours

Marks
Q1

Index No

Q2

Login No

Q3

Lab

Q4

Time

Total

Question 01
Nenasa is a library facility which is fully funded and maintained by a charitable organization.
At present, the library is equipped with nearly 20,000 books belonging to various categories
including Literature, History , Health and medical sciences, Social science and Law. A detailed
record is kept for each book in the library and it includes the properties like Title, Author,
Publisher, Category, Date of Entry etc. There may be multiple copies of the same book, but each
of these is also assigned with a unique reference number. (i.e. They do not share the same
reference number).
The Library provides lending service only for its registered members. Registration is provided for
a period of one year upon payment. A registered member is issued with an identification number
which they subsequently use when borrowing the books. The library is keeping full detailed
records for each of its registered members. Name, Gender, Age, Date of Registration and Date of
Expiry are some of the details stored about the members.
Books are lent for one day. Each member is allowed to borrow a maximum of two books per day.
The library keeps records on each borrowing action of the members. These records generally
include the details such as Lending No, Member, Book, Date of Lend etc.
When a book borrows by a member the system want to record the staff members detail in the
lending detail. The library is headed by a senior librarian and assisted by two assistant librarians.
You are required to draw a suitable database design for the Nenasa Library by considering the
above scenario. Your solution should include the following.

Relevant Entities and their attributes

Primary keys , foreign keys

Relationships among the entities and their type


Total Marks 20

Question 02
ABC Movie (Pvt) Limited is a movie rental shop and they are maintaining a database consist with
four tables (Customer, Movies, Movie Copies and Movie Transaction). Create a database in your
exam folder using MS Access software and save it with your Index Number.
You have to create 04 tables and specifications have given in the following table. First column
contains table names and the second column contains the field names of each table. The last
column gives you some additional information and you should change appropriate settings to
satisfy the given additional information. If an additional detail is blank for a field it means no
additional settings for those fields.
Table Name
Field Name
Customer Table NICNo
FName
LName
TelNo
Email

Movies Table

MovieID
MovieTitle
YearMade
MediaType

Movie
Table

Copies CopyID
MovieID

Movie
Transaction
Table

TransactionID
NICNo
CopyID
DateHired
DateReturned
Payment

Additional details of the field


User should be able to enter 10 characters. This is the primary
Key

User should be able to send an email directly when the email


address field is clicked
Insert a mask to this field considering all MovieIDs are
starting letter M and has 4 digits.

User should be able to select CD, DVD and Tape from a list
for this field
This is the primary Key
Could be selected from the list and the list should display
MovieIDs from the Movies table
This is the primary Key

Should be a valid date


Cannot be a negative value. If user enters a negative value, it
should display the message Invalid Number
Total Marks 20

Question 03
Use the Airline Reservation Database that is given in your exam folder for this question.

Part I
a) Create a query to display the following information of passengers; Passport ID, Last Name,

First Name, NIC, Contact Number. Save the Query as Q1

(03 Marks)

b) Create a query to display the Aircraft Names which journey from Colombo to London. Save
the Query as Q2

(04 Marks)

c) Create a query to show the Total No of Seats Booked for each journey. (Display only
Journey ID and No of seats booked). Save the Query as Q3
(04 Marks)
2

d) Create a query to filter/show passenger details when you enter passengers Last Name as the
parameter value to a prompt dialog box. Use Enter Passenger Name as the prompt dialog
box statement. Save the Query as Q4

(04 Marks)

Part II
e) Create a report to display Reservation Details. Group the report details by the PassportID.

Apply the following page setup settings to the document and Save the Report as
ReservationDetails.
Page Size

: A4

Orientation

: Landscape

Margins

: 1 inch for all the sides.

(05 Marks)

f) Create a report to display the following details (JourneyID, AircraftID, StartingFrom,


Destination, NoOfSeatsBooked).Use Journey table and the other relevant access object/s for
creating this report. Save the Report as JourneyDetails
(05 Marks)

Part III
g) Build a form to display passenger/passengers Details. Save the Form as Passengers

(04 Marks)
h) Build a form to display Reservation Details. Insert a button to the form to open the
Reservation details report which was created in part II. Type ABC Airline Reservation
System at the form footer. Apply the given picture Travel Plane.JPG as the form logo.
Save the Form as Reservation.
(06 Marks)
i) Make a form to filter/display Journey Details based on a selected Aircraft ID. (Journey
Details should be displayed in a sub form when you select Aircraft ID from a combo box in
the same form). Save the Form as Aircrafts.
(05 Marks)

Part IV
j) Create a Switchboard for your database to navigate through form/s and report/s using the
structure given below. Forms and Reports should be navigated through Form Menu and
Report Menu respectively.

Main Menu

Form Menu

Report
Menu

Passenger
From
Aircraft
From

Reservation Details
Report
Journey Details Report

Main Menu

Main Menu

(05 Marks)
Total Marks 45
3

Question 04
Use the following table to answer this Question. Answers should be written on the question paper
itself.
Table Name: Members
MemberNo
M01
M02
M03
M04
M05

Name
Anurada
Champika
Nayani
Kanchana
Achini
Madushani
Gayani
Rathnayaka
Mihidu
Fernando

NIC
804560897v

Category
Academic

856789434v

Student

703467879v
835670783v
689056782v

Address
Gangodawila,
Nugegoda
Pasyala

DateJoined
2/9/1999

BooksAllowed
15

3/8/2009

Non
Acadamic
Acadamic

Maharagama

2/8/1998

Colombo 7

4/7/2009

15

Non
Academic

Maharagama

4/2/1999

1. Write a SQL query to display Member number, Name and NIC.

(02 Marks)

2. Write a SQL query to display Member names whose names starting from A

..

(02 Marks)

3. Write a SQL query to delete Achini Madushanis record from the Members Table.

(03 Marks)

4. Write a SQL query to display Member number and name of each Member in ascending
order of date joined.

(04Marks)

5. Nayani Kanchana has changed her address as Negombo. Write a SQL query to update her
record in the Members table.

(04 Marks)
Total Marks 15

University of Sri Jayewardenepura


Faculty of Management studies and commerce
End Semester Examination: Year I, Semester II (August 2011)
ITC1321 Introduction to Information Technology II
Index No

Lab

Login No

Time

Answer for the Question 01

S-ar putea să vă placă și