CACS355 Network Programming

Network Programming TU Board 2022 question paper

10 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Computer Application

Semester 6 · TU Board 2022

Course Title: Network Programming (CACS355)

Full Marks: 60Pass Marks: 24Time: 3 hours

Candidates are required to answer the question in their own words as far as possible.

Group B

Attempt any SIX question.(6 × 5 = 30)

  1. 2.

    What is the Client-Server software model? Explain the strengths and weaknesses of Java programming as a network programming language.

    5
  2. 3.

    What is the use of InetAddress class? Write a program to retrieve IP and MAC addresses?

    5
  3. 4.

    Define URL class. Write a program to show the parts of the URL (Splitting URL).

    5
  4. 5.

    Define Socket. Differentiate between TCP and UDP Sockets with their applications.

    5
  5. 6.

    Define cookies. Write a program to retrieve cookie information stored in the system.

    5
  6. 7.

    Define IP Multicast. Write a program to join a computer system in a multicast group.

    5
  7. 8.

    Write Short Notes on (Any Two): a) HTTP b) RMI c) Secure Socket

    5

Group C

Attempt any TWO questions(2 × 10 = 20)

  1. 9.

    Write multithreaded TCP client and server socket programs for daytime service.

    10
  2. 10.

    Write UDP client and server socket programs in which the server identifies the number sent by a client is either even or odd and replies to the client accordingly.

    10
  3. 11.

    How blocking I/O is different from Non-Blocking I/O? Explain the basic mechanism of handling Buffers and Channels in Java with an example.

    10

— The End —