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. Define cookies. Write a program to retrieve cookie information stored in the system.
3. Define Socket. Differentiate between TCP and UDP sockets with their applications.
4. What is the use of the InetAddress class? Write a program for a cookie policy that blocks all .gov cookies but allows others.
5. Define the URL class. Write a program to show the parts of the URL (Splitting URL).
6. What are the central abstractions of the NIO APIs? Briefly explain Scattering and Gathering in NIO.
7. Define IP Multicast. Write a program to join a computer system in a multicast group.
8. Write short notes on (Any Two): a) HTTP b) RMI c) Secure Socket
Group C
9. Write UDP client and server socket programs in which the server identifies if the number sent by a client is even or odd and replies to the client accordingly.
10. How does blocking I/O differ from non-blocking I/O? Explain the basic mechanism of handling Buffers and Channels in Java with an example.
11. Write multithreaded TCP client and server socket programs for daytime service.