Você está na página 1de 3

SRM UNIVERSITY

FACULTY OF COMPUTER APPLICATIONS

II YEAR, IV SEMESTER

MC0618 - UNIX AND NETWORK PROGRAMMING

QUESTION BANK

PART- A
1. What are file descriptors?
2. What are dup() and dup2() functions ?
3. What do you mean by “current file offset”?
4. Give the use of access function
5. Why do we need chmod() and fchmod() functions?
6. What are symbolic links ? How is it different from hard links?
7. How will you create and remove links using unix functions
8. What is the use of setjmp and longjmp functions?
9. Differentiate between fork() and vfork().
10. What is process control? What are the three special process?
11. What is the difference between exit() and wait() functions?
12. What is the difference between wait and waitpid functions?
13. What is the difference between fork and exec functions?
14. What is the use of exec functions? What are they?
15. Give the syntax of any two directory related system calls
16. How to change the mode of the file? Give the syntax of that function.
17. What is the use of stat function? Give its syntax.
18. What are the advantages and disadvantages of fork function?
19. What are signals? Give any two signal types.
20. Name the numerous conditions that can generate signals.
21. Give the syntax of signal function.
22. What is the use of kill and raise functions?
23. What are alarm and pause functions?
24. What are the uses of abort and sleep functions?
25. What are the limitations of pipes?
26. What are the uses of FIFO?
27. What are the advantages of IPC?
28. What are the disadvantages of IPC?
29. What is the use of message queue?
30. What is a semaphore?

1
31. What are the semaphore testing steps to obtain the shared resource?
32. What is a binary semaphore?
33. What is the use of shared memory?
34. What is a Socket?
35. What is the use of generic socket address structure?
36. Explain Value-Result arguments.
37. Explain byte ordering functions?
38. Explain byte manipulation functions?
39. State any generic socket options
40. What is three way handshaking?
41. Differentiate TCP and UDP.
42. What is the difference between connected UDP and unconnected UDP sockets?
43. Define Domain Name Service.
44. Define daemon process.
45. What is mean by resource discovery?
46. What is the use of broadcasting?
47. Compare multicasting with broadcasting.
48. Compare Unicasting and Anycasting.
49. Define scope field and hop limit field.
50. What is an Out-of-band data?
51. What are the steps in creating a raw socket?
52. What are the features of raw sockets
53. What is a Data link access?

PART- B
1. Write briefly about file I/O Operations
2. What is process control? Explain fork and vfork functions with example.
3. Write notes on wait functions.
4. Explain time and date routine functions.
5. What is the use of exec functions? Explain them.
6. Write notes on
a. Directory related functions.
b. Setjmp and longjmp functions
7. Explain the following
a. Access (4)
b. stat functions (6)
c. chmod and fchmod (6)

8. write short notes on


a. create signal sets
b. add and delete contents from signalset
c. sigprocmask() (4)

2
d. sigpending() (4)
e. sigaction() (4)
f. sigsuspend() (4)
9. Explain the following
a. Kill and raise functions (6)
b. alram and pause functions (6)
c. signal sets. (4)
10. Explain the following
a. Explain signal concepts and also some signals (10)
b. abort and sleep functions (6)
11. Write a simple program to explain pipes and FIFOs.
12. Write notes on FIFO.
13. Explain how inter process communication is achieved through message queue.
14. Write short notes on shared memory.
15. Explain semaphore concepts in unix.
16. Explain IPV4 and IPv6 Socket address structures.
17. Explain about TCP client – server model with neat diagram.
18. Write a UNIX program to implement the TCP Echo Client / server.
19. Explain various Socket Options.
20. Explain about UDP client – server with neat diagram.
21. Write a UNIX program to implement the UDP Echo Client / server.
22. Write notes on DNS.
23. Write notes on Daemon process.
24. What is inetd Daemon? Explain the process of inetd daemon in detail.
25. What is broadcasting? Explain Broadcast addresses and Unicast versus Broadcast.
26. Compare multicasting versus broad casting on a LAN.
27. Explain about Multicasting on a WAN with diagram.
28. Discuss in detail about TCP Out-of-Band data with an example.
29. Write about the following in detail.
a).Client-Server Heartbeat Functions.
b) Ping Program.
30. Write notes on raw sockets.
31. Write notes on Data link access.
32. Explain the following with neat sketch.
(a) BSD Packet Filter (b) Data Link Provider Interface.

Note: Study all the record programs and the program to Copy the file content from one
file to another file, Program to list the files and directories from given directory and
program to access function.

Você também pode gostar