MCQOPTIONS
Saved Bookmarks
This section includes 17 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which command is used for mapping keys of a keyboard? |
| A. | set |
| B. | map |
| C. | abbr |
| D. | autowrite |
| Answer» C. abbr | |
| 2. |
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 | |
| 3. |
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 | |
| 4. |
For automatic indentation, ____ is used with : set command. |
| A. | autowrite |
| B. | autoindent |
| C. | automode |
| D. | showmode |
| Answer» C. automode | |
| 5. |
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 | |
| 6. |
Which command is used for mapping keys of a keyboard?$ |
| A. | set |
| B. | map |
| C. | abbr |
| D. | autowrite |
| Answer» C. abbr | |
| 7. |
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 | |
| 8. |
For compiling a C program without leaving the editor, which command will be used? |
| A. | cc % |
| B. | :! Cc |
| C. | :!cc % |
| D. | :!c |
| Answer» D. :!c | |
| 9. |
/* and f* are same. |
| A. | True |
| B. | False |
| Answer» C. | |
| 10. |
For automatic indentation, ____ is used with : set command? |
| A. | autowrite |
| B. | autoindent |
| C. | automode |
| D. | showmode |
| Answer» C. automode | |
| 11. |
vi environment is determined by variable settings. These variables are controlled by ____ command. |
| A. | :set |
| B. | :abbr |
| C. | :map |
| D. | autowrite |
| Answer» B. :abbr | |
| 12. |
For customizing vi, which of the following command is used? |
| A. | set |
| B. | map |
| C. | abbr |
| D. | set, map, abbr |
| Answer» E. | |
| 13. |
For repeating the character search , and ; are used. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 14. |
__ and __ commands works in a reverse manner as f and t. |
| A. | F, T |
| B. | tf, ft |
| C. | z, x |
| D. | ff, tt |
| Answer» B. tf, ft | |
| 15. |
t command positions the cursor a single character before the occurrence. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 16. |
For moving the cursor forward to the first occurrence of a character, __ is used. |
| A. | d |
| B. | t |
| C. | f |
| D. | n |
| Answer» D. n | |
| 17. |
For searching a character, ___ and ___ are used. |
| A. | f, t |
| B. | n, w |
| C. | e, d |
| D. | k, n |
| Answer» B. n, w | |