Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
16 views

r5320503 Unix Programming

This document contains questions from a UNIX programming exam for a Computer Science course. It includes questions about processes and process utilities, backup utilities, writing shell scripts and C programs, metacharacters, system calls like open and write, functions like vfork and signal, memory allocation functions, and interprocess communication using FIFO. Students were asked to answer any five of the questions in the exam.

Uploaded by

IbmWasuser
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

r5320503 Unix Programming

This document contains questions from a UNIX programming exam for a Computer Science course. It includes questions about processes and process utilities, backup utilities, writing shell scripts and C programs, metacharacters, system calls like open and write, functions like vfork and signal, memory allocation functions, and interprocess communication using FIFO. Students were asked to answer any five of the questions in the exam.

Uploaded by

IbmWasuser
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

J

N
T
U
W
O
R
L
D
Code :R5320503 R5
III B.Tech II Semester(R05) Supplementary Examinations, April/May 2011
UNIX PROGRAMMING
(Computer Science & Engineering, Information Technology)
Time: 3 hours Max Marks: 80
Answer any FIVE questions
All questions carry equal marks

1. What is a process? List and explain various process utilities with suitable examples.
2. Discuss the various backup utilities available in UNIX. Ilustrate with suitable examples.
3. (a) Write a shell script to calculate over time pay of 20 employees. Overtime is paid at the
rate of Rs.15.00 per hour for every hour worked above 40 hours. Assume that employees
do not work for fractional part of an hour.
(b) Write a C program to concatenate the contents of 2 les using command line arguments.
4. (a) What is metacharacter? List and explain about any 7 metacharacters available in unix.
(b) Write a shell script which will receive either the lename or the lename with its full path
during execution.this script should obtain information about this le as given by ls - l and
display in proper format.
5. Write the syntax of following system calls.
(a) open
(b) creat
(c) read
(d) write.
6. (a) Write a program to illustrate the vfork function call.
(b) Write a program for signal implementation.
7. Briey explain about malloc, free, realloc, calloc functions.
8. Write a program to transfer a large amount of data between two processes using FIFO.

www.jntuworld.com
www.jntuworld.com

You might also like