MCQOPTIONS
Saved Bookmarks
This section includes 20 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 of the following is not a valid operator-command combination? |
| A. | 5dd |
| B. | yy5 |
| C. | cc |
| D. | yG |
| Answer» C. cc | |
| 2. |
The command c0 will change the text from current cursor to the end of line. |
| A. | True |
| B. | False |
| Answer» C. | |
| 3. |
The following command will_________ |
| A. | throw an error |
| B. | undefined behavior |
| C. | changes the case of the current line from lower to uppercase |
| D. | changes the case of current line from upper to lowercaseView Answer |
| Answer» D. changes the case of current line from upper to lowercaseView Answer | |
| 4. |
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 | |
| 5. |
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 | |
| 6. |
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. } | |
| 7. |
An operator can’t perform any function without being combined with a command or itself. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 8. |
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 | |
| 9. |
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. } | |
| 10. |
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 | |
| 11. |
To sort all lines from current cursor to end of line, ____ can be used. |
| A. | sort .,$ |
| B. | sort !G |
| C. | sort !,G |
| D. | !Gsort |
| Answer» C. sort !,G | |
| 12. |
throw an error |
| A. | undefined behavior |
| B. | changes the case of the current line from lower to uppercase |
| C. | changes the case of current line from upper to lowercase |
| Answer» C. changes the case of current line from upper to lowercase | |
| 13. |
Which operator is used in vi to filter text? |
| A. | %% |
| B. | && |
| C. | $ |
| D. | ! |
| Answer» E. | |
| 14. |
To change entire lines, ____ is used. |
| A. | cc |
| B. | CC |
| C. | dd |
| D. | c$ |
| Answer» B. CC | |
| 15. |
c operator is used for changing the text. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 16. |
For pasting text, ____ is used. |
| A. | p or P |
| B. | d or D |
| C. | C |
| D. | x or X |
| Answer» B. d or D | |
| 17. |
For yanking text, ___ is used. |
| A. | d |
| B. | y |
| C. | c |
| D. | G |
| Answer» C. c | |
| 18. |
dw will ________ |
| A. | deletes one line |
| B. | deletes one word |
| C. | deletes one character |
| D. | deletes one sentence |
| Answer» C. deletes one character | |
| 19. |
For deleting the line form current cursor to the end of the line, we can use: |
| A. | $ |
| B. | d$ |
| C. | dd |
| D. | $d |
| Answer» B. d$ | |
| 20. |
An operator can’t perform any function without being combined with a command or itself. |
| A. | True |
| B. | False |
| Answer» B. False | |