II B.Tech I Semester Examinations,November 2010 UNIX AND SHELL PROGRAMMING Common to Information Technology, Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. (a) What is the output statement in C shell? Explain its format. (b) What would be printed from the following script segment? Explain. for each i ( 12 11 10 8 7 ) echo $i end
[8+8]
2. What would be the effect of the following commands: (a) egrep “∧ [0 − 9] + [.][0 − 9] ∗ $” file1 (b) egrep “∧ 0[xX][0 − 9A − Fa − f] + $” file1 (c) grep “[0 − 9]. ∗ [0 − 9]. ∗ [0 − 9]. ∗ [0 − 9]” file1 > file2 (d) grep “∧ \(.\)\(.\).\2\1” file1 > file2 (e) grep ‘scanf ’ *.c (f) sed ‘s/[0 − 9][0 − 9]$/&.5/’ datafile (g) grep ‘\.pic$’ (h) grep -v “rao” xyz.
[2×8=16]
3. (a) Describe interrupt and EOF characters. (b) What do multiuser and multitasking mean.
[8+8]
4. Use a pipeline and command substitution to set the length of a line in ‘‘emp.dat” to a variable. [16] 5. (a) When will be begin pattern true? When it is false? Explain with an example. (b) Find the line that matches a regular expression in korn shell using grep. [8+8] 6. Diffrentiate grep, egrep and fgrep commands. Explain each with 3 suitable examples. [16] 7. (a) Explain the function concept with awk shell script including calling function, Returning values, comparing strings. (b) Explain the different string manipulations with example awk shell script.[8+8] 8. Write the syntax for the following and explain with an example: (a) lseek www.QuestionPaperDownload.com
www.QuestionPaperDownload.com
Code No: 07A3EC17
R07
Set No. 2
(b) chmod (c) chgrp (d) rmdir.
[4+4+4+4] ?????
www.QuestionPaperDownload.com
www.QuestionPaperDownload.com
Code No: 07A3EC17
R07
Set No. 4
II B.Tech I Semester Examinations,November 2010 UNIX AND SHELL PROGRAMMING Common to Information Technology, Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. Use a pipeline and command substitution to set the length of a line in ‘‘emp.dat” to a variable. [16] 2. What would be the effect of the following commands: (a) egrep “∧ [0 − 9] + [.][0 − 9] ∗ $” file1 (b) egrep “∧ 0[xX][0 − 9A − Fa − f] + $” file1 (c) grep “[0 − 9]. ∗ [0 − 9]. ∗ [0 − 9]. ∗ [0 − 9]” file1 > file2 (d) grep “∧ \(.\)\(.\).\2\1” file1 > file2 (e) grep ‘scanf ’ *.c (f) sed ‘s/[0 − 9][0 − 9]$/&.5/’ datafile (g) grep ‘\.pic$’ (h) grep -v “rao” xyz.
[2×8=16]
3. (a) What is the output statement in C shell? Explain its format. (b) What would be printed from the following script segment? Explain. for each i ( 12 11 10 8 7 ) echo $i end
[8+8]
4. Write the syntax for the following and explain with an example: (a) lseek (b) chmod (c) chgrp (d) rmdir.
[4+4+4+4]
5. Diffrentiate grep, egrep and fgrep commands.Explain each with 3 suitable examples. [16] 6. (a) Explain the function concept with awk shell script including calling function, Returning values, comparing strings. (b) Explain the different string manipulations with example awk shell script. [8+8] 7. (a) When will be begin pattern true? When it is false? Explain with an example. (b) Find the line that matches a regular expression in korn shell using grep. [8+8] www.QuestionPaperDownload.com
www.QuestionPaperDownload.com
Code No: 07A3EC17
R07
Set No. 4
8. (a) Describe interrupt and EOF characters. (b) What do multiuser and multitasking mean. ?????
www.QuestionPaperDownload.com
[8+8]
www.QuestionPaperDownload.com
Code No: 07A3EC17
R07
Set No. 1
II B.Tech I Semester Examinations,November 2010 UNIX AND SHELL PROGRAMMING Common to Information Technology, Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. (a) Explain the function concept with awk shell script including calling function, Returning values, comparing strings. (b) Explain the different string manipulations with example awk shell script.[8+8] 2. (a) Describe interrupt and EOF characters. (b) What do multiuser and multitasking mean.
[8+8]
3. Use a pipeline and command substitution to set the length of a line in ‘‘emp.dat” to a variable. [16] 4. Write the syntax for the following and explain with an example: (a) lseek (b) chmod (c) chgrp (d) rmdir.
[4+4+4+4]
5. (a) When will be begin pattern true? When it is false? Explain with an example. (b) Find the line that matches a regular expression in korn shell using grep. [8+8] 6. (a) What is the output statement in C shell? Explain its format. (b) What would be printed from the following script segment? Explain. for each i ( 12 11 10 8 7 ) echo $i end 7. What would be the effect of the following commands: (a) egrep “∧ [0 − 9] + [.][0 − 9] ∗ $” file1 (b) egrep “∧ 0[xX][0 − 9A − Fa − f] + $” file1 (c) grep “[0 − 9]. ∗ [0 − 9]. ∗ [0 − 9]. ∗ [0 − 9]” file1 > file2 (d) grep “∧ \(.\)\(.\).\2\1” file1 > file2 (e) grep ‘scanf ’ *.c (f) sed ‘s/[0 − 9][0 − 9]$/&.5/’ datafile (g) grep ‘\.pic$’ www.QuestionPaperDownload.com
[8+8]
www.QuestionPaperDownload.com
Code No: 07A3EC17
R07
(h) grep -v “rao” xyz.
Set No. 1 [2×8=16]
8. Diffrentiate grep, egrep and fgrep commands.Explain each with 3 suitable examples. [16] ?????
www.QuestionPaperDownload.com
www.QuestionPaperDownload.com
Code No: 07A3EC17
R07
Set No. 3
II B.Tech I Semester Examinations,November 2010 UNIX AND SHELL PROGRAMMING Common to Information Technology, Computer Science And Engineering Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ????? 1. Write the syntax for the following and explain with an example: (a) lseek (b) chmod (c) chgrp (d) rmdir.
[4+4+4+4]
2. What would be the effect of the following commands: (a) egrep “∧ [0 − 9] + [.][0 − 9] ∗ $” file1 (b) egrep “∧ 0[xX][0 − 9A − Fa − f] + $” file1 (c) grep “[0 − 9]. ∗ [0 − 9]. ∗ [0 − 9]. ∗ [0 − 9]” file1 > file2 (d) grep “∧ \(.\)\(.\).\2\1” file1 > file2 (e) grep ‘scanf ’ *.c (f) sed ‘s/[0 − 9][0 − 9]$/&.5/’ datafile (g) grep ‘\.pic$’ (h) grep -v “rao” xyz.
[2×8=16]
3. (a) When will be begin pattern true? When it is false? Explain with an example. (b) Find the line that matches a regular expression in korn shell using grep. [8+8] 4. (a) What is the output statement in C shell? Explain its format. (b) What would be printed from the following script segment? Explain. for each i ( 12 11 10 8 7 ) echo $i end
[8+8]
5. (a) Describe interrupt and EOF characters. (b) What do multiuser and multitasking mean.
[8+8]
6. Diffrentiate grep, egrep and fgrep commands.Explain each with 3 suitable examples. [16] 7. (a) Explain the function concept with awk shell script including calling function, Returning values, comparing strings. www.QuestionPaperDownload.com
www.QuestionPaperDownload.com
Code No: 07A3EC17
R07
Set No. 3
(b) Explain the different string manipulations with example awk shell script.[8+8] 8. Use a pipeline and command substitution to set the length of a line in ‘‘emp.dat” to a variable. [16] ?????
Show that R is an equivalence relation. (b) Let A = {1, 2, 3, 4} and P = {{1, 2,3}, {4}} be a partition of A. Find the. equivalence relation determined by P. [10+6]. 3.
(a) Give a detailed comparison between combinational logic circuits and sequential. logic circuits. (b) Design a basic flip flop and explain its operation. [8+8] ?
(b) Discuss the Ward Leonard method of Speed control of DC motors. [8+8]. 6. Discuss different classifications of analog instruments and explain each of them.
(a) Write a short note on Synthetic rubber. (b) Compare natural rubber and vulcanized rubber? (c) Write a note on the engineering uses of Vulcanised rubber?
Describe various studies conducted on nerve conduction including Galvani and. Volta's experimentation, Goldman's theory and Hodgekin and huxely's observa- ...
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. B Tech 4-1 R07 ...
What will be the discharge when a cast iron. pipe of roughness k = 0.3 mm is used ? what will be the percentage increase in. the discharge if the cast iron pipe is ...
(c) Give the truth table for the Boolean expression (X0+Y)0. [4+8+4]. 6. Using Q-M method to determine the prime implicants and obtain the possible. minimal ...
(b) What are the advantages and disadvantages of Ellingham diagrams? [8+8]. 6. (a) Explain what do you mean by thermodynamic equillibrium. (b) Discuss the ...
discuss applicability of access modifiers to variables, methods and classes? [8+8]. 3.a) What is inheritance. Explain two benefits of inheritance, with an example ...