Code: C–19                                                   Subject: INTERNET & JAVA PROGRAMMING  

Time: 3 Hours                                                                                                     Max. Marks: 100

 

NOTE: There are 11 Questions in all.

 

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

·      Answer any THREE Questions each from Part I and Part II. Each of these questions carries 14 marks.

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

 

 

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

 

a.       The layer which is not present in TCP/IP model

 

(A)    Transport.                                    (B)  Internet.

(C)    Session.                                       (D)  Application.

 

b.      Class which is used for multicasting

 

(A)   Class E.                                        (B)  Class D.

                          (C) Class C.                                        (D) Class B.

                        

c.       Choose the odd one out

 

(A)    FTP.                                            (B)  ICMP.

(C) HTTP.                                          (D)  TELNET.

 

             d.   SMTP stands for

              

                   (A)  Simple Message Transfer Protocol.   

                   (B)  Simple Mail Target Protocol.

(C)    Simple Mail Transfer Protocol.    

(D)    Simple Message Target Protocol.

 

             e.   Java does not contain

                    

(A)     Arrays.                                        (B)  Constants.

(C)  Pointers.                                       (D)  Loops.

 

             f.    Subpackage among the following is

                  

(A)     AWT.                                          (B)  APPLET.

(C)  EVENT.                                      (D)  IO.

 

             g.   Packages in java are equivalent to ____________ in C++

                                                                                               

(A)     Structures                                    (B)  Pointers

(C)  Header files                                  (D)  Arrays

 

             h.   Applets are

       

(A)    Small programs.                          

(B)    Independent programs.

(C)    Small programs which can run on browser.    

(D)    Special graphical programs.

 

PART I

Answer any THREE Questions. Each question carries 14 marks.

 

  Q.2     a.   What do you understand by a domain name?  How is a domain name translated to an equivalent IP address?                                                           (7)

            

             b.   Differentiate between subnet and classless addressing.                                        (4)

 

             c.   What are the special IP addresses?  Give the special IP address for loopback.                   (3)       

 

  Q.3     a.   How is the data fragmented and again reassembled in TCP/IP?                           (7)

                                                                             

             b.   Why is TCP reliable and UDP unreliable protocol?                                             (2)

 

             c.   What are the new features added to IPv6?                                                         (5)

 

  Q.4     a.   What do you understand by browser?  Describe the major components of a web browser and how they interact with each other.                       (7)

 

             b.   What is a mail server?  Briefly explain specifying the protocols involved, how a sender can send a mail to the server and the recipient retrieves it from the server?                                                            (7)

 

  Q.5     a.   How is dynamic web page generated?  (7)

 

             b.   Describe the various HTTP request methods.                                                     (7)

 

  Q.6           Write short notes on :

 

(i)                  ICMP.

(ii)                Client-Server model.

(iii)               Sockets.

(iv)              IP Telephony.                                                          (3 ˝ x 4 = 14)

       

PART II

Answer any THREE Questions. Each question carries 14 marks.

 

  Q.7     a.   Why is java a platform independent language?                                                    (4)

 

             b.   Explain with the help of examples, how threads can be created in java?             (10)

 

Q.8       a.   Write a Java program to read the contents of a text file and print it out on the screen.                      (7)

 

             b.   What is the difference between

                  

                   (i)   throw and throws clause.

                   (ii)  final and finally clause.                                                                                  (7)                      

 

 

  Q.9     a.   Explain event delegation model.  Describe what are events and the role of sources and listeners in event delegation model.                                 (7)

 

             b.   Create an applet, which contains a text field and a button.  When the button is pressed a message “Hello World” will appear in the text field.       (7)

 

Q.10           a.                                                        Differentiate between Socket and ServerSocket class.  Illustrate the use of Socket and ServerSocket class with the help of an example.                     (8)                      

 

             b.   What is the importance of wrapper classes?                                                        (3)

 

             c.   aaa.bbb is a package name.  Comment about the following import statements

(i)                  import aaa.bbb;

(ii)                import aaa.bbb.*;

(iii)               import aaa.bbb.Example;                                                                 (3)

 

Q.11                                                                      Write short notes on

 

(i)                  RMI.

(ii)                Life cycle of Servlet.

(iii)               Java beans.

(iv)              Packages.                                                                       (3 ˝ x 4 = 14)