Pre-Board examination question paper set for Network Programming from the year 2025.

Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2025
Bachelor in Computer Applications

Paper detail Value
Course Network Programming
Code No. CACS355
Semester VIth
Full marks 60
Pass marks 24
Time 3 hours

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

Group B

2. How does an SSL Socket ensure secure communication in networked applications? Elaborate on the mechanisms used to manage sessions within such a socket.

3. What role does a buffer play in handling data streams? Compare and contrast the distinct approaches to initializing a buffer in Java.

4. Discuss the role of DNS in resolving domain names. What are the ways a DNS performs address resolution?

5. How do the DatagramPacket and DatagramSocket classes collaborate to enable UDP communication? Provide a concise explanation of their interdependence.

6. Explain Cookies. Write a program to add cookies to the CookieStore and read all stored cookies.

7. Differentiate between URL, URI, and URN with suitable examples. How can you resolve the relative path of a website using URI? Explain your code.

8. Write concise notes on any two of the following: a) Inet4Address and Inet6Address b) Functional differences between Socket and ServerSocket c) HTTP response headers

Group C

9. Write a program to demonstrate x-www-form-urlencoded strings.

10. What are the various types of buffers available in Java? Explain the process of duplicating and slicing a byte buffer.

11. What is a Spammer? How can they be detected? Write a program in Java to implement spam detecting techniques.