Code No: 33/MCA
OR
M.C.A III Semester Supplementary Examinations, April -2008.
ADVANCED UNIX PROGRAMMING
Time: 3 hours Max. Marks: 60
Answer any five questions
All questions carry equal marks
---
1. a) What are meta characters? Explain their use.
b) Explain the following commands:
i fgrep
ii tar
iii telnet
iv mount.
2.a) Write the differences between the following utilities:
i cat and ls
ii less or more and cat
iii head and tail.
b) Explain for loop and also any one control statement of Unix with
your own example.
3.a) What is the command to display invisible files? What does it
display?
b) Write a short notes on:
i Vi editor
ii shell.
4. a) Describe the UNIX file structure.
b) Explain the following system calls:
i) lseek()
ii) read ()
iii) write ()
5. a) What is a process? Distinguish between user context and kernel
context of a process.
b) Explain the working of fork () and exec () system calls with an
example.
6. a) Describe memory management features of UNIX.
b) Explain clearly the concept of file locking.
Contd…2
Code No: 33/MCA ::2::
7. a) Explain the kernel data structures maintained by kernel for
message queues.
b) Implement simple routing for semaphores:
i Sem-Wait (id)
ii Sem-Signal (id)
Where is the id of semaphore.
8. a) Explain interprocess communication in UNIX.
b) Explain about UNIX file system.
*****