My Profile
Active Members
TodayLast 7 Days
more...
Awards & Gifts
Online Exams
Fresher Jobs
Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian
cities including Bangalore, Chennai, Hyderabad, Pune or Kochi
Resources
Find educational articles, blogs, discussion threads and other resources.
Colleges
Find details about any college in India or search for courses.
|
Download Model question papers & previous years question papers
|
Posted By: sunil Member Level: Diamond Posted Date: 23 Jun 2008
|
2008 III B.Tech II Semester Regular Examinations, Apr/May 2008 UNIX PROGRAMMING Question paper
|
|
|
Code No: R05320503
Set No. 3
III B.Tech II Semester Regular Examinations, Apr/May 2008 UNIX PROGRAMMING (Computer Science and Engineering) Time: 3 hours
Answer any FIVE Questions All Questions carry equal marks ? ? ? ? ? Max Marks: 80
1. “Operating systems like UNIX provide services both for programs and users”. Jus- tify this statement with suitable examples. 2. (a) How to remove duplicate lines from a ?le using sort? (b) How to count the number of ordinary ?les in home directory tree? (c) Select lines 5 to 10 of a ?le in two ways. 3. (a) Write a shell script for the following task. [16]
[5+5+6] The word ‘unix’ is present in only some of the ?les supplied as arguments to the shell script. Your shell script should searched each of these ?les in turn and stop at the ?rst ?le that it encounters containing the word ‘unix’. This ?lename should be displayed on the screen. (b) Write a C program which receives ?le names as command line arguments and display those ?lenames in ascending order according to their sizes. [8+8] 4. (a) Write a shell script which gets executed the moment the user logs in. It should display the message “good morning/good afternoon/good evening” depending upon the time at which the user logs in. (b) Explain about here documents with an example. [8+8] 5. (a) Write and explain about hard and symbolic links.. give an example for each. (b) Explain about ?le descriptors & i-node?
6. Write the syntax of following functions. Explain each argument. (a) kill (b) raise (c) alarm (d) exit.
7. (a) Write a C program to use a function lock test to test for a lock. (b) Write about lockf function.
8. Explain the following concepts about pipes (a) Pipes between two process (b) Pipes among three process in a shell
Return to question paper search
|
|
|
Submit Previous Years University Question Papers and make money from adsense revenue sharing program
Are you preparing for a university examination? Download model question papers
and practise before you write the exam.
|
Watch TV Channels
|