Internet programming.pdf - Google Drive

3 downloads 183 Views 70KB Size Report
b) Write CGI program to accept a UNIX Command from HTML file and display. output of command. 4. c) With examples explain
EJ – 826

*EJ826*

VII Semester B.E. (CSE/ISE) Degree Examination, January 2013 (2K6 Scheme) CI7.3 : INTERNET PROGRAMMING Time : 3 Hours

Max. Marks : 100

Instruction : Answer any five question choosing at least two from each Part. PART – A 1. a) Explain internal working of CGI. Give the steps to be followed to execute CGI scripts.

12

b) Write CGI script that delivers a different document depending on whether browser supports graphics or not. Open and display file called mypicture gif. 2. a) With perl script explain GET and POST method.

8 10

b) Write CGI program to accept a UNIX Command from HTML file and display output of command.

4

c) With examples explain following SSI directives i) exec ii) Include.

6

3. a) Write HTML document with form for conducting survey on favourite Engg. College. CGI script that processes the form results and places them in file, and CGI script that reads the text file and display tabulated results as pie graph. 12 b) Explain how Static and Dynamic contents are served in a web.

8

4. a) Implement a student class, A student has a name, stipend and Registration number, write a default constructor and constructor with two parameter (name and registration number) and two methods. a) To return the name and registration number b) Method that Increase the student stipend. Write a small programs that test your class.

8 P.T.O.

EJ – 826

-2-

*EJ826*

b) Define terms with example i) Encapsulation ii) Method overloading.

4

c) Write Java program that demonstrate private and public access control.

8

PART – B 5. a) Given three classes called A, B, C. C can be subclass of B, which is a subclass of A. Class A has three components namely width, height, depth class B has its own component called weight similarly class C has its own component called cost. Use inheritance concepts to implement above example.

10

b) Write suitable Java code to generate and handle following Exceptions. i) Divide-by-zero ii) Array-Index-Out-bounds iii) Number format exception iv) Null pointer exception v) Negative Array size exception.

10

6. a) Define interface for circular queue, write Java class to implement interface that perform operation of circular queue.

10

b) There are two task namely i) Generating prime number from 1 to 10 ii) Generating Fibonacci series upto 15 Use multi threading to accomplish above mentioned task.

10

*EJ826*

-3-

EJ – 826

7. a) Write Java program that sorts an Array of strings , use Compare To ( ).

6

b) Write Java program to tokenize string title = Java : the Complete Reference author = yourname publisher = Tata McGraw-Hill Copyright = 2002

6

c) Write java Applete program to set the background colour to green and text colour to red. 8. a) Explain get Document Base ( ) and get Document ( ) methods in Applet. b) Write Java program to demonstrate mouse event handler.

____________

8 8 12