AMIETE – CS (OLD SCHEME)

 

Code: AC19                                                   Subject: INTERNET & JAVA PROGRAMMING

Flowchart: Alternate Process: JUNE 2010Time: 3 Hours                                                                                                     Max. Marks: 100

 

 

NOTE: There are 9 Questions in all.

·       Question 1 is compulsory and carries 20 marks. Answer to Q.1 must be written in the space provided for it in the answer book supplied and nowhere else.

·       Out of the remaining EIGHT Questions, answer any FIVE Questions. Each question carries 16 marks.

·       Any required data not explicitly given, may be suitably assumed and stated.

 

 

Q.1       Choose the correct or the best alternative in the following:                                (210)

 

            a.  How many bits are required in the IP address?

 

                  (A) 8 bits.                                            (B) 32 bits.

                  (C) 16 bits.                                          (D) 64 bits.

 

b.    What is the objective of ICMP?

                                                                

(A)  ERROR Reporting mechanism.

                    (B)  Mail Handling mechanism.

                    (C) Router Monitoring mechanism.

                    (D) FTP Server monitoring mechanism.

 

             c.  How many layers are present in TCP/IP protocol?

 

(A)    7 Layers.                                      (B)  4 Layers.

(C)  5 Layers.                                      (D) 6 Layers.

                                                                             

             d.  What is the minimum size of UDP packet?

 

                  (A)  8 Bytes.                                       (B)  16 Bytes.

                  (C)  32 Bytes.                                     (D)  64 bytes.                                                       

 

             e.  TCP/IP network is a____________.

 

                  (A)  circuit switch network                 (B)  packet switch network

                  (C)  datagram network                       (D)  stateless network                                         

 

             f.  SMTP is used for

                     

                  (A)  Uploading mail to mail server.   

                  (B)  Downloading mail from mail server.

                  (C)  Upload & Download to mail server.

                  (D)  None of the above.

 


             g. Domain Name Server is used for

 

                                                                              (A) resolving IP address from fully qualified host name.

                  (B) resolving Ethernet card ID.

                  (C) resolving E-mail address.

                                                                              (D) None of the above.

 

             h.  What do you mean by Socket?

 

                  (A)   One end of communication channel.

                                                                              (B)   Both end of communication channel.

                                                                              (C)  An interface for communication channel.

                                                                              (D)  Is a unit of communication channel.           

 

             i.   Which are the unary operators in Java?

 

                                                                              (A) +,-, *, /                                             (B) ++,--

                  (C) equals, compare To                       (D) None of the above

 

             j.  Which tag is required for embedding an Image, audio in a web page?

 

                  (A) <doctype>  tag                             (B) <img>  tag

                  (C) <meta>  tag                                  (D) <P>

 

 

 

Answer any FIVE Questions out of EIGHT Questions.

Each question carries 16 marks.

 

 

  Q.2     a.   Write short note on client server interaction model. Is HTML a language?

                    Discuss.                                                                                                      (5+3)                                                          (8)

 

             b.   Write HTML code for designing a form for accepting three fields name, roll_ no and marks. Write JSP code for receiving data in server side.                                                 (4+4)                                                          (8)

 

  Q.3     a.   Define Package, Interface and abstract class. What are the differences between user defined exception?                 (2+2+2+2)                                                                                                                                                                                                                                      (4)

 

             b.   What do you mean by user defined exception? Write an example program for developing user defined exception.     (8)                                                                                                  (4)

 

  Q.4     a.   What do you mean by inheritance? What is polymorphism? How many type of polymorphism are there? Discuss.           (2+2+4)                                                                                                                                                                           (8)

 

             b.   Write a skeleton program for depicting dynamic polymorphism.                  (8)                                                                      (8) 

 

  Q.5     a.   What is thread?  Discuss the life cycle of thread. How many different ways are in Java for creating thread? Elaborate.      (1+2+5)                                                                                                                           (8)

 

             b.   What is internet? Give the format of IP datagram and explain the semantics of each field in it.                                             (8)

 

  Q.6     a.   Discuss about the event-delegation model in Java AWT. How many layout managers available in Java? Discuss.            (4+4)

 

             b.  Write a program for displaying a frame and place a level at the middle of the frame with help of border layout manager.          (8)

       

  Q.7     a.   How many types of socket available in Java? Write a simple server program by using Server socket class and a client program for this server.                                                       (8)          

 

             b.   Discuss the life cycle of Applet program for displaying “I am here” at the middle of the applet.                                            (8)

       

  Q.8     a.   What do you mean by method invocation? Discuss the framework. Give suitable methods in Java libraries for method invocation.                                                                                (2+4)

 

             b.   What are the classes available in Java for implementing collection framework? What are the differences between Vector and Array List?                                             (5+5)

 

  Q.9     a.   How many types of IO available in Java? What are the differences between character stream IO and bye stream IO?          (2+6)

 

             b.   Differentiate between TCP and IP. Give frame formats for each. Also give a brief note on IP encapsulation.                        (8)