Mid-Term 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. Define network programming and explain its scope.

3. Explain the client-server model with a suitable example.

4. Write a program to display the IP address and host name of a given domain name using the InetAddress class.

5. Write a program that connects to a given URL and reads and displays its content using URL and URLConnection classes.

6. Explain the working principle of HTTP.

7. Write a program for a TCP client that sends a message to the server using a Socket. Clearly mention the steps involved in client-side socket programming.

8. Explain the steps involved in developing a TCP server program.

Group C

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

10. Implement an Echo Server using socket programming.

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

2025 Mid-Term Question Set 12025 Pre-Board Question Set 1