Network Programming model question paper(S5CM)

TED[15] …5152………                                                         Reg. No…………………………..

(REVISION-2015)                                                                 Signature…………………………

DIPLOMA EXAMINATION IN ENGINEERING/TECHNOLOGY/ MANAGEMENT/
                                    COMMERCIAL PRACTICE

SUBJECT NAME: ……NETWORK ROGRAMMING……………………………………
                                               
                                                                                                                        [Time: …….hours]
                                                            (Maximum marks: 100)
                                   
                                                                        PART - A
                                                            (Maximum marks: 10)
                                                                                                                                   
                                                                                                                                                                                                                                                                                                           Marks

I Answer all questions in one or two sentences. Each question carries 2 marks.

1. Define object

2. State the concept of package

3. Define applet

4. Explain URL

5. Differentiate client and server                                                                                            (5x2=10)


                                                                        PART - B
                                                            (Maximum marks: 30)

II Answer any five of the following questions. Each question carries 6 marks.

1. Java is both compiled and interpreted. Justify this statement.

2. Explain why a constructor cannot have any return type.

3. Differentiate the concepts of final and finalize in java

4. Explain the life cycle of a thread

5. Write an applet program to find the factorial of a number including try catch statement. Also create html file to execute the program

6. Distinguish between absolute URL and relative URL

7. Write the procedure to run an RMI program                                                                                                                                                                                                                                  (5x6=30)
                                                                       
                                                           

                                                                        PART - C
                                                            (Maximum marks: 60)

(Answer one full question from each unit. Each full question carries 15 marks)
                                                                        UNIT - I
III        a.Explain the concept of parameterized constructor with an example                                   (8)
b.Explain how an object can be passed as a parameter with an example                                (7)

                                                                        OR

IV.       a. Java allows multiple methods to have the same name with different
            Parameters. Illustrate this concept with an example                                                               (8)
b.Write a java program to define a class Student having data members rollno,
            name, marks1 and marks2 and a method to calculate the total marks
            and percentage of marks.                                                                                                        (7)

                                                                        UNIT – II
V.        a.  Explain the concept of thread in java mentioning the advantage of
multithreaded program                                                                                                            (8)
b. Describe the methods of thread synchronization                                                                (7)

                                                                        OR

VI.      a. When the control enters the catch block, it does not return to the try       
block to execute the remaining code. Justify the statement with an  example.                      (8)
b.Mention the various swing components and its constructors                                              (7)

                                                                        UNIT – III

VII.     a. Write the various steps which are involved in creating a server program               (8)
b.Write a program to retrieve the IP address of a system using InetAddress class                (7)

                                                                        OR

VIII.   a. Explain the various components of a URL with an example stating the
              various methods to extract each component                                                             (8)
b.Write a tcp based Server socket program to establish a connection
               with a client program                                                                                                           (7)

                                                                        UNIT – IV

IX.       a. Describe the various steps to execute an RMI program                                                      (8)
b.Write the procedure to start an RMI server                                                                         (7)

                                                                        OR

X.        a. Explain the various steps for developing an RMI system                                                   (8)

b.Java is highly secure for network applications. Justify this statement                                 (7)
Newest
Previous
Next Post »