Sie sind auf Seite 1von 5

Reg.

No :

R 3263
B.E. / B.Tech DEGREE EXAMINATION, NOVEMBER / DECEMBER 2007

Seventh Semester

(Regulation 2004)

Computer Science and Engineering

CS1401 INTERNET PROGRAMMING

(Common to B.E (Part Time / Sixth Semester Regulation 2005)

Time : Three hours

Maximum : 100 marks

Answer ALL the 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 relative 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 / 3 ;
(b) result = num1++ + ++num2 ;
4. What is an important difference between writing Java application and a Java applet?
5. What is the benefit of using JavaScript code in an HTML document?

BB/REC-4

6. For the following form, write down the JavaScript code to swap the contents of the two
text boxes.
<FORM NAME = DaForm>
Input text 1 : <INPUT TYPE = TEXT NAME = A>
Input text 2 : <INPUT TYPE = TEXT NAME = B>
</FORM>
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 a servlet? How do you compare servlet and traditional CGI programs?
10. How can you create JDBC statements?

PART B (5 x 16 = 80 marks)

11. (a) List the 5 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 life cycle with an example.

(16)

13. (a) Write a JavaScript function named drawstripes that will draw a number of colored
stripes by generating an HTML table in which each row has a (possibly) different colors.
Your function must accept 3 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

BB/REC-5

(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 web page. Show
that HTML you would need to do this, assume that for your example the other web page
is www.yahoo.com. Make sure that you explain how this works.

(16)

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.

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

(16)

(16)

Or
(b) Describe the operation of retrieval of a webpage with its associated message using
HTTP.

(16)

__________

BB/REC-6

Reg. No :

V 4129
B.E. / B.Tech DEGREE EXAMINATION, APRIL / MAY 2008

Seventh Semester

(Regulation 2004)

Computer Science and Engineering

CS1401 INTERNET PROGRAMMING

(Common to B.E (Part Time / Sixth Semester Regulation 2005)

Time : Three hours

Maximum : 100 marks

Answer ALL the questions

PART A (10 x 2 = 20 marks)

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 frames.
6. List out the objects involved in JavaScript 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 in the data
source.
9. Write about Servlet Life Cycle.
10. Define Servlet Cookies.

BB/REC-7

PART B (5 x 16 = 80 marks)

11. (a) Explain the steps involved in making the communication using TCP / IP with neat
diagram.

(16)
Or

(b) Write a program using CGI and explain how CGI works.

12. (a) Explain Java Networking using Sockets with your own example program.

(16)

(16)

Or
(b) Write a Java program for creating Email client and Protocol handling (using URL
connection).

(16)

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).

(16)

Or
(b) (i) Write a JavaScript to print a marklist for 10 students 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.

(8 + 8)

14. (a) Apply DHTML chroma and flip filters and reveal Trans transition for an image. (8 +8)
Or
(b) Write a DHTML program to handle any three mouse events.

(16)

15. (a) Explain how Servlet deals HTTP Get and Post requests with an example program. (16)
Or
(b) Write a program for Banking Application using JDBC (Consider 5 customer create a/c
no. and type, set some minimum balance to credit and debit operation and print
consolidated report for monthwise transaction.

(16)

__________
BB/REC-8

Das könnte Ihnen auch gefallen