Associate System Administrator MCQs Questions Answers

By: Prof. Fazal Rehman Shamil

Solved MCQs on Editing Text in Vi Editor in UNIX for the job of Associate System Administrator.

To undo a number of changes that are made to a single line before moving it away from that line, what command do we use?
(A). u
(B). U
(C). dd
(D). yy
(E). None of these
Multiple Choice Question Answer: b


The ‘yy’ command can be used to copy and paste operations.
(A). True
(B). False
(C). Partially True
Multiple Choice Question Answer: a


10 last editing actions will be reversed by ‘10u’.
(A). True
(B). False
(C). Partially True

Multiple Choice Question Answer: a


To join the lines, what command do we use?
(A). J
(B). j
(C). yy
(D). jn
(E). None of these
Multiple Choice Question Answer: a


For redo the changes made by undo command, what command do we use?
(A). ctrl-l
(B). ctrl-r
(C). ctrl-g
(D). ctrl-f
(E). None of these
Multiple Choice Question Answer: b


To repeat the last command, what symbol do we use?
(A). $
(B). *
(C). .
(D). _
(E). None of these
Multiple Choice Question Answer: c


For joining 4 lines with the current line, what command do we use?
(A). 5J
(B). 4J
(C). 6J
(D). 4j
(E). None of these
Multiple Choice Question Answer: a


To undo a most recent single editing change, what command do we use?
(A). u
(B). U
(C). uu
(D). yy
(E). None of these
Multiple Choice Question Answer: a

Prof. Fazal Rehman Shamil