MCQOPTIONS
Saved Bookmarks
This section includes 657 Mcqs, each offering curated multiple-choice questions to sharpen your Testing Subject knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What does the following command do? $ vi file001 |
| A. | open file named file001 |
| B. | edit file named file001 |
| C. | delete a file named file001 |
| D. | open file if it exists else creates a new file |
| Answer» E. | |
| 2. |
Using ‘b’ command we can _____________ |
| A. | move back to the beginning of the word |
| B. | move forward to the end of the word |
| C. | move forward to the beginning of the word |
| D. | move back to the end of the word |
| Answer» B. move forward to the end of the word | |
| 3. |
The “ed” text editor is no longer in use. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» C. May be | |
| 4. |
One of the most important features of vi editor is _______ |
| A. | available mostly across all UNIX platforms |
| B. | easy to learn |
| C. | latest editor |
| D. | powerful than other editors |
| Answer» B. easy to learn | |
| 5. |
While entering text in input mode the data is saved in _____. |
| A. | buffer |
| B. | disk |
| C. | RAM |
| D. | cache |
| Answer» B. disk | |
| 6. |
Commands inputted in command mode don’t appear on the terminal. |
| A. | True |
| B. | False |
| C. | May be |
| D. | Can't say |
| Answer» B. False | |
| 7. |
For restoring the contents of numbered buffers efficiently, ___ command is used. |
| A. | . |
| B. | $ |
| C. | :nb |
| D. | :q |
| Answer» B. $ | |
| 8. |
To yank from current cursor up to first occurrence of string str in reverse direction, we can use: |
| A. | y?str |
| B. | y!str |
| C. | yy str |
| D. | yy ! str |
| Answer» B. y!str | |
| 9. |
Which of the following is not a valid operator-command combination? |
| A. | 5dd |
| B. | yy5 |
| C. | cc |
| D. | yG |
| Answer» C. cc | |
| 10. |
To delete from current cursor upto the first occurrence of }, which of the following will be used? |
| A. | dd$} |
| B. | d / |
| C. | d / } |
| D. | } |
| Answer» D. } | |
| 11. |
The command df. will _____ |
| A. | deletes entire line |
| B. | deletes entire paragraph |
| C. | deletes from current cursor up to first occurrence of |
| D. | deletes zero lines |
| Answer» D. deletes zero lines | |
| 12. |
The command c0 will change the text from current cursor to the end of line. |
| A. | True |
| B. | False |
| Answer» C. | |
| 13. |
Which command is used for mapping keys of a keyboard? |
| A. | set |
| B. | map |
| C. | abbr |
| D. | autowrite |
| Answer» C. abbr | |
| 14. |
For automatic indentation, ____ is used with : set command. |
| A. | autowrite |
| B. | autoindent |
| C. | automode |
| D. | showmode |
| Answer» C. automode | |
| 15. |
To change the default tab stop spaces in vi, ___ can be used with :set. |
| A. | nomagic |
| B. | tabstop=n |
| C. | tab |
| D. | tabchange |
| Answer» C. tab | |
| 16. |
Which of the following is used with :set to customize vi to ignore case in pattern searches? |
| A. | nomatch |
| B. | ignorecase |
| C. | nocase |
| D. | nomagic |
| Answer» C. nocase | |