| 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: 19

1. To return back to the editor from shell prompt we use _____ command.

Correct Answer is : fg and exit

2. vi editor stores most of its information in a hidden swap file.

Correct Answer is : TRUE

3. To recover from a crash, we can use ____ command.

Correct Answer is : :recover and -r

4. The following command will save the contents of the buffer and overwrites the contents of existing file. :w! file003

Correct Answer is : TRUE

5. Input mode is used for ____________

Correct Answer is : editing text in files

6. Which command is used to insert text before the current cursor location?

Correct Answer is : i

7. Which command will be used to insert text at the beginning of the line?

Correct Answer is : I

8. To append text after the current cursor location, we can use ____ command

Correct Answer is : a

9. Which command appends text at the end of the current line?

Correct Answer is : A

10. To replace a single character, we use ____ command

Correct Answer is : r

11. vi automatically switches from command mode to input mode when we press ‘r’.

Correct Answer is : TRUE

12. To replace all text on the right of the cursor position, we use ____ command.

Correct Answer is : R

13. Which one of the following command is used to replace a single character with many?

Correct Answer is : s

14. To replace 5 characters with new characters, which one of the following will be used?

Correct Answer is : 5s

15. To replace the entire line irrespective of cursor position, we can use ____ command

Correct Answer is : S

16. After using ‘s’ or ‘S’, we are automatically left in insert mode.

Correct Answer is : TRUE

17. Which command creates a space for entering a new line of text below the current cursor location?

Correct Answer is : o

18. To create a space for entering a new line of text above the current cursor location, ‘O’ command is used.

Correct Answer is : TRUE

19. Which of the following command is not used for entering or replacing text?

Correct Answer is : :q