Sunteți pe pagina 1din 8

SCHOOL OF COMPUTER SCIENCE AND ENGINEERING

Fall Semester 2019-20


CAT-II
E2 Slot

Course Name: Internet and Web Programming Course Code: CSE3002


Duration : 90 minutes Max. Marks : 50

Answer All the Questions

1. (i) Validate the given user input is the VIT University student register number or not. If
it’s not a valid VIT University student register, throw an exceptions as “wrong input
format”. [CO3] [4]

(ii) Using JavaScript display the simple clock. Pause the clock, whenever user move their
mouse pointer on the clock. [CO3] [6]

2. Develop the PHP web application to allow the user to upload the file and perform the
followings [CO4] [4+4+6+6]
a. The uploaded file should contain only Student_reg_no, CAT1 Marks(for three courses-
CSE3002, CSE3003,CSE3004) separated by comma or hyphen.
b. Check for the duplication of a file, if it is already exists ask the client to upload a new
file. If file is not already exists, store the file in a server as “Student_reg_no.txt” (ex:
18BCE0001.txt)
c. After successfully saved the file in to a server, open the uploaded file and update the
student marks in an individual file for CSE3002 CAT1 mark in “CSE3002.txt”,
CSE3003 CAT1 mark in “CSE3003.txt” and CSE3004 marks in “CSE3004.txt” file.
d. Show the class average, class highest mark for CSE3002 course in alert box.

3. Design the below form to perform the following using PHP with MySQLi database
[CO5] [3+3+4]

(a) Upon form submission server side script must receive the user input to process
remaining operations.
(b) Display the count of totally how many movies are exactly matched with user input in
movies table.
(c) Display all movies name which contains(part of movie name) user input in sorted order
format.

4. (i) Rewrite the following XML code into well format, error free XML code.[CO6] [7
Marks]
<!-- This is Theory -- Component -->
<Course Name="IWP" Code="CSE3002" Slot="E2" Venue="SJT514"
Strength=70 CourseType ="Theory">
<!-- This is J -- Component -->
<Course Name="IWP" Code="CSE3002" Slot="E2" Strength=70 CourseType
="J" >
<condition><condition1> 10 < 100 </condition1> 100 > 10 </Condition>

(ii). Write down the output of updated(well formatted and corrected error free) 4(i)
XML code in a web browser. [CO6] [3 Marks]

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