Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

2/5/23, 5:24 PM Study Material

7.Vim Editor and Basic Scripting

1) A better way of executing multiple commands at one go is to type the sequence of command in a
__________ .

A ) excel file

B ) turbo file

C ) text file

D ) all of them

Answer: text file

2) Text file containing sequence of commands are given to _________ for execution.

A ) shell

B ) script

C ) command

D ) pipe

Answer: shell

3) Text file containing sequences of commands are also known as __________ .

A ) command script

B ) editor script

C ) A and B

D ) shell script

Answer: shell script

4) A _________ can be defined as series of commands written in a plain text.

A ) command script

B ) edit script

C ) shell script

D ) none of them

Answer: shell script

5) The ________ are commonly used by the users to perform routine individual tasks and system
administration.

A ) editor script

B ) shell script

C ) command script

D ) none of them

Answer: command script

6) ____________ command is not a good option to create shell script.

A ) cat

B ) vi

C ) vim

D ) all of them

Answer: cat

7) _________ is the example of text editors.

A ) Nano

www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 1/9
2/5/23, 5:24 PM Study Material

B ) pico

C ) vi

D ) all of them

Answer: all of them

8) __________ is a graphical editor available with GNOME desktop environment.

A ) pedit

B ) gedit

C ) kedit

D ) all of them

Answer: gedit

9) _________ is a graphical editor available with KDE desktop environment.

A ) kwrite

B ) kedit

C ) gedit

D ) none of them

Answer: kwrite

10) _________ editor is a visual display editor to write the shell script.

A ) vim

B ) pim

C ) gm

D ) pico

Answer: vim

11) Full form of Vim editor is __________ .

A ) visual editor

B ) v fulfill

C ) vi improved

D ) very important

Answer: vi improved

12) The vim is a text editor written by ____________ .

A ) denny Richie

B ) Bram moolenaar

C ) devid peco

D ) Kerry pok

Answer: Bram moolenaar

13) The vim editor is first released publicly in __________ .

A ) 1990

B ) 1989

C ) 1991

D ) 1995

Answer: 1991

14) __________ is an enhanced version of the vi-editor distributed with most unix systems.

A ) pico

B ) teclo

www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 2/9
2/5/23, 5:24 PM Study Material

C ) vim

D ) gim

Answer: vim

15) _________ is a highly configurable text editor built to enable efficient text editing.

A ) vim

B ) np

C ) ki

D ) pm

Answer: vim

16) The __________ editor can be used from both a command line interface and asa standalone
application in a graphical user interface.

A ) notepad

B ) turbo

C ) vim

D ) kde

Answer: vim

17) User can open Vim editor using _________ ways.

A ) one

B ) two

C ) three

D ) four

Answer: two

18) When we start vim editor __________ sign is displayed I on the left side of the screen.

A ) >

B ) __

C ) |

D ) ~

Answer: ~

19) The last line of editor is known as ___________ .

A ) command line 

B ) past line 

C ) end line

D ) mode line

Answer: command line 

20) Total number of lines and columns within the file is displayed on ___________ .

A ) last line

B ) title line

C ) command line

D ) mode line

Answer: command line

21) The vim editor functions in __________ different modes.

A ) command mode

B ) Insert mode

www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 3/9
2/5/23, 5:24 PM Study Material

C ) last line mode

D ) All of them

Answer: All of them

22) ___________ key is used to toggle between the command mode and the insert mode.

A ) Esc

B ) Alt

C ) Ctrl

D ) Tab

Answer: Esc

23) When user issue and insert, append or open command editor goes in _________ mode.

A ) command

B ) insert

C ) colon

D ) none of them

Answer: insert

24) In insert mode __________ command is pressed to append text at the end of the current line.

A ) A

B ) a

C ) I

D ) i

Answer: A

25) In insert mode _________ command is pressed to add new line below the current  cursor position.

A ) A

B ) I

C ) o

D ) P

Answer: o

26) The _________ mode normally is used to perform operations like quitting the vim session or saving
a file.

A ) Firstline mode

B ) Lastline mode

C ) exit mode

D ) quit mode

Answer: Lastline mode

27) If user want to go to the last line mode,user first need to be in __________ mode.

A ) command mode

B ) insert mode

C ) colon mode

D ) none of them

Answer: command mode

28) The most commonly used commands to get into insert mode are ___________ .

A ) i

B ) a

www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 4/9
2/5/23, 5:24 PM Study Material

C ) a and b

D ) none of them

Answer: a and b

29) To save the file user need to switch to the ___________ mode from the insert mode.

A ) command

B ) esc

C ) last line

D ) insert

Answer: last line

30) To save file and quit from editing mode ___________ command is given.

A ) :w

B ) :wq

C ) :q

D ) :!q

Answer: :wq

31) To save file and remain in editing mode ___________ command is given.

A ) :w

B ) :wq

C ) :Q

D ) :q

Answer: :w

32) To quit from editing mode when no changes are made, __________ command is given.

A ) :w

B ) :q

C ) :!q

D ) :x

Answer: :q

33) To quit editing mode without saving changes made,__________ command is given.

A ) :q

B ) :!q

C ) :q!

D ) :x

Answer: :q!

34) To save existing file with new file name ___________ command is given.

A ) :save FILENAME

B ) :saveas FILENAME

C ) :s FILENAME

D ) None of them

Answer: :saveas FILENAME

35) ______________ keystroke is use to moves the cursor left.

A ) h

B ) I

C ) j

www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 5/9
2/5/23, 5:24 PM Study Material

D ) k

Answer: h

36) __________ keystroke is use to moves the cursor rigjt.

A ) h

B ) I

C ) j

D ) k

Answer: I

37) ________ keystroke is use to moves the cursor down.

A ) h

B ) I

C ) j

D ) k

Answer: j

38) ________ keystroke is use to moves the cursor up.

A ) h

B ) I

C ) j

D ) k

Answer: k

39) __________ keystrock scroll down one half of a page.

A ) ctrl +u

B ) ctrl+d

C ) ctrl+h

D ) ctrl+f

Answer: ctrl+d

40) _________ keystroke move the cursor to bottom of the page.

A ) L

B ) H

C ) I

D ) H

Answer: L

41) __________ keystroke is used to undo last change.

A ) p

B ) r

C ) u

D ) c

Answer: u

42) ________ keystroke helps to delete single line.

A ) del

B ) d

C ) r

www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 6/9
2/5/23, 5:24 PM Study Material

D ) dd

Answer: dd

43) _________ keystroke delete the character under the cursor.

A ) r

B ) x

C ) d

D ) I

Answer: x

44) ___________ keystroke helps to copy single line into the buffer.

A ) dd

B ) yy

C ) zz

D ) cc

Answer: yy

45) __________ keystroke helps to search text in a forward direction.

A)
B ) -

C ) /

D ) *

Answer: /

46) ___________ keystroke helps to search text in a backward direction.

A ) /

B ) ?

C ) *

D ) %

Answer: ?

47) A _________ allows us to execute more than one command at one go in a better way.

A ) shell script

B ) command script

C ) line script

D ) all of them

Answer: shell script

48) User can give ________ extension to shell script file.

A ) .doc

B ) .xh

C ) .sh

D ) none of them

Answer: .sh

49) Any line preceded by the _________ symbol is considered as a comment in shell script.

A ) /

B ) *

C ) //

www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 7/9
2/5/23, 5:24 PM Study Material

D ) #

Answer: #

50) To execute the script we need to use ___________ command.

A ) sh

B ) bash

C ) ex

D ) A or B

Answer: A or B

51) A shell script allow us to accept value from user to store in __________ .

A ) variable

B ) space

C ) location

D ) none of them

Answer: variable

52) ________ symbol is preceding the variable name to display content of variable.

A ) #

B ) $

C ) *

D ) @

Answer: $

53) __________ is not allowed as part of variable name.

A ) digit

B ) Character

C ) underscore

D ) Special Character

Answer: Special Character

54) ________ is allowed as a part of variable name.

A ) &

B ) >

C ) __

D ) ?

Answer: __

55) __________ will help to accept values from user in runtime mode.

A ) write

B ) read

C ) input

D ) none of them

Answer: read

56) If we don't type anything and press enter in runtime mode read accept ___________ value.

A ) Numerical value

B ) Character

C ) Null

www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 8/9
2/5/23, 5:24 PM Study Material

D ) Digit

Answer: Null

57) _________ option instruct the echo command not to print a new line after the message is displayed.
A ) -n

B ) N

C ) -p

D ) P

Answer: -n

58) __________ is the full form of expr.

A ) Experience

B ) Expression

C ) Expand

D ) Expose

Answer: Expression

59) __________ operator is used for modular in vim editor.

A ) /

B ) _

C ) %

D ) =

Answer: %

60) ___________prefix is used before operator multiplication and division.

A ) /

B)
C ) +

D ) -

Answer:

61) There should be no space before or after the ________ operator.

A ) =

B ) +

C ) *

D ) -

Answer: =

62) _________ is known as assignment operator.

A ) +

B ) -

C ) *

D ) =

Answer: =

www.ameecomputerclass.in

www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 9/9

You might also like