Linux VI Editor Aptitude Questions and Answers

Linux VI Editor Aptitude Questions and Answers: This section contains aptitude questions and answers on Linux VI Editor.
Submitted by Nidhi, on May 20, 2020

This section contains Aptitude Questions and Answers on Linux VI Editor.

1) There are the following statements that are given below, which of them are correct about vi the editor?
  1. The vi editor is also known as a Visual editor.
  2. The vi editor is used to create and edit text files.
  3. It is a very user-friendly editor and works on different distributions of Linux.
  4. vim is the improved version of the vi editor.

Options:

  1. A and B
  2. C and D
  3. A, B, and C
  4. A, B, C, and D

2) Which of the following mode(s) are used in the vi editor?
  1. Insert mode
  2. Command mode
  3. Both of the above
  4. None of the above

3) In which year vi editor was developed?
  1. 1976
  2. 1980
  3. 1982
  4. 1988

4) Who was developed the vi editor?
  1. Bill joy
  2. James gosling
  3. Andy Bechtolseim
  4. Scott G. McNealy

5) Which of the following command is used to "save and quit" from the vi editor?
  1. :q
  2. :Q
  3. :wq
  4. :q!

6) Which of the following command is used to "quit with discarding changes" from the vi editor?
  1. :q
  2. :Q
  3. ZZ
  4. :q!

7) "ZZ" command is also used to save and quit from the vi editor?
  1. Yes
  2. No

8) Which of the following commands are used to switch from command mode to insert mode in the vi editor?
  1. i
  2. a
  3. o
  4. O

Options

  1. A and B
  2. A and C
  3. A, C, and D
  4. A, B, C, and D

9) Which of the following command is used to "start typing at the end of the current line" in the vi editor?
  1. A
  2. a
  3. o
  4. O

10) Which of the following command is used to "move up" in the vi editor?
  1. I
  2. h
  3. j
  4. k

11) Which of the following command is used to "move left" in vi editor?
  1. I
  2. h
  3. j
  4. k

12) Which of the following command is used to "move to the last line" in the file?
  1. G
  2. K
  3. Dot (.)
  4. ``

13) Which of the following command is used to "delete current line" from the file?
  1. dd
  2. r
  3. x
  4. X

14) Which of the following command is used to "undo the last command" in the vi editor?
  1. uu
  2. x
  3. X
  4. u

15) Which of the following command is used to "copy a line" in the vi editor?
  1. CC
  2. cc
  3. YY
  4. yy

16) Which of the following command is used to "swap two lines" in the vi editor?
  1. sl
  2. SL
  3. DDP
  4. ddp

17) Which of the following command is used to "delete till the end of the line" in the vi editor?
  1. $
  2. d$
  3. d0
  4. DD

18) Which of the following command is used to "move one word forward" in the vi editor?
  1. b
  2. ww
  3. w
  4. yw

19) Which of the following command is used to "forward search for given string" in the vi editor?
  1. ?string
  2. /string
  3. \string
  4. #string

20) Which of the following command is used to "copy one word" in vi editor?
  1. c
  2. w
  3. cw
  4. yw

21) Which of the following command is used to "repeat the last command" in the vi editor?
  1. Dot (.)
  2. !
  3. @
  4. $

22) Which of the following command is used to "switch two characters" in vi editor?
  1. sc
  2. xp
  3. xc
  4. xx

23) Which of the following command is used to "replace the current character" in the vi editor?
  1. R
  2. rr
  3. r
  4. rc

24) Which of the following command is used to "delete the character before cursor" in the vi editor?
  1. X
  2. x
  3. D
  4. d

25) Which of the following command is used to "paste before the current line" in the vi editor?
  1. y
  2. Y
  3. p
  4. P





Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.