Sie sind auf Seite 1von 4

WDT- Sumit

Web Development Test for Sumit


14th September 2012

Total Marks: 20
Instructions
Questions 1 to 4,6&7 carry 1 mark each
Question 5 carries 4 marks
Questions 8 and 9 carry 5 marks each
Q1) What is the assumed range of IP address for LAN?___________________________
Q2) What is the default port for MySql?_______________________________________
Q3) Name any scalar function in MySql_______________________________________
Q4) 30) In PHP the error control operator is
a) .
b) *
c) @
d) &
Q5)
Database schema consists of 4 tables:
Company(ID_comp, name)
Trip(trip_no, id_comp, plane, town_from, town_to, time_out, time_in)
Passenger(ID_psg, name)
Pass_in_trip(trip_no, date, ID_psg, place)
Company table has ID and name of the company, which transports passengers. Trip table
has information about trips: trip number, company ID, plane type, departure city, arrival
city, departure time, and arrival time. The passenger table has passenger's ID and
passenger's name. Pass_in_trip table has information about the flights: trip number,
departure date (day), passenger's ID and his place during the flight. We should note that,
- Any trip is being accomplished every day; duration of a flight is less than a calendarday (24 hours);
- Time and date are considered comparatively one time zone;
- The departure time and the arrival time are given to within a minute;
- There can be the passengers bearing the same names (for example, Bruce Willis);
- The place during the flight is a number followed by a letter; the number defines the row
number, the letter (a - d) the place in the row (from the left to the right) in the
alphabetical order;
- Relationships and restrictions are shown in the data schema.

WDT- Sumit

Find the names of the different passengers, which flew more often than others in the same
seat. Output: name and quantity of the flights in the same seat.
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Q6) What does the DESC keyword do in the following query?
SELECT *
FROM MY_TABLE
WHERE ID > 0
ORDER BY ID, NAME DESC
a) It causes the dataset returned by the query to be sorted in descending order
b) It causes rows with the same ID to be sorted by NAME in ascending order
c) It causes rows with the same ID to be sorted by NAME in descending order
d) It causes rows to be sorted by NAME first and then by ID
e) It causes the result set to include a description of the NAME field
Q7) What is the difference between XML and HTML?
a) HTML is used for exchanging data, XML is not.
b) XML is used for exchanging data, HTML is not.
c) HTML can have user defined tags, XML cannot
d) Both b and c above
Q8) Write a code in PHP that generates a table with 100 rows.
Nth row shall have (100-N) cols.
Example- 1st row-99 cols, 2nd row 98 cols.
________________________________________________________________________
________________________________________________________________________

WDT- Sumit
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
Q9) Draw and explain an ER Diagram for Tourism Management system.
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________

WDT- Sumit
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________

Enity Relationship Model

Das könnte Ihnen auch gefallen