CACS355 Network Programming

Network Programming TU Board 2023 question paper

10 questionsSit this paper (timed)

Tribhuvan University

Bachelor of Computer Application

Semester 6 · TU Board 2023

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.

    Define the client-server model of a network application. Explain the design considerations for a network application.

    5
  2. 3.

    Write a program to show the IP and MAC address of the system and also check if the IP address is IPv4 or IPv6.

    5
  3. 4.

    Define URL Connection Class? Write a program to read header using header-specific methods.

    5
  4. 5.

    Write the functions of Socket. Explain the configuration options of a TCP client socket.

    5
  5. 6.

    Define a secure socket. Write a program to create a secure client socket.

    5
  6. 7.

    Define Buffer. Explain buffer handling methods.

    5
  7. 8.

    Write short notes on (any two): a) HTTP methods b) Datagram Packet c) Multicast Socket

    5

Group C

Attempt any TWO questions(2 × 10 = 20)

  1. 9.

    a) Differentiate between URL and URI class with their applications. b) Write any program to illustrate the application of RMI.

    10
  2. 10.

    Write a TCP multithreaded server and client socket program to check the number sent by the client is either prime or composite.

    10
  3. 11.

    Write a program to create a UDP server and client which converts the date from the client in BS to AD format. [Assume that the difference between BS and AD is 56 years, 08 months, 17 days]

    10

— The End —