Sei sulla pagina 1di 2

(Page 1 of 2)

USN IS34
B. E. Degree (Autonomous) Third Semester End Examination (SEE), Dec 2018/Jan 2019

UNIX AND SHELL PROGRAMMING


(Model Question Paper – 3)
Time: 3 Hours ] [ Maximum Marks: 100 ]

Instructions to students:
1. Answer FIVE FULL questions.
2.

With a neat diagram, explain the architecture of UNIX, clearly bringing out the division
1. a)
of labor between kernel and shell. 08 Marks

b) Write a note on man documentation. Also give the usage of aprops and what is. 06 Marks

c) Explain the different types of files in UNIX. 06 Marks

OR
2. a) What is file permission? What are the different ways of setting file permission?Discuss. 08 Marks

b) With suitable examples, bring out the difference between absolute and relative 06 Marks
pathnames.
What is a process? Illustrate the mechanism of process creation. 06 Marks
c)

What are standard input, standard out put and standard error? Discuss with respect to 06 Marks
3 a) UNIX
b) With neat diagram , discuss different modes of operation of vi editor 08 Marks

c) What do you mean by link? Give the difference between soft link & hard link. Also write 06Marks
disadvantages when using soft link.
OR
4. a) What is a job? Describe different job control facilities with suitable examples 09Marks

b) Use find command to locate from your home directory 05Marks


i. All files with the extention.html
ii. All the files having inode no. 9076
iii. All directories having permissions 666
iv. All files not accessed for more than a year
v. All but the c program files.

c) Analyse the following commands with examples: 06 Marks


i.pr ii.sort iii.uniq

5. a) With suitable examples,explain the grep command and its various options. 08Marks

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)
(Page 2 of 2)
b) Differntiate between line addressing and context addressing in sed with examples. 06Marks

c) Design a shell script to find out whether a given string is palindrome or not. 06Marks

OR

a) Explain the shell's for loop giving the possible sources of the list.
6.
06 Marks
b) Explain basic regular expression used with grep.
06 Marks
c) Write a menu-driven shell script to perform the following: 06 Marks
i) List of user who are logged in.
ii) List of files in the current directory
iii) List of processes of user
iv) Today's date
v) Quit to UNIX
7. a) Discuss the following built in function in awk. 08 Marks
i.split() ii.substr() iii.length() iv.index().
b) Explain with example the purpose of BEGIN and END block of awk utility. 06 Marks

c) Comment on built in variables used in awk. 06 Marks


OR

8. a) Write an awk script to delete duplicated lines form a given input file. 06 Marks

b) With suitable examples explain the if and while statements in awk. 06 Marks

c) Write a note on operators and expressions in awk. 08 Marks

9. a) Analyse the string handling functions in perl. 08 Marks

b) Write a perl program to check given year is leap year or not. 06 Marks

c) Comment on the following perl features 06 Marks


i.$_ ii.foreach iii.join
OR

10. a) Explain file handling in perl. 06 Marks

b) Write a perl program to check given string is palindrome or not. 06 Marks

c) Explain arrays in perl. 08 Marks

******

Dr. Ambedkar Institute of Technology, Bengaluru – 560056


(An Autonomous Institution Affiliated to Visvesvaraya Technological University, Belgaum)

Potrebbero piacerti anche