Home > Unix Programming > Quizzes > Unix Basics Practice Test: Advanced Vi
Unix Basics Practice Test: Advanced Vi
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 76% Most missed: “dw will ________”

Quiz  on Vi operator command combinations, customizing vi editor, handling multiple files and buffers.
 

Related Test: Unix Basics Practice Test: Vi Editor

Unix Basics Practice Test: Advanced Vi
Time left 00:00
25 Questions

1. For returning back to the original file after switching we can use:
2. For repeating the character search , and ; are used.
3. vi environment is determined by variable settings. These variables are controlled by ____ command.
4. Which of the following is an invalid command?
5. Which of the following is not a valid operator-command combination?
6. An operator can’t perform any function without being combined with a command or itself.
7. For moving the cursor forward to the first occurrence of a character, __ is used.
8. t command positions the cursor a single character before the occurrence.
9. When multiple filenames are used with vi, we can switch to next file using ___ command.
10. For restoring the contents of numbered buffers efficiently, ___ command is used.
11. The following command will_________
!! tr ‘[a-z]’ ‘[A-Z]’
12. To split the screen into multiple windows, we can use ____ command.
13. For automatic indentation, ____ is used with : set command.
14. For customizing vi, which of the following command is used?
15. To create a new window, ____ can be used.
16. :r !date inserts the output of date command in our file.
17. To change entire lines, ____ is used.
18. To restore a number of recent deletions, numbered buffers are used.
19. The technique of restoring line deletions from numbered buffers is applicable only to entire lines.
20. To delete from current cursor upto the first occurrence of }, which of the following will be used?
21. The command c0 will change the text from current cursor to the end of line.
22. For pasting text, ____ is used.
23. /* and f* are same.
24. To yank from current cursor up to first occurrence of string str in reverse direction, we can use:
25. The command df. will _____