| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. c operator is used for changing the text.

Correct Answer is : TRUE

2. To change entire lines, ____ is used.

Correct Answer is : cc

3. Which operator is used in vi to filter text?

Correct Answer is : !

4. To delete from current cursor upto the first occurrence of }, which of the following will be used?

Correct Answer is : d / }

5. The command df. will _____

Correct Answer is : deletes from current cursor up to first occurrence of

6. To yank from current cursor up to first occurrence of string str in reverse direction, we can use:

Correct Answer is : y?str

7. The following command will_________ !! tr ‘[a-z]’ ‘[A-Z]’

Correct Answer is : changes the case of the current line from lower to uppercase

8. The command c0 will change the text from current cursor to the end of line.

Correct Answer is : FALSE

9. To sort all lines from current cursor to end of line, ____ can be used.

Correct Answer is : !Gsort

10. Which of the following is not a valid operator-command combination?

Correct Answer is : yy5

11. Wildcards are special characters which are used to replace or represent one or more characters.

Correct Answer is : TRUE

12. Which of the following is not a wild-card?

Correct Answer is : $

13. What does the following command do? $ echo *

Correct Answer is : lists all filenames in the current directory

14. Which command would be most suitable to remove the following files? dirx diry dirz dirzw

Correct Answer is : rm dir?

15. Which of the following files will not be deleted using “rm chap??” ?

Correct Answer is : chactd

16. Which of the following command will list all the hidden filenames in our directory having at least three characters after the dot (.)?

Correct Answer is : ls .???*

17. * and ? cannot match ____

Correct Answer is : / and .

18. rm chap0[1234] will delete all of the following files. chap01 chap02 chap03 chap04

Correct Answer is : TRUE

19. Which of the following files will not be listed using the following command? ls chap0[1-4]

Correct Answer is : chap05

20. Which of the following symbol is used for negating the character class?

Correct Answer is : !