How To Exam?

a knowledge trading engine...


Jawaharlal Nehru Technological University Kakinada 2008 B.Tech Computer Science and Engineering unix and shell programming - Question Paper

Friday, 09 August 2013 12:25Web
3. What will be the e?ect of subsequent UNIX commands(assume that a ?le s.c contains
100 lines).
(a) tail < s.c |tee y |sort < y |uniq (b) explain about alias command and its usage. [8+8]
4. (a) How do locate lines beginning and ending with a dot using:
i. grep
ii. sed.
(b) What is the di?erence ranging from a wild cards and a regular expressions in sed?
[8+8]
5. (a) Write a script that modifications the name of ?les passed as arguments to lowercase.
(b) Write a script that, provided a ?lename as the argument, deletes all even lines
(lines 2,4,6- - -n) in the ?les. [8+8]
6. (a) obtain the line that matches a regular expression in korn & grep.
(b) obtain the line that does not match a regular expression in korn & grep. [8+8]
7. (a) discuss the storage of values in variables.
(b) discuss null values in interactive C shell. [8+8]
8. discuss the subsequent System calls for File Management:
(a) create
(b) lseek
1 of 2Code No: 07A3EC17 Set No. 2
(c) stat
(d) closedir. [4+4+4+4]
? ? ? ? ?











2 of 2Code No: 07A3EC17 Set No. 3
II B.Tech I Semester Regular Examinations, November 2008
UNIX AND SHELL PROGRAMMING
( Common to Computer Science & Engineering and info
Technology)
Time: three hours Max Marks: 80
ans any 5 ques.
All ques. carry equal marks
? ? ? ? ?
1. What would be the e?ect of the subsequent commands:
(a) cat users
(b) echo $PS1
(c) mv x.c y
(d) uname -r
(e) rm x.c
(f) ls
(g) pwd
(h) mkdir xyz. [2×8=16]
2. What info is presented when the subsequent commands are entered:
(a) ps
(b) w
(c) ?nger
(d) df
(e) du
(f) nl x.c
(g) tee x.sh
(h) tr ‘*’ ‘s’ x.dat |tee x.dat . [2×8=16]
3. Di?erentiate background process and foreground process with suitable examples.
[16]
4. How grep works? discuss with any 8 examples. [2×8=16]
5. discuss the subsequent decision making procedures using awk shell scripts with ex-
amples:
(a) If then else
(b) Nested if
(c) Case statements. [5+5+6]
1 of 2Code No: 07A3EC17 Set No. 3
6. (a) discuss the pattern/action syntax.
(b) discuss the basic decision statement if-else with suitable example. [8+8]
7. (a) elaborate the advantages of ?le expression? explain ?le operators with suitable
examples.
(b) Which expression uses a set of 3 logical operators? discuss it with exam-
ple. [8+8]
8. (a) Write the syntax for the subsequent system calls:
i. Symlink
ii. link
iii. fstat
iv. lstat.
(b) discuss any 2 API Directories. [8+8]
? ? ? ? ?








2 of 2Code No: 07A3EC17 Set No. 4
II B.Tech I Semester Regular Examinations, November 2008
UNIX AND SHELL PROGRAMMING
( Common to Computer Science & Engineering and info
Technology)
Time: three hours Max Marks: 80
ans any 5 ques.
All ques. carry equal marks
? ? ? ? ?
1. What would be the e?ect of the subsequent commands?
(a) date
(b) mkdir xyz
(c) ls -la
(d) mv my?le1 my?le2
(e) rm my?le
(f) wc my?le
(g) pwd
(h) uname. [16]
2. (a) What will be the e?ect of subsequent UNIX commands?
i. umask022
ii. umask
iii. ulimit 1024
iv. du../..
(b) explain telnet and rlogin. [8+8]
3. (a) What would be the e?ect of the subsequent commands:
i. fg ss + ctlz
ii. bg tt + ctlc
iii. alias c = clear
iv. tee x.dat.
(b) Write a shell script to lock your terminal till you enter a password. [8+8]
4. (a) How do you change “/some/UNIX/path” in a substitution?
(b) How do you delete only the ?rst occurrence of a pattern? [8+8]
5. (a) elaborate the di?erent kinds of operators used in awk shell script? discuss.
(b) Mention di?erent kinds of loop statements in awk shell script. [8+8]
6. (a) discuss the substitution string function format with an example.
(b) discuss the global substitution string function format with an example.
1 of 2Code No: 07A3EC17 Set No. 4
(c) What is the use of toupper & tolower functions, discuss them with the suitable
example. [5+5+6]
7. (a) define the relational expressions of C shell program.
(b) Distinguish ranging from user de?ned variable and prede?ned variable. [8+8]
8. Write the syntax for the subsequent and discuss with an example:
(a) Making directories
(b) Removing directory
(c) Coping ?les
(d) Deleting ?le. [4+4+4+4]
? ? ? ? ?
2 of 2




( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Jawaharlal Nehru Technological University Kakinada 2008 B.Tech Computer Science and Engineering unix and shell programming - Question Paper