| | | | MCQ Tutorial - Linux->Command | | | | 136.) What is the output of this program? #! /usr/bin/awk -f BEGIN { for(i=0;i<=5;i++) { print i i++ } } | | Options are: | | A.) Syntax error because i is not initialised
| | B.) 0,2,4 will print
| | C.) 1,3,5 will print
| | D.) 1,2,3,4,5 will print
| | Correct Option: B | | | | | | | 137.) Which command creates an empty file if file does not exist? | | Options are: | | A.) cat
| | B.) read
| | C.) touch
| | D.) ed
| | Correct Option: C | | | | | | | 138.) Which option of rm command is used to remove a directory with all its subdirectories | | Options are: | | A.) –p
| | B.) –r
| | C.) –b
| | D.) –o
| | Correct Option: B | | | | | | | 139.) What is the output of this program? #! /usr/bin/awk -f BEGIN { two=2; two++; print two } | | Options are: | | A.) Two
| | B.) 2
| | C.) 3
| | D.) Three
| | Correct Option: C | | | | | | | 140.) What is sed? | | Options are: | | A.) A non-interactive stream editor
| | B.) None of the options
| | C.) An IDE
| | D.) A hex editor
| | Correct Option: A | | | | | | | | | | | |