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)
- 2.5
Define the client-server model of a network application. Explain the design considerations for a network application.
- 3.5
Write a program to show the IP and MAC address of the system and also check if the IP address is IPv4 or IPv6.
- 4.5
Define URL Connection Class? Write a program to read header using header-specific methods.
Answer comingAlso asked in 2024
- 5.5
Write the functions of Socket. Explain the configuration options of a TCP client socket.
- 6.5
Define a secure socket. Write a program to create a secure client socket.
- 7.5
Define Buffer. Explain buffer handling methods.
- 8.5
Write short notes on (any two): a) HTTP methods b) Datagram Packet c) Multicast Socket
Group C
Attempt any TWO questions(2 × 10 = 20)
- 9.10
a) Differentiate between URL and URI class with their applications. b) Write any program to illustrate the application of RMI.
- 10.10
Write a TCP multithreaded server and client socket program to check the number sent by the client is either prime or composite.
- 11.10
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]
— The End —