| | | | MCQ Tutorial - Linux->Shell Programming | | | | 1.) Which command generates possible completions for string according to the and write it to standard output? | | Options are: | | A.) compgen
| | B.) None of the options
| | C.) complete
| | D.) continue
| | Correct Option: A | | | | | | | 2.) Which expression use the value of the enclosed arithmetic expression? | | Options are: | | A.) $()
| | B.) $[]
| | C.) $(())
| | D.) ${}
| | Correct Option: C | | | | | | | 3.) How do you print the lines between 5 and 10, both inclusive | | Options are: | | A.) cat filename | head | tail -6
| | B.) cat filename | tail -5 | head -10
| | C.) cat filename | head | tail -5
| | D.) cat filename | tail +5 | head
| | Correct Option: A | | | | | | | 4.) If a and b are 2 variables then the meaning of a<<=b is | | Options are: | | A.) a = a << b
| | B.) a = a << b
| | C.) b = a << b
| | D.) b = b << a
| | Correct Option: B | | | | | | | 5.) Syntax to suppress the display of command error to monitor? | | Options are: | | A.) command 2> /dev/null
| | B.) command 2> &2
| | C.) Command > &2
| | D.) command 2> &1
| | Correct Option: A | | | | | | | | | | | |