M.C.A DEGREE EXAMINATION, MA/JUNE 2009.
4th Semester
MC 1751 —UNIX AND NETWORK PROGRAMMING
(Regulation 2005)
PART A—( 1 0x2=20 marks)
1. What are the various file types supported by Unix?
2. What does a return value of 0 from printf mean?
3. What are unreliable signals?
4. Define process group and session.
5. Give an example for co-process.
6. What happens if “cmdstring: executed by popen with a read type ‘r’ writes to its Standard error?
7. What is the use of SO_BROADCAST option?
8. What are the characteristics of streaming service?
9. What is the use of trace route tool?
10. Give the syntax of accept function and explain the operation.
PART B—(5 x 16 = 80 marks)
1 1. (a) (i) Explain how UNIX allows sharing of files between different processes (10)
(ii) Explain the various buffering schemes provided by the standard I/O library. (6)
Or
(b) (i) Draw the file system layout of Unix and explain. (10)
(ii) Explain the operation of creating a directory in the existing file system. (6)
12. (a) (i) Explain the operations of ‘system’ function with an example. (8)
(ii) What is process accounting? Give the structure of accounting record. (8)
Or
(b) (i) With a neat block diagram explain the memory layout of a C program. (10)
(ii) What is environment list? what is the use of the list ? (6)
l3.(a) (i) What are the FIFOs? How they are different from pipes? (6)
(ii) Give an example application where FIFO can be used. (10)
Or
(b) Elaborately discuss the system V IPC mechanisms. (16)
14. (a) Give the syntax and write a note on the following function:
(i) htons()
(ii) 1isten()
(iii) sendto()
(iv) recv() (4 x 4)
Or
(b) (i) What are raw sockets? What is the use of them? (2+2)
(ii) What are the steps involved in getting connected to a TCP server?
Draw a state diagram to show involved. (12)
15. (a) Explain the operation of trace route tool with necessary ICMP messages. (16)
Or
(b) Write a client server application to identify the machines connected to
network. (16)
Thursday, October 28, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment