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

CSCI426 Sample Midterm

Uploaded by

AbuSaMrA /Gaming
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)
51 views3 pages

CSCI426 Sample Midterm

Uploaded by

AbuSaMrA /Gaming
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

CSCI426 Sample Midterm Exam

Lebanese International University - All Campuses


School of Arts and Sciences - Department of Computer Science
Course : Advanced Web Programming Course Code : CSCI426
Name
Date : Section :
Instructor : Time
Auditorium : Seat Number :

Number of pages : 03 Allowed Time : 60 minutes


Documents : Not Allowed Calculators : Not Allowed

Problem# Grade Total Grade


Part I
Question 1 /20
Part II
Question 1 /40
Question2 /40 /100

Good Luck

Page 1 of 3
CSCI426 Sample Midterm Exam

Server Side Website (Airline Site)

We want to create a simple website that helps the admin to add more flights to table flight.

Part I: Creating the Database (20 points)


Create the Database called Airline , containing the 2 tables’ structures:
Flight (FlightID, FromCity, ToCity, Price)

A sample data could be:

Flight (1, “Beirut”, “London”, 1300)


Flight (2, “Beirut”, “Paris”, 1500)
Flight (3, “Geneve”, “Beirut”, 1500)
Flight (4, “USA”, “Beirut”, 1600)

Part II: Creating web pages


Question 1: Flight Data (40 points)

The index.php page displays all the data in the flight table created in the first part .

Question 2: Adding a flight (40 points)

As user clicks the link “Add Flight” , add.php page allows user to enter a new record to Flight
table as shown below.

Page 2 of 3
CSCI426 Sample Midterm Exam

Write the necessary PHP code for add.php to add a new flight to the Database. Make sure that not all
attributes are empty. Make sure that price includes numeric values

Make sure to save the below files in your Midterm exam folder:
- index.php, add.php
- the database airline.sql file using export DB

Nam ethe folder as your: yourname_ID_CSCI425_MidtermExam


Note that cheating will be rewarded with an F grade. Make sure to submit on time,
otherwise, you will lose points

Good Luck

Page 3 of 3

You might also like