1. : Use of what is recommended by POSIX instead of archaic command for command substitution?
(A) |
(B) $
(C) %
(D) #
2. : Using $ as recommended by POSIX, which shell doesn’t support the command substitution?
(A) Korn
(B) bash
(C) bourne
(D) C
3. : By using what can a variable be removed?
(A) bash
(B) read-only
(C) del
(D) unset
4. : When we evaluate the following statement, what will be the result?
$ directory=’pwd’=pwd
(A) erroneous
(B) undefined output
(C) the output of a pwd command along with string pwd=
5. : Which command is used by C shell to assign the values to variables?
(A) =
(B) unset
(C) set
(D) $
6. : What is not a system-defined variable?
(A) $cd
(B) $HOME
(C) $SHELL
(D) $PATH
7. : An invalid variable is ____
(A) _user
(B) -txtfile
(C) us01
(D) txt123
8. : The command substitution requires the command to use what?
(A) standard output
(B) standard input
(C) standard error
(D) all of the mentioned
9. : To assign the value to the variables, which symbol do we use?
(A) $
(B) =
(C) &
(D) @
10. : For the evaluation of variables, which symbol do we use?
(A) @
(B) &
(C) =
(D) $
11. : What is the correct initialization of variables to null strings?
(A) x=
(B) x=, x=’ ‘, x=” “
(C) x=” “
(D) x=’ ‘
12. : One or more arguments to be obtained from the standard output of another command enabled by Shell. What is this feature called?
(A) korn
(B) argument substitution
(C) shell substitution
(D) command substitution
13. : In command substitution, which meta-character is used?
(A) “
(B) ‘
(C) `
” onclick=”checkAnswer(‘q13’, ‘`’)”> (D) >