1. NATIONAL INSTITUTE OF TECHNOLOGY JAMSHEDPUR
AUTUMN SEMESTER 2016-17
Department of Computer Science and Engineering
End Semester Examination
Course Code: CS704A B.Tech. 7th
Semester Course Title: Web Technology
Date: 05/12/2016 Course Instructor: Ansuman Mahapatra
Duration: 3 Hours Maximum Marks: 40
All Questions are compulsory. Read Q2 completely then write the code..
1. Justify each answer with suitable example. [2×5]
a. What are cookies? How they are different from sessions?
b. How to merge and split a cell in html table?
c. Write a JS code to search a substring “is”, in a sentence and replace it to “are”.
d. Write a CSS code to change text colour of a line when mouse hover.
e. Write a code to sort a XML document containing student information by student name.
2. Use HTML, JavaScript, CSS, PHP, SQL to design the following services. [5+5+5+5+6]
a. Use PHP to create a CSE student database having a table with schema; std (roll_no, name, semester,
sex, grade, reg_status, phone_no, email_id, profile_pic).
b. Design a login page for an administrator. Assume database contains admin’s login data.
c. After login admin may do following operations;
i. Create a HTML form which will take information about a student. It has following form elements;
• Name, Roll, grade, phone number, e-mail id as textboxes
• Male and Female radio buttons
• Semester information can be provided by drop-down list
• Registration status for a semester using radio button
ii. Apply validations on each n each of the above field at client-side before posting it to server.
iii. After posting the form the data will be checked for validation at server-side and then inserted into
the database. Display error or success message to the client after this operation.
iv. Create a search box to search any student from the database based on roll number.
v. Admin can see retrieve the whole database into a php page as tabular format and can delete any
student’s information from the database. Provide checkbox for each record/row to select for
deletion and a delete button. Before deletion ask admin to enter its admin password.
d. Admin wants to perform the following report generation operations;
i. Display the student’s name and roll number who are not yet registered.
ii. Display the student’s name and roll number who aren’t eligible to sit in campus.
e. Create a student login portal. Students may do following operations after login;
i. check their grades
ii. update new phone number and e-mail id
iii. upload a photo to set as their profile picture
3. Assume we have stored the above SQL student database in a XML file. Write a XSLT code to find students
who have not yet registered. [4]
-------------------------------------