Thursday 18 July 2013

INTERNET PROGRAMMING ANNA UNIVERSITY QUESTION PAPERS April/May 2010, APRIL/MAY 2008

V4129
B.E DEGREE EXAMINATION, APRIL/MAY 2008
CS1401 - INTERNET PROGRAMMING

Part –a
1. List out the devices used to form internet work and specify each one of its purpose.
2. What Is The Use Of MIME
3. What is meant by serialization of objects in Java.
4. Write a java program to load and display an image.
5. State about the different usage of HTML flames.
6. List out the objects involved in java script with its purpose.
7. Define DHTML event bubbling
8. Write down the DHTML syntax for bind an image to the data and sort the data.
9. Write about servlet life cycle.
10. Define servlet cookies.

Part –b
11. A) Explain the steps involved in making the communication using TCP/IP with neat diagram.

Or
b) write a program using CGI and explain how CGI WORKS.

12. A) Explain java networking using sockets with your own examples program.
Or
b) write a java program for creating email client and protocol handling .

13. A). write a HTML program for the registration of new customer to the online banking system. ( customer data collected using a form , after submitting account number and type of account and username , password is displayed as output.)

Or
  b)
i. write a java script to print a marklist for 10 student s in a HTML table.
ii. Write a javascript that inputs a telephone number as a string in the form of (555) 555-5555. The script should use string method split to extract the area code as a token. The first 3 digits of the phone number as a token , the last 4 digits of the phone number as a token. Display the area code in one text field and seven digit phone number in another text field.
14. a) apply DHTML chroma and flip filter and reveal trans transition for an image.
or
b) write a DHTML program to handle any three mouse events.
15). A) explain how servlet deals HTTP get and post requests with an example program.

Or
b). Write a program for banking application using JDBC (consider 5 customer create a/c no and type, set some minimum balance do credit and debit operation and print consolidated report for month wise transaction.) 


-----------------------------

CS 1401 - Internet Programming
(Regulation 2004)

Time: 3 hours                                                                Maximum marks: 100
Answer ALL questions

PART A (10 x 2 =20 marks)

1.What is the primary function of an HTTP server?

2.What is the difference between an absolute pathname and a realative pathname?

3. For each of the following, write down the value that will be stored in result
double result;
int num1=5,num2=12,num3=2;
double val1=5.0,val2=12.0,val3=2.0;

(a).result=num1*num3*4%num2/val3;

(b).result=num1+++++num2;

4.What is an important difference between writing a Java application and a Java Applet?

5. What is the benefit of using Java script code in an HTML document?

6. For the following form, write down the Javascript code to swap the contents of the two text boxes

7. Which function can be used to create an alert popup dialog box? Write an example to create an Alert popup box.

8. State the commands in cascading style sheet used for grouping of elements.

9. What is servlet? How do you compare servlet and traditional CGI programs?

10. How can you create JDBC statement?

PART B (5 x 16 = 80)

11.(a) List the five layers used by the Internet. For each layer you list, give the general purpose of each layer as well as a current implementation (16)

(or)

(b) Explain the concept of TCP data transmission (16)


         

12.(a) Write a program in Java that determines and prints the number of odd, even and zero digits in an integer value read from the keyboard (16)

(or)
          

(b) What is the use of the applet? Explain its lifecycle with an example (16)


          

13.(a) Write a java script function named draw stripes that will draw a number of colored stripes generating an HTML table in which each row has a (possibly) different color. Your function must accept three parameters

    * width, the width of each stripe

    * height, the height of each stripe

    * colors, an array in which each element is the name of a color. Each color name is a valid HTML, color (can be used as the value of a BGCOLOR attribute or CSS color property). (16)

(or)

(b)Explain how you could use HTML frames to provide a website that includes an advertisement for your company along with the content from any other webpage. Show that HTML you would need to do this, as you that for your example the “other webpage” is WWW.yahoo.com. Make sure that you explain how this work.


14(a) Write a program using Cascading Style Sheet (CSS) to display the background image repeatedly in a file. (16)

(or)

(b) Describe the use of data binding and data control in DHTML (16)

15. (a).Explain Java servlet life cycle and interfaces in detail (16)



(or)

(b).Describe the operation of retrieval of a webpage with its associated messages using HTTP. (16) 
 --------------------------------------------------------------------Anna university
department of computer science
Year : 4th
Sem : 7th
subject code : CS1401
Subject tilte : Internet Programming

B.E/ B.Tech Degree Examination, April/May 2010,


PART A-(10x2=20 marks)
1. Mention any two limitation of CGI.

2. What is the purpose of firewall?

3. List out the advantanges of SLIP.

4. What are the mandatory attributes of Applet tag?

5. What is the use of HREF?

6. Distinguish between a static web page and a dynamic web page.

7. What do you mean by data binding?

8. List out the advantages of ActiveX control.

9. Define: Cookie.

10. Mention the advantages of Multi-tier applications.



PART B-(16x5=80 marks)
11.(a)(i) Explain: URL and its types with examples.
(ii) Write a simple Java program for chatting using TCP.

OR

(b) Write short notes on:
(i) SGML.
(ii) Internet Standards.

12.(a) Write a Java program to accept two parameters from the command line. If there is no command
line argument entered, the program should print the error message and exit. The programs
should check whether the first file exists and if it is an ordinary file. If it is so, then
its contents are copied to the second file.

OR

(b) Write short notes on:
(i) Font class.
(ii) Update.
(iii) Repaint.
(iv) Paint.

13.(a)(i) Create a web page for your dream company with the necessary details.
(ii) Describe the strength and weakness of JavaScript.

OR

(b) Create a web page for student admission process with necessary validation using JavaScript
CSS.

14.(a) Explain :Filters and Transition with necessary example.

OR

(b) Write a HTML web page using DHTML and CSS for multimedia data.

15.(a) Explain the JDBC architecture and its driver types.

OR

(b) Write a servlet program using HTTP Servlet and Generic Servlet.