

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. |
The technique of restoring line deletions from numbered buffers is applicable only to entire lines. |
A. | True |
B. | False |
Answer» B. False | |
2. |
For restoring the contents of numbered buffers efficiently, ___ command is used. |
A. | . |
B. | $ |
C. | :nb |
D. | :q |
Answer» B. $ | |
3. |
To restore a number of recent deletions, numbered buffers are used. |
A. | True |
B. | False |
Answer» B. False | |
4. |
vi editor has ____ named buffers. |
A. | 2 |
B. | 4 |
C. | 26 |
D. | 5 |
Answer» D. 5 | |
5. |
:r !date inserts the output of date command in our file. |
A. | True |
B. | False |
Answer» B. False | |
6. |
TO_RESTORE_A_NUMBER_OF_RECENT_DELETIONS,_NUMBERED_BUFFERS_ARE_USED.?$ |
A. | True |
B. | False |
Answer» B. False | |
7. |
The technique of restoring line deletions from numbered buffers is applicable only to entire lines.$ |
A. | True |
B. | False |
Answer» B. False | |
8. |
For restoring the contents of numbered buffers efficiently, ___ command is used.$ |
A. | . |
B. | $ |
C. | :nb |
D. | :q |
Answer» B. $ | |
9. |
Which of the following is an invalid command? |
A. | :r file01 |
B. | :e file01 |
C. | :e |
D. | :w file01 |
Answer» E. | |
10. |
To append contents of buffer to file01, we can use __________ |
A. | : w >> file01 |
B. | :r > file01 |
C. | :w > file01 |
D. | :r >> file01 |
Answer» B. :r > file01 | |
11. |
vi used ___ to enter control characters. |
A. | ctrl-w |
B. | ctrl-v |
C. | ctrl-d |
D. | esc |
Answer» C. ctrl-d | |
12. |
vi editor has ____ named buffers? |
A. | 2 |
B. | 4 |
C. | 26 |
D. | 5 |
Answer» D. 5 | |
13. |
To remove all other windows except the current one, which of the following command is used? |
A. | :on |
B. | :new |
C. | :n |
D. | :r |
Answer» B. :new | |
14. |
To create a new window, ____ can be used. |
A. | :sp |
B. | :new |
C. | :n |
D. | :r |
Answer» D. :r | |
15. |
To split the screen into multiple windows, we can use ____ command. |
A. | :sp |
B. | :new |
C. | :n |
D. | :r |
Answer» B. :new | |
16. |
:r !date inserts the output of date command in our file. |
A. | True |
B. | False |
Answer» B. False | |
17. |
We can move back to the previous file using ____ command. |
A. | new |
B. | :n |
C. | :rew |
D. | :prev |
Answer» D. :prev | |
18. |
When multiple filenames are used with vi, we can switch to next file using ___ command. |
A. | new |
B. | :n |
C. | :rew |
D. | :prev |
Answer» D. :prev | |
19. |
For returning back to the original file after switching we can use: |
A. | :e! |
B. | ctrl-^ |
C. | :e |
D. | ctrl-^ and :e |
Answer» E. | |
20. |
Which of the following command is used for switching files? |
A. | :e |
B. | e! |
C. | !e |
D. | !r |
Answer» B. e! | |