MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
To copy 10 lines from the current cursor location, we can use _____ |
| A. | 10y |
| B. | 10yy |
| C. | yy10 |
| D. | 10x |
| Answer» C. yy10 | |
| 2. |
To copy (yank) lines in vi editor, we use ______ command. |
| A. | dd |
| B. | x |
| C. | p |
| D. | yy |
| Answer» E. | |
| 3. |
Both ‘p’ and ‘P’ command puts text right/left or above/below on the basis of line deleted. |
| A. | True |
| B. | False |
| Answer» B. False | |
| 4. |
Which command is used for putting deleted lines or part of lines at a different location? |
| A. | p and P |
| B. | x |
| C. | dd |
| D. | y |
| Answer» B. x | |
| 5. |
Which of the following commands will be used to delete 6 lines from the current cursor location? |
| A. | 6d |
| B. | 6X |
| C. | 6dd |
| D. | 6x |
| Answer» D. 6x | |
| 6. |
Which of the following command is used to delete a single line? |
| A. | dd |
| B. | x |
| C. | X |
| D. | d |
| Answer» B. x | |
| 7. |
Which command is used for deleting the character on the left of the cursor? |
| A. | x |
| B. | X |
| C. | dd |
| D. | d |
| Answer» C. dd | |
| 8. |
Which command is used for deleting a single character? |
| A. | d |
| B. | dd |
| C. | x |
| D. | w |
| Answer» D. w | |
| 9. |
Which key is used for deleting text? |
| A. | d |
| B. | y |
| C. | k |
| D. | f |
| Answer» B. y | |
| 10. |
Copying is referred to as yanking in vi editor. |
| A. | True |
| B. | False |
| Answer» B. False | |