0% found this document useful (0 votes)
48 views1 page

2020 (Dec) Master of Computer Applications First Semester Paper: MCA-104B UNIX and Shell Programming F.M.: 50. Time: 2 Hours

This document appears to be an exam paper for a course on UNIX and Shell Programming. It contains 7 questions testing knowledge of various UNIX/shell concepts: 1. File system hierarchy, environment variables 2. Shell parameters, positional parameters, set and shift commands 3. find command syntax and examples, symbolic and hard links 4. tr, uniq, cut and chmod -R commands 5. Writing an awk program to calculate employee pay 6. Process states, command history, kill command 7. Startup and shutdown processes in UNIX, fsck, mount, passwd commands
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views1 page

2020 (Dec) Master of Computer Applications First Semester Paper: MCA-104B UNIX and Shell Programming F.M.: 50. Time: 2 Hours

This document appears to be an exam paper for a course on UNIX and Shell Programming. It contains 7 questions testing knowledge of various UNIX/shell concepts: 1. File system hierarchy, environment variables 2. Shell parameters, positional parameters, set and shift commands 3. find command syntax and examples, symbolic and hard links 4. tr, uniq, cut and chmod -R commands 5. Writing an awk program to calculate employee pay 6. Process states, command history, kill command 7. Startup and shutdown processes in UNIX, fsck, mount, passwd commands
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

2020(Dec) (iv) head (v) pr

Master of Computer Applications


(b) Discuss any two of the followings: [3x2=6]
First Semester
Paper: MCA-104B (i) Basic Regular Expression (BRE)
UNIX and Shell Programming
(ii) Extended Regular Expression (ERE)
F.M.: 50.
Time: 2 Hours. (iii) Context addressing
The figures in the right margin indicate full marks for the 5. (a) Write an awk program to find DA, HRA and gross pay of
questions. Answer any five questions. an employee, where DA is 60% of basic pay, HRA is 35%
1. (a) Draw a diagram showing the Parent-Child relationship in of basic pay and gross pay is the total of basic pay, DA and
Unix file system and explain. [5] HRA. Assume that the 5th field, which is to be read from a
(b) What are environment variables? Explain any four data file, is the basic pay of the employee. [5]
environment variables. [5] (b) Explain any one of the followings: [5]
2. (a) What are the meanings of the Shell Parameters, $#, and (i) built-in variables in awk (ii) built-in functions in awk
$@? Explain the set and shift commands for manipulating (iii) associative array in awk
the positional parameters. [4] 6. (a) Write on any three (3) topics from the followings: [3x3=9]
(b) Describe how test and [ ] are used to evaluate expressions (i) process (ii) command history
in shell programming giving with examples. [6] (iii) history variables (iv) process states
3. (a) Write the syntax for find command. Explain with an (v) zombies (vi) kill command
example. [3] (b) Explain the ps command. [1]
(b) What are Symbolic link and Hard link in Unix? Explain 7. (a) Discuss the Startup and Shutdown in Unix system. [6]
with examples. [4] (b) Explain any two of the following commands: [2x2=4]
(c) Explain the use of chmod with the recursive option (-R). [3] (i) fsck (ii) mount (iii) passwd
4. (a) Explain any four of the following commands: [1x4=4] _________________________
(i) tr (ii) uniq (iii) cut

(Page 1) (Page 2)

You might also like