Download VTU BE 2020 Jan CSE Question Paper 17 Scheme 3rd Sem 17CSIS35 UNIX and Shell Programming

Download Visvesvaraya Technological University (VTU) BE ( Bachelor of Engineering) CSE 2017 Scheme 2020 January Previous Question Paper 3rd Sem 17CSIS35 UNIX and Shell Programming

... ,--,, .....,...
,/
.
."
-
a.. Soc/.
,r
,
? ?... .o,, \\
,., .ei
.....
?
(.1
1\

I

i
CHU< OD(
17CS/IS35
USN
Third Semester B.E. Degree Examination, Dec.2019/Jan.2020
UNIX and Shell Programming
Time: 3 hrs. Max. Marks: 100
Note: Answer any FIVE full questions, choosing ONE full question from each module.
Module-1
1 a. Explain with a figure, the kernel and shell relationship in Unix operating system. (08 Marks)
b. Explain with suitable example, options and filenames as arguments. (06 Marks)
c. What is the use of following commands : echo, I s, who (06 Marks)
6.
? ?
to
=
.4d 3
OR
2 a. List and explain the salient features of UNIX operating system. (08 Marks)
b. List and explain the important sections of man command with suitable example. (06 Marks)
01 Tr
c. Explain the use of following commands : printf, passwd, cal (06 Marks)
6. u
,=,
O ... >
vl
sz?
,,,
:? ?
3 a.
c
?
i
b. ,
P. v
u u
c.
Tu
.
t
a ----
o "C
W) C
cc cc
;
e1 ti
rs
ct z
"0 cci OR
>, t
.. .7.:
c
, 4 a. What is parent child relationship? Explain with a figure, the UNIX file system. (06 Marks)
o ?
1 . _ n 73
b. Explain the use of chmod command to change file permission using both absolute and
P ,
P c. relative methods. (06 Marks)
? '
.3

g.) 6
c. Explain the following commands with syntax and example : cat rm cp we (08 Marks)
..; o
???"ct ..=.
? 0
a-
1
a: --
... r,
Module-3
2

--.-,
o 5 a. Explain with a figure, the three mode of Vi editor. (08 Marks)

tA
c e,0

. = b. Explain the various ex mode commands with example. (06 Marks)
'E. g
c. Evaluate the following commands and write the output.
, >
...2
,
u i) Is ?I I grep "Ad" > file!
8 a

ii) grep ?v "ZEE" news.txtlwc
._. ,-.i
iii) grep "8 .. . . $" filet
z
e,
o iv) grep jai sharma emp ?Ist
v) grep ?c member filet
c
t vi) grep A[A3] filename. (06 Marks)
0
Module-2
What is a file? Explain the three categories of files in UNIX operating system. (08 Marks)
Explain the Is command with all the options. (06 Marks)
Explain the following commands with syntax, option and example : mkdir, rmdir, od my.
(06 Marks)
E
FirstRanker.com - FirstRanker's Choice
... ,--,, .....,...
,/
.
."
-
a.. Soc/.
,r
,
? ?... .o,, \\
,., .ei
.....
?
(.1
1\

I

i
CHU< OD(
17CS/IS35
USN
Third Semester B.E. Degree Examination, Dec.2019/Jan.2020
UNIX and Shell Programming
Time: 3 hrs. Max. Marks: 100
Note: Answer any FIVE full questions, choosing ONE full question from each module.
Module-1
1 a. Explain with a figure, the kernel and shell relationship in Unix operating system. (08 Marks)
b. Explain with suitable example, options and filenames as arguments. (06 Marks)
c. What is the use of following commands : echo, I s, who (06 Marks)
6.
? ?
to
=
.4d 3
OR
2 a. List and explain the salient features of UNIX operating system. (08 Marks)
b. List and explain the important sections of man command with suitable example. (06 Marks)
01 Tr
c. Explain the use of following commands : printf, passwd, cal (06 Marks)
6. u
,=,
O ... >
vl
sz?
,,,
:? ?
3 a.
c
?
i
b. ,
P. v
u u
c.
Tu
.
t
a ----
o "C
W) C
cc cc
;
e1 ti
rs
ct z
"0 cci OR
>, t
.. .7.:
c
, 4 a. What is parent child relationship? Explain with a figure, the UNIX file system. (06 Marks)
o ?
1 . _ n 73
b. Explain the use of chmod command to change file permission using both absolute and
P ,
P c. relative methods. (06 Marks)
? '
.3

g.) 6
c. Explain the following commands with syntax and example : cat rm cp we (08 Marks)
..; o
???"ct ..=.
? 0
a-
1
a: --
... r,
Module-3
2

--.-,
o 5 a. Explain with a figure, the three mode of Vi editor. (08 Marks)

tA
c e,0

. = b. Explain the various ex mode commands with example. (06 Marks)
'E. g
c. Evaluate the following commands and write the output.
, >
...2
,
u i) Is ?I I grep "Ad" > file!
8 a

ii) grep ?v "ZEE" news.txtlwc
._. ,-.i
iii) grep "8 .. . . $" filet
z
e,
o iv) grep jai sharma emp ?Ist
v) grep ?c member filet
c
t vi) grep A[A3] filename. (06 Marks)
0
Module-2
What is a file? Explain the three categories of files in UNIX operating system. (08 Marks)
Explain the Is command with all the options. (06 Marks)
Explain the following commands with syntax, option and example : mkdir, rmdir, od my.
(06 Marks)
E
17CS/IS35
OR
6 a. What are wild cards? Explain the various shell wild cards with suitable example. (08 Marks)
b. Explain the grep command with all the options. (06 Marks)
c. Apply the shell's wild cards and write the output :
i) [a z] [1 ? 4]*. txt
ii) *. [!c] [!p] [!p]
iii) *[0 ? 3] [A ? Z]
iv) chap* [!0 ? 9]
v) chap [0 ? 1] [0 ? 9]
vi) [A ? Z] [a ? z] [0 ? 9]*
Module-4
7 a. Explain the sort command with options and example.
b. Explain the three different forms of if conditional statement.
c. Write a menu driven shell script to perform the following operations.
i) List of Users ii) Files in a directory
iii) Today's date iv) Count number of files in a directory.
(06 Marks)
(06 Marks'
(08 Marks)
OR
8 a. What is hard link and soft link? Give differences between them. (04 Marks)
b. Explain the following commands with options and example: head tail cut paste. (08 Marks)
c. Write a menu driven shell script using case statement to perform all arithmetic operations.
(08 Marks)
Module-5
9 a. What is a process? Explain the mechanism of process creation.
b. Explain the following commands with options and example : ps kill at bg.
c. Write a perl script to check whether the given year is a leap or not.
(06 Marks)
(08 Marks)
(06 Marks)
OR
10 a. Explain string handling functions in perl. (08 Marks)
b. Explain with example, how the variables are defined and initialized in perl. (06 Marks)
c. Write a perl script to convert the given decimal number into its equivalent binary number.
(06 Marks)
b 0
* * * *
7 1
1
Lh:
-
.);\ ? ?
(06 Marks)
2 oft
FirstRanker.com - FirstRanker's Choice

This post was last modified on 02 March 2020