You are on page 1of 1

Code No.

: RA CS05566

RA
III BTech I Semester (R09) Regular Examinations November 2011

UNIX PROGRAMMING (Computer Science & Systems Engineering) Time: 3 hours Answer any FIVE Questions All Questions carry equal marks
Max. Marks : 70

1. (a) Dene Shell and kernel. Dierentiate them. (b) Illustrate the cycle of command execution by Unix. 2. Explain the following commands Head, cut, nl, tar. 3. (a) Explain the main shell responsibilities. (b) Write a shell program to count the number of words in a le & state the result in another le. [8+8] 4. (a) Explain the shell environment and its built in variables. (b) Why is a shell called as a command interpreter? Explain. 5. (a) Explain link, unlink, remove and rename functions with syntaxes. (b) What are ush and fseek functions? Explain. [8+8] [8+8] [8+8] [44]

6. (a) Write a program to execute the command line arguments using system function. (b) Write a program to illustrate dierent exit statuses. 7. (a) Write a short note on competing locks. (b) Explain the usage of read and write functions with locking. 8. (a) What are the major disadvantages of pipes? Explain. (b) Dene named pipes. Which system call is used for creating named pipes. Write its syntax. (c) What rules should be followed while reading information from a FIFO. [4+6+6] [8+8] [8+8]

1 of 1

You might also like