Sunday, November 22, 2009

USP ONLINE BITS

Code No: 07A3EC17 Set No. 1
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
II B.Tech. I Sem., II Mid-Term Examinations, Oct./Nov. – 2009
UNIX & SHELL PROGRAMMING
Objective Exam
I. Choose the correct alternative:
1. Korn shell is most comfortable with __________ shell. [ ]
a) csh b) bsh c) bash d)tsh
2. ls –l | awk`{print $2, substr($1, 5, 3)}` command prints _________ [ ]
a) the filename, its owner and the permission for the group
b) number of links, the permission for owner
c) the filename, number of links and the permission for group
d) only file name
3. The Korn Shell implements multiway selection with the _________statement. [ ]
a) if b) if-then-else c) Nested if d) case
4. The positional parameters can be changed within a script only by using the _________ command
[ ]
a) test b) get c) set d) change
5. The ___________ command is used to evaluate integral mathematical expressions. [ ]
a) eval b) expr c) test d) let
6. Which of the following awk system variable is used for input record separator? [ ]
a) RS b)IRS c) ORS d)ARS
7. Which of the following awk statement terminates the processing of the current record and begins processing of the next record? [ ]
a) exit b) skip c) next d) nextline
8. All loops except the ___________ can be executed in the background. [ ]
a) while b) until c) select d) for-in
9. The input statement in C shell is the _________ construct. [ ]
a) &* b) &$ c) &> d) &<
10. The system call that is used to position the file offset pointer at a desired location is _____[ ]
a) set b) lseek c) offset d) lstat
Cont……2

A
:2:
Code No: 07A3EC17 Set No. 1
II Fill in the Blanks:
11. __________ function is used to change the current file offset to a different value.
12. awk stands for _____________.
13. Collection of fields treated as a unit is called ___________
14. In C shell the exit status of a command is stored in a shell variable called ___________
15. The sequence of operators and operands that reduces to a single value is called ___________
16. The –F option in awk specifies __________
17. A unit of data that has informational content is called a ________
18. The record buffer is designated as __________
19. ________ is used to convert a command’s output to a string that can be stored in another string or a variable.
20. The positional parameters receives their values from the ___________
-oOo-
Code No: 07A3EC17 Set No. 2
I. Choose the correct alternative:
1. The positional parameters can be changed within a script only by using the _________ command
[ ]
a) test b) get c) set d) change
2. The ___________ command is used to evaluate integral mathematical expressions. [ ]
a) eval b) expr c) test d) let
3. Which of the following awk system variable is used for input record separator? [ ]
a) RS b)IRS c) ORS d)ARS
4. Which of the following awk statement terminates the processing of the current record and begins processing of the next record? [ ]
a) exit b) skip c) next d) nextline
5. All loops except the ___________ can be executed in the background. [ ]
a) while b) until c) select d) for-in
6. The input statement in C shell is the _________ construct. [ ]
a) &* b) &$ c) &> d) &<
7. The system call that is used to position the file offset pointer at a desired location is _____[ ]
a) set b) lseek c) offset d) lstat
8. Korn shell is most comfortable with __________ shell. [ ]
a) csh b) bsh c) bash d)tsh
9. ls –l | awk`{print $2, substr($1, 5, 3)}` command prints _________ [ ]
a) the filename, its owner and the permission for the group
b) number of links, the permission for owner
c) the filename, number of links and the permission for group
d) only file name
10. The Korn Shell implements multiway selection with the _________statement. [ ]
a) if b) if-then-else c) Nested if d) case
Cont……2

A
:2:
Code No: 07A3EC17 Set No. 2
II Fill in the Blanks:
11. In C shell the exit status of a command is stored in a shell variable called ___________
12. The sequence of operators and operands that reduces to a single value is called ___________
13. The –F option in awk specifies __________
14. A unit of data that has informational content is called a ________
15. The record buffer is designated as __________
16. ________ is used to convert a command’s output to a string that can be stored in another string or a variable.
27. The positional parameters receives their values from the ___________
18. __________ function is used to change the current file offset to a different value.
19. awk stands for _____________.
20. Collection of fields treated as a unit is called ___________
-oOo-
Code No: 07A3EC17 Set No. 3
I. Choose the correct alternative:
1. Which of the following awk system variable is used for input record separator? [ ]
a) RS b)IRS c) ORS d)ARS
2. Which of the following awk statement terminates the processing of the current record and begins processing of the next record? [ ]
a) exit b) skip c) next d) nextline
3. All loops except the ___________ can be executed in the background. [ ]
a) while b) until c) select d) for-in
4. The input statement in C shell is the _________ construct. [ ]
a) &* b) &$ c) &> d) &<
5. The system call that is used to position the file offset pointer at a desired location is _____[ ]
a) set b) lseek c) offset d) lstat
6. Korn shell is most comfortable with __________ shell. [ ]
a) csh b) bsh c) bash d)tsh
7. ls –l | awk`{print $2, substr($1, 5, 3)}` command prints _________ [ ]
a) the filename, its owner and the permission for the group
b) number of links, the permission for owner
c) the filename, number of links and the permission for group
d) only file name
8. The Korn Shell implements multiway selection with the _________statement. [ ]
a) if b) if-then-else c) Nested if d) case
9. The positional parameters can be changed within a script only by using the _________ command
[ ]
a) test b) get c) set d) change
10. The ___________ command is used to evaluate integral mathematical expressions. [ ]
a) eval b) expr c) test d) let
Cont……2

A
:2:
Code No: 07A3EC17 Set No. 3
II Fill in the Blanks:
11. The –F option in awk specifies __________
12. A unit of data that has informational content is called a ________
13. The record buffer is designated as __________
14. ________ is used to convert a command’s output to a string that can be stored in another string or a variable.
15. The positional parameters receives their values from the ___________
16. __________ function is used to change the current file offset to a different value.
17. awk stands for _____________.
18. Collection of fields treated as a unit is called ___________
19. In C shell the exit status of a command is stored in a shell variable called ___________
20. The sequence of operators and operands that reduces to a single value is called ___________
-oOo-
Code No: 07A3EC17 Set No. 4
I. Choose the correct alternative:
1. All loops except the ___________ can be executed in the background. [ ]
a) while b) until c) select d) for-in
2. The input statement in C shell is the _________ construct. [ ]
a) &* b) &$ c) &> d) &<
3. The system call that is used to position the file offset pointer at a desired location is _____[ ]
a) set b) lseek c) offset d) lstat
4. Korn shell is most comfortable with __________ shell. [ ]
a) csh b) bsh c) bash d)tsh
5. ls –l | awk`{print $2, substr($1, 5, 3)}` command prints _________ [ ]
a) the filename, its owner and the permission for the group
b) number of links, the permission for owner
c) the filename, number of links and the permission for group
d) only file name
6. The Korn Shell implements multiway selection with the _________statement. [ ]
a) if b) if-then-else c) Nested if d) case
7. The positional parameters can be changed within a script only by using the _________ command
[ ]
a) test b) get c) set d) change
8. The ___________ command is used to evaluate integral mathematical expressions. [ ]
a) eval b) expr c) test d) let
9. Which of the following awk system variable is used for input record separator? [ ]
a) RS b)IRS c) ORS d)ARS
10. Which of the following awk statement terminates the processing of the current record and begins processing of the next record? [ ]
a) exit b) skip c) next d) nextline
Cont……2

A
:2:
Code No: 07A3EC17 Set No. 4
II Fill in the Blanks:
11. The record buffer is designated as __________
12. ________ is used to convert a command’s output to a string that can be stored in another string or a variable.
13. The positional parameters receives their values from the ___________
14. __________ function is used to change the current file offset to a different value.
15. awk stands for _____________.
16. Collection of fields treated as a unit is called ___________
17. In C shell the exit status of a command is stored in a shell variable called ___________
18. The sequence of operators and operands that reduces to a single value is called ___________
19. The –F option in awk specifies __________
20. A unit of data that has informational content is called a ________
-oOo-

No comments: