Professional Documents
Culture Documents
7.vim Editor and Basic Scripting
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
2) Text file containing sequence of commands are given to _________ for execution.
A ) shell
B ) script
C ) command
D ) pipe
Answer: shell
A ) command script
B ) editor script
C ) A and B
D ) shell script
A ) command script
B ) edit script
C ) shell script
D ) none of them
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
A ) cat
B ) vi
C ) vim
D ) all of them
Answer: cat
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
A ) pedit
B ) gedit
C ) kedit
D ) all of them
Answer: gedit
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
A ) visual editor
B ) v fulfill
C ) vi improved
D ) very important
Answer: vi improved
A ) denny Richie
B ) Bram moolenaar
C ) devid peco
D ) Kerry pok
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
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: ~
A ) command line
B ) past line
C ) end line
D ) mode 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
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
D ) 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
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
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
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
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
A ) h
B ) I
C ) j
D ) k
Answer: I
A ) h
B ) I
C ) j
D ) k
Answer: j
A ) h
B ) I
C ) j
D ) k
Answer: k
A ) ctrl +u
B ) ctrl+d
C ) ctrl+h
D ) ctrl+f
Answer: ctrl+d
A ) L
B ) H
C ) I
D ) H
Answer: L
A ) p
B ) r
C ) u
D ) c
Answer: u
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
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
A)
B ) -
C ) /
D ) *
Answer: /
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
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: #
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: $
A ) digit
B ) Character
C ) underscore
D ) Special Character
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
A ) Experience
B ) Expression
C ) Expand
D ) Expose
Answer: Expression
A ) /
B ) _
C ) %
D ) =
Answer: %
A ) /
B)
C ) +
D ) -
Answer:
A ) =
B ) +
C ) *
D ) -
Answer: =
A ) +
B ) -
C ) *
D ) =
Answer: =
www.ameecomputerclass.in
www.ameecomputerclass.in/sws-manager/download_material_mcq_print.php 9/9