|
1. When we are executing a shell script the shell
acts as
a. An interpreter
2. On executing a statement set -3+1 a. $1 would be -3
3. On executing the command Shift $v a. The positional parameters would be shifted by the value
of the variable v
4. Which of the following is NOT a shell keyword a. Shift
5. To the statement read v1 v2 v3 we can supply a. maximum 3 values
6. The metacharacter $* represents a. Number of parameters supplied at the command prompt
7. A shell variable cannot start with a. An alphabet
8. Which of the following shows the correct hierarchy of arithmetic operations in shell a. (),**,* or /, + or –
9. Which of the following statements is correct a. a=expr $b + $c
10. Which of the following is allowed in an arithmetic statement involving exprinstruction a. []
Correct Answers 1. A 2. D 3. A 4. D 5. D 6. B 7. D 8. D 9. D 10. C |
See Also
Do you have a UNIX Question? Unix Books :-
Return to : - Unix System Administration Hints and Tips (c) www.gotothings.com All material on this site is Copyright.
|