Home / 11th(ENG) - GSEB Board / Reading Mode

📖 Reading Mode: 11th(ENG) - GSEB Board

Chapter: Vim Editor and Basic Scripting • Total: 224 MCQs

MCQ 1 Working with Vim Editor

Which of the following statement is true for Gedit?

A It is a Command line editor.
B It is a Graphical editor.
C It is not an editor.
D It is available with KDE Desktop environment.
MCQ 2 Saving the File

:wq in Vim editor is used for which of the following activities?

A To save file and remain in editing mode
B To save file and quit editing mode
C To quite editing mode without saving changes made in the file
D All of the above
MCQ 3 Working with Vim Editor

Which of following keys is not used to go into insert mode of the Vim editor?

A o
B i
C a
D cw
MCQ 4 Working with Vim Editor

Which of the following keys are used to delete a line?

A ce
B ge
C dd
D d$
MCQ 5 Working with Vim Editor

Which of the following syntax is used to substitute all occurrences of phrase1 with phrase2 in the entire file without asking for user confirmation?

A :%s/phrase1/phrase2/g
B :%s/phrase1/phrase2/gc
C :s/phrase1/phrase2/g
D :s/phrase1/phrase2/gc
MCQ 6 Working with Vim Editor

Which of the following character is used for commenting a line in a shell script?

A *
B %
C $
D #
MCQ 7 Working with Vim Editor

Which of the following symbol instructs a shell script to extract the value of a variable?

A *
B %
C $
D #
MCQ 8 Working with Vim Editor

Ubuntu Linux commands are executed ?????..

A one at a time.
B two at a time
C many at a time
D none of these
MCQ 9 Working with Vim Editor

In Ubuntu Linux multiple commands can be executed by using ?????

A pipes
B conditions
C filter
D all of these
MCQ 10 Working with Vim Editor

The process of executing multiple commands using pipes is ?????..

A smart work
B tedious
C perfect work
D none of these
MCQ 11 Working with Vim Editor

A better way of executing multiple commands at one go is to ?????..

A use pipe
B type the sequence of commands in a text file.
C use @ symbol
D both (A) and (B)
MCQ 12 Working with Vim Editor

After typing the sequence of commands in a text file, this text file should be given ?????. execution.

A kernel
B linux shell
C interpreter
D compiler
MCQ 13 Working with Vim Editor

The ?????.. will execute all the commands available within the text file in the specified sequence.

A kernel
B linux shell
C interpreter
D compiler
MCQ 14 Shell Script

______ assists us in writing the shell script .

A Terminal
B Application
C Editor
D Both (A) and (B)
MCQ 15 Working with Vim Editor

?????.. can be defined as series of commands written in a plain text file.

A Pipe
B Editor
C Shell script
D Kernel
MCQ 16 Shell Script

A shell script can be defined as ??????

A series of commands written in a plain text file.
B condition for commands written in a plain text file.
C excel file
D none of these
MCQ 17 Working with Vim Editor

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

A pipe
B editor
C shell script
D kernel
MCQ 18 Working with Vim Editor

The shell scripts are commonly used by the ?????? to perform routine individual tasks and system administration.

A users
B designers
C analysts
D all of these
MCQ 19 Working with Vim Editor

The shell scripts are commonly used by the users to perform ??????. .

A creating users
B routine individual tasks
C system administration.
D both (B) and (C)
MCQ 20 Working with Vim Editor

????? command is used to create a file.

A Cat
B Man
C Echo
D Pwd
MCQ 21 Working with Vim Editor

What is the use of cat command ?

A Create a file
B Create directory
C Change directory
D None of these
MCQ 22 Working with Vim Editor

?????.. command is used to create a file.

A Cat
B Vi
C Vi filename
D All of these
MCQ 23 Working with Vim Editor

The cat command although it allows us to create a file is not a ??????.. option to use when creating a shell script.

A good
B worthy
C possible
D practical
MCQ 24 Working with Vim Editor

The ?????? command although it allows us to create a file is not a good option to use when creating a shell script.

A cat
B man
C echo
D pwd
MCQ 25 Working with Vim Editor

Which is the example of text editor ?

A Pico
B Nano
C Vi or vim
D All of these
MCQ 26 Working with Vim Editor

Which types of text editor available to serve the purpose of writing shell scripts ?

A vi & vim
B emacs, nano
C pico, ed
D All of these
MCQ 27 Working with Vim Editor

Which types of graphical editor available to serve the purpose of writing shell scripts ?

A Gedit
B Kwriter
C Both (A) and (B)
D None of these
MCQ 28 Working with Vim Editor

To execute a command, user types it on ??????? prompt and press the Enter key.

A command
B graphics
C (A) or (B)
D none of these
MCQ 29 Working with Vim Editor

In how many modes Vim editor works ?

A Four
B Three
C Two
D One
MCQ 30 Working with Vim Editor

In Linux, the output of the command is displayed on the ??????.

A editor
B graph
C screen
D shell script
MCQ 31 Working with Vim Editor

Which graphical editor is available with GNOME desktop environment ?

A Gedit
B Kwrite
C editG
D writeK
MCQ 32 Working with Vim Editor

Which desktop environment provides Gedit graphical editor ?

A KDE
B DEK
C NOMEG
D GNOME
MCQ 33 Working with Vim Editor

Which graphical editor is available with KDE desktop environment ?

A Gedit
B Kwrite
C editG
D writeK
MCQ 34 Working with Vim Editor

Which desktop environment provides Kwrite graphical editor ?

A KDE
B DEK
C NOMEG
D GNOME
MCQ 35 Working with Vim Editor

What is Full form of Vim ?

A Vi Improved
B Virtual Important Machine
C Vi Independent
D Very Improved
MCQ 36 Working with Vim Editor

Vim is written by whom ?

A Robert Williams
B Bram Moolenaar
C Brath Moolenaar
D Bram Molth
MCQ 37 Working with Vim Editor

When was Vim publicly released ?

A 1992
B 1994
C 1995
D 1991
MCQ 38 Working with Vim Editor

Vim is enhanced version of which editor distributed with most UNIX systems ?

A ed
B pico
C nano
D vi
MCQ 39 Working with Vim Editor

Which is a highly configurable text editor built to enable efficient text editing ?

A ed
B pico
C nano
D Vim
MCQ 40 Working with Vim Editor

Which editor can be used from both a command line interface and as a standalone in a graphical user interface. ?

A ed
B pico
C nano
D Vim
MCQ 41 Working with Vim Editor

From where can the Vim editor be used ?

A Command line interface
B As a standalone in a graphical user interface
C Kernel
D Both (A) and (B)
MCQ 42 Working with Vim Editor

Which editor is available with almost all Unix and Linux flavours ?

A edit
B pee
C nona
D Vim
MCQ 43 Working with Vim Editor

To work with the Vim editor, we will have to ??????. it first.

A initiate
B compile
C interprete
D none of these
MCQ 44 Working with Vim Editor

In how many ways can Vim editor be opened ?

A Two
B Three
C Four
D Five
MCQ 45 Working with Vim Editor

Which method is used to open Vim editor ?

A Type vi at the prompt and press Enter key.
B Type vi followed by a file name and press Enter key.
C Type filename and press Enter key
D Both (A) and (B)
MCQ 46 Working with Vim Editor

When a new file is opened in Vim it is filled with ??????? tildes (~) on the left side of the screen.

A @
B #
C ~(tilde)
D $
MCQ 47 Working with Vim Editor

When a new file is opened in Vim ??????. symbol indicates that the lines are yet to be used by the editor.

A @
B #
C ~(tilde)
D $
MCQ 48 Working with Vim Editor

When a new file is opened in Vim the ?????. appears in the top left corner of the screen.

A $
B command line
C @
D cursor
MCQ 49 Working with Vim Editor

When a new file is opened in Vim the cursor appears in the top ?????.. of the screen.

A left corner
B center
C right corner
D none of these
MCQ 50 Working with Vim Editor

On the which line is some text visible when a new file is opened in Vim ?

A Last
B First
C Fifth
D Seventh
MCQ 51 Working with Vim Editor

What is the last line of a new file opened in Vim known as ?

A Command line
B Command prompt
C Shell
D None of these
MCQ 52 Working with Vim Editor

Which line is known as command line when a new file is opened in Vim ?

A Last
B First
C Fifth
D Seventh
MCQ 53 Working with Vim Editor

Where is the name of the file along with the information about the total number of lines and columns within the file displayed ?

A Command line
B Command prompt
C Shell
D None of these
MCQ 54 Working with Vim Editor

What is displayed on the command line ?

A The name of the file
B The name of the file along with the information about the total number of lines
C The name of the file along with the information about the total number of lines and columns within the file
D None of these
MCQ 55 Working with Vim Editor

How many modes are there in Vim editor ?

A Three
B Two
C Four
D One
MCQ 56 Working with Vim Editor

Which are the modes available in Vim editor ?

A Command
B Insert
C Last line
D All of these
MCQ 57 Working with Vim Editor

In which mode will the editor be opened, when we first start editing a file using the Vim editor ?

A (D) All of these
B Insert
C Last line
D All of these
MCQ 58 Working with Vim Editor

By default the Vim editor will start in which mode ?

A Command
B Insert
C Last line
D All of these
MCQ 59 Working with Vim Editor

What can we do immediately after being in command mode ?

A We can?t insert text
B We can insert text
C We can delete text
D None of these
MCQ 60 Working with Vim Editor

Which command is to be issued to insert the text in the file ?

A Insert (i)
B Append (a)
C Open (o)
D Any of these
MCQ 61 Working with Vim Editor

Which command is to be issued to be in the insert mode of Vim editor ?

A Insert (i)
B Append (a)
C Open (o)
D Any of these
MCQ 62 Working with Vim Editor

What is an extension to the command mode known as ?

A Visual mode
B Insert
C Last line
D None of these
MCQ 63 Working with Vim Editor

Which mode is a flexible and easy way to select a piece of text from the file ?

A Visual mode
B Insert
C Last line
D None of these
MCQ 64 Working with Vim Editor

Which mode is the only way to select a block of text that needs to be modified ?

A Visual mode
B Insert
C Last line
D None of these
MCQ 65 Working with Vim Editor

Visual mode is ?????..

A is a flexible and easy way to select a piece of text from the file
B is the only way to select a block of text that needs to be modified.
C is an extension to the command mode
D all of these
MCQ 66 Working with Vim Editor

Visual mode ??????

A is a flexible and easy way to select a piece of text from the file
B is the only way to select a block of text that needs to be modified.
C is the most difficult mode
D both (A) and (B)
MCQ 67 Working with Vim Editor

Which character switches to the visual mode allowing to manipulate characters ?

A v
B V
C CTRL + v
D d
MCQ 68 Working with Vim Editor

Which character switches to the visual mode allowing to manipulate lines ?

A v
B V
C CTRL + v
D d
MCQ 69 Working with Vim Editor

Which character switches to block visual mode allowing to manipulate rectangular blocks of text ?

A v
B V
C CTRL + v
D d
MCQ 70 Working with Vim Editor

What can be done in insert mode ?

A We can type text in file
B Navigate within the file
C None of these
D Both (A) and (B)
MCQ 71 Working with Vim Editor

How can we toggle between the command mode and the insert mode ?

A By pressing the SHIFT key
B By pressing the ESC key
C By pressing the TAB key
D By pressing the CTRL key
MCQ 72 Working with Vim Editor

Which command is used to insert text after the current cursor position ?

A a
B i
C A
D I
MCQ 73 Working with Vim Editor

Which command is used to insert text before the current cursor position ?

A a
B i
C A
D I
MCQ 74 Working with Vim Editor

Which command is used to append text after at the end of the current line ?

A a
B i
C A
D I
MCQ 75 Working with Vim Editor

Which command is used to insert text from the beginning of a line ?

A a
B i
C A
D I
MCQ 76 Working with Vim Editor

Which command is used to insert a new line above the current cursor position ?

A O
B o
C A
D I
MCQ 77 Working with Vim Editor

Which command is used to insert a new line below the current cursor position ?

A O
B o
C A
D I
MCQ 78 Working with Vim Editor

To perform which operation normally is the last line mode used for ? To perform operations like quitting the Vim session or saving a file.

A Quitting the Vim session
B Saving a file
C Type the text
D Both (A) and (B)
MCQ 79 Working with Vim Editor

Which mode is normally used to perform operations like quitting the Vim session or saving a file ?

A Visual mode
B Insert
C Last line
D None of these
MCQ 80 Working with Vim Editor

To go to the last line mode we first need to be in which mode ?

A Command mode
B Insert
C Last line
D None of these
MCQ 81 Working with Vim Editor

By pressing which key can we go from command mode to the last line mode ?

A Colon(:)
B ESC
C TAB
D $
MCQ 82 Working with Vim Editor

After pressing the colon(:) key, a colon character is seen at the beginning of the last line of Vim editor window with cursor blinking near it. What does this indicate ?

A The editor is ready for accepting a ?last line command?
B The editor is ready to type the text
C The editor is ready to edit the text
D The editor is ready to delete the text
MCQ 83 Working with Vim Editor

What is seen on the last line of Vim editor window after pressing the colon(:) key ?

A A colon character is seen at the beginning of the last line of Vim editor window.
B A colon character is seen at the beginning of the last line of Vim editor window with cursor blinking near it.
C A $ prompt is seen at the beginning of the last line of Vim editor window with cursor blinking near it.
D a $ prompt is seen at the beginning of the last line of Vim editor window.
MCQ 84 Working with Vim Editor

By pressing which key twice can we toggle back to the command mode from the last line mode ?

A Colon(:)
B ESC
C TAB
D $
MCQ 85 Working with Vim Editor

How can we toggle back to the command mode from the last line mode ?

A By pressing the ESC key twice
B By pressing the [Backspace] key until the initial character is gone along with all the characters that we had typed
C By pressing the TAB key twice
D Both (A) and (B)
MCQ 86 Working with Vim Editor

Which method is used to create a file in Vim editor ?

A Type vi followed by a file name and press Enter key
B Type vi at the prompt and press Enter key
C Cat filename
D Both (A) and (B)
MCQ 87 Working with Vim Editor

Which command is used to create a file in Vim editor ?

A $vi filename
B $vi
C Scat filename
D Both (A) and (B)
MCQ 88 Working with Vim Editor

Which command is used to get into insert mode ?

A a
B i
C s
D Both (A) and (B)
MCQ 89 Working with Vim Editor

Which command is used to save a file in Vim editor ?

A :wq
B :s
C :fs
D :xy
MCQ 90 Working with Vim Editor

To which mode do we need to switch to form the insert mode to save a file in Vim editor ?

A Last line
B Execute
C Delete
D Modify
MCQ 91 Working with Vim Editor

Which command is used to save a file and remain in editing mode in Vim editor ?

A :w
B :wq
C :q
D :q!
MCQ 92 Working with Vim Editor

Which command is used to save a file and quit editing mode in Vim editor ?

A ??
B :wq
C :q
D Both (A) and (B)
MCQ 93 Working with Vim Editor

Which command is used to quit editing mode when no changes are made in the file in Vim editor ?

A :w
B :wq
C :q
D :q!
MCQ 94 Working with Vim Editor

Which command is used to quit editing mode without saving changes made in the file in Vim editor ?

A :w
B :wq
C :q
D :q!
MCQ 95 Working with Vim Editor

Which command is used to save existing file with new name and continue editing it under the new file name in Vim editor ?

A :w
B :wq
C :q
D :saveas Filename
MCQ 96 Working with Vim Editor

When Vim editor is opened without typing file name initially, the text will be directly stored in the ??????.

A system buffer
B hard disk
C register
D bus
MCQ 97 Working with Vim Editor

When Vim editor is opened without typing file name initially, the text will be directly stored in the ??????

A main memory
B hard disk
C register
D bus
MCQ 98 Working with Vim Editor

The arrow keys are used to move the ??????. in up,down,left and right direction.

A cursor
B window
C screen
D none of these
MCQ 99 Working with Vim Editor

The arrow keys are used to move the cursor in ?????. direction.

A up and down
B left and right
C digonally
D both (A) and (B)
MCQ 100 Working with Vim Editor

In file in Vim editor which command moves cursor to left ?

A h
B l
C j
D k
MCQ 101 Working with Vim Editor

In file in Vim editor which command moves cursor to right ?

A h
B l
C j
D k
MCQ 102 Working with Vim Editor

In file in Vim editor which command moves cursor to down ?

A h
B l
C j
D k
MCQ 103 Working with Vim Editor

In file in Vim editor which command moves cursor to up ?

A h
B l
C j
D k
MCQ 104 Working with Vim Editor

In file in Vim editor which command moves cursor to right one space ?

A spacebar
B l
C j
D k
MCQ 105 Working with Vim Editor

In Vim editor which command moves cursor down in first column ?

A ?
B +
C *
D /
MCQ 106 Working with Vim Editor

In Vim editor which command moves cursor up in first column ?

A ?
B +
C *
D /
MCQ 107 Working with Vim Editor

In Vim editor which command scrolls down one half of a page ?

A CTRL + d
B CTRL + u
C CTRL + f
D CTRL + b
MCQ 108 Working with Vim Editor

In Vim editor which command scrolls up one half of a page ?

A CTRL + d
B CTRL + u
C CTRL + f
D CTRL + b
MCQ 109 Working with Vim Editor

In Vim editor which command scrolls forward one page ?

A CTRL + d
B CTRL + u
C CTRL + f
D CTRL + b
MCQ 110 Working with Vim Editor

In Vim editor which command scrolls back one page ?

A CTRL + d
B CTRL + u
C CTRL + f
D CTRL + b
MCQ 111 Working with Vim Editor

In Vim editor which command moves the cursor to the middle of the page ?

A M
B H
C L
D $
MCQ 112 Working with Vim Editor

In Vim editor which command moves the cursor to the top of the page ?

A M
B H
C L
D $
MCQ 113 Working with Vim Editor

In Vim editor which command moves the cursor to the bottom of the page ?

A M
B H
C L
D $
MCQ 114 Working with Vim Editor

In Vim editor which command moves the cursor to the end of line ?

A M
B H
C L
D $
MCQ 115 Working with Vim Editor

In Vim editor which command moves the cursor to the beginmng of next sentence?

A )
B (
C G
D W
MCQ 116 Working with Vim Editor

In Vim editor which command moves the cursor to the beginmng of current sentence?

A )
B (
C G
D W
MCQ 117 Working with Vim Editor

In Vim editor which command moves the cursor to end of file ?

A )
B (
C G
D W
MCQ 118 Working with Vim Editor

In Vim editor which command moves the cursor one word at a time?

A )
B (
C G
D W
MCQ 119 Working with Vim Editor

In Vim editor which command moves the cursor back a word at a time.?

A Nb
B e
C c
D B
MCQ 120 Working with Vim Editor

In Vim editor which command moves the cursor back a word at a time ?

A Nb
B e
C b
D c
MCQ 121 Working with Vim Editor

In Vim editor which command moves the cursor back a word at a time ?

A b
B B
C e
D Both (A) and (B)
MCQ 122 Working with Vim Editor

In Vim editor which command moves the cursor back by N number of words ?

A Nb
B e
C b
D B
MCQ 123 Working with Vim Editor

In Vim editor which command moves the cursor back to end of word ?

A Nb
B E
C b
D B
MCQ 124 Working with Vim Editor

In Vim editor which command moves to first line of file ?

A Nb
B gg
C b
D B
MCQ 125 Working with Vim Editor

In Vim editor which command moves to the beginning of the line ?

A Nb
B gg
C b
D 0
MCQ 126 Editing the Document

??????.. the document is one of the most common operations that a user would perform once the document is created.

A Skipping
B Editing
C Compiling
D Inserting
MCQ 127 Vim Modes

A user needs to toggle between the ?????? and the ?????? mode when we edit a document.

A command, insert
B edit, delete
C command, last line
D Insert, delete
MCQ 128 Working with Vim Editor

In Vim editor which command is used to undo last change ?

A U
B u
C C
D dd
MCQ 129 Working with Vim Editor

In Vim editor which command is used to undo all changes to entire line ?

A U
B u
C C
D dd
MCQ 130 Working with Vim Editor

In Vim editor which command is used to Delete single line ?

A U
B u
C C
D dd
MCQ 131 Working with Vim Editor

In Vim editor which command is used to delete N number of lines ?

A U
B u
C C
D Ndd
MCQ 132 Working with Vim Editor

In Vim editor which command is used to delete contents of line after cursor ?

A D
B dd
C C
D Ndd
MCQ 133 Working with Vim Editor

In Vim editor which command is used to delete contents of line after cursor and insert new text ?

A D
B dd
C C
D Ndd
MCQ 134 Working with Vim Editor

In Vim editor which command is used to delete one word ?

A cw
B Ndw
C dw
D Ndd
MCQ 135 Working with Vim Editor

In Vim editor which command is used to delete N number of words ?

A cw
B Ndw
C dw
D Ndd
MCQ 136 Working with Vim Editor

In Vim editor which command is used to change word ?

A cw
B Ndw
C dw
D Ndd
MCQ 137 Working with Vim Editor

In Vim editor which command is used to delete the character under the cursor ?

A R
B r
C x
D X
MCQ 138 Working with Vim Editor

In Vim editor which command is used to delete the character before the cursor ?

A R
B r
C x
D X
MCQ 139 Working with Vim Editor

In Vim editor which command is used to replace single character ?

A R
B r
C x
D X
MCQ 140 Working with Vim Editor

In Vim editor which command is used to overwrite characters from cursor onward ?

A R
B r
C x
D X
MCQ 141 Working with Vim Editor

In Vim editor which command is used to overwrite substitute one character under cursor and continue to insert ?

A s
B S
C x
D X
MCQ 142 Working with Vim Editor

In Vim editor which command is used to overwrite substitute entire line and begin to insert at beginning of line ?

A s
B S
C x
D X
MCQ 143 Working with Vim Editor

In Vim editor which command is used to change case of individual character ?

A . (dot)
B ~
C @
D %
MCQ 144 Working with Vim Editor

In Vim editor which command is used to repeat last command action ?

A . (dot)
B ~
C @
D %
MCQ 145 Working with Vim Editor

Vim editor allows to copy text ?????

A from file into temporary buffer
B from temporary buffer into file
C from file into processor
D both (A) and (B)
MCQ 146 Working with Vim Editor

Buffer which acts like temporary memory is known as ????..

A clipboard
B hard disk
C smart memory
D pen drive
MCQ 147 Working with Vim Editor

In Vim editor which command is used to place (paste) contents of buffer after current line defined by current cursor position ?

A p
B yy
C Nyy
D x
MCQ 148 Working with Vim Editor

In Vim editor which command is used to copy N lines from current cursor position into the buffer ?

A p
B yy
C Nyy
D x
MCQ 149 Working with Vim Editor

In Vim editor which command is used to copy single line from current cursor position into the buffer ?

A p
B yy
C Nyy
D Yy
MCQ 150 Working with Vim Editor

In Vim editor which command is used copy single line (defined by current cursor position) into the buffer ?

A p
B yy
C Nyy
D x
MCQ 151 Working with Vim Editor

The Vim editor allows to ?????..

A search text or a regular expression within the file
B substitution of a word in place of another word
C none of these
D both (A) and (B)
MCQ 152 Working with Vim Editor

In Vim editor which command is used to search for text in a forward direction ?

A /
B ?
C n
D SHIFT + n
MCQ 153 Working with Vim Editor

In Vim editor which command is used to search for text in a backward direction ?

A /
B ?
C n
D SHIFT + n
MCQ 154 Working with Vim Editor

In Vim editor which command is used to search again in the same direction ?

A /
B ?
C n
D SHIFT + n
MCQ 155 Working with Vim Editor

In Vim editor which command is used to search again in the opposite direction ?

A /
B ?
C n
D SHIFT + n
MCQ 156 Working with Vim Editor

Which of the following syntax is used to substitute all occurrences of phrase 1 with phrase2 in the entire file ?

A :%s/phrasel/phrase2/g
B :%s/phrasel/phrase2/gc
C :s/phrasel/phrase2/g
D :s/phrasel/phrase2/gc
MCQ 157 Working with Vim Editor

Which of the following syntax is used to substitute all occurrences of phrase 1 with phrase2 in the current line ?

A :%s/phrasel/phrase2/g
B :%s/phrasel/phrase2/gc
C :s/phrasel/phrase2/g
D :s/phrasel/phrase2/gc
MCQ 158 Working with Vim Editor

Which of the following syntax is used to substitute first occurrence of phrase1 with phrase2 in the current line ?

A :%s/phrasel/phrase2/g
B :s/phrasel/phrase2
C :s/phrasel/phrase2/g
D :s/phrasel/phrase2/gc
MCQ 159 Working with Vim Editor

To execute the Linux commands from within the Vim editor type ?????.. symbol before the command.

A %
B ! (exclamation)
C ?
D #
MCQ 160 Working with Vim Editor

What allows us to execute more than one command at one go in a better way ?

A Shell script
B Variable
C For loop
D Block
MCQ 161 Working with Vim Editor

What is defined as ?Set of commands written in plain text file that performs a designated task in a controlled order.? ?

A Shell script
B Variable
C Comment
D Block
MCQ 162 Working with Vim Editor

Shell script can be defined as ??????

A set of commands written in plain text file that performs a designated task in a controlled order.
B a word which is defined to perform certain action.
C memory location which has name
D none of these
MCQ 163 Working with Vim Editor

Is it necessary to provide sh as extension to shell script ?

A Yes, it is compulsory to provide sh extension to shell script
B No, it is not compulsory to provide sh extension to shell script
C No, it is not compulsory, it is good practice to provide sh extension to shell script
D None of these
MCQ 164 Shell Script

A comment in Ubuntu Linux is begins with which symbol ?

A #
B ?
C $
D @
MCQ 165 Shell Script

?????. in the script is not executed; they are messages that help user understand the usage or meaning of the script.

A Shell script
B Variable
C Comment
D Block
MCQ 166 Shell Script

?????. in the script is not executed.

A Shell script
B Variable
C Comment
D Block
MCQ 167 Working with Vim Editor

Which command clears the screen contents before giving the output of the script ?

A Echo
B Clear
C Cut
D Clean
MCQ 168 Working with Vim Editor

Which command displays a message on the screen ?

A Echo
B Ego
C Disp
D Display
MCQ 169 Working with Vim Editor

Which command gives the name and some additional details of the user currently logged into the system ?

A who am i
B who
C pwd
D cal
MCQ 170 Working with Vim Editor

Which command is used to execute the script use sh or bash command?

A sh
B bash
C ksh
D Both (A) and (B)
MCQ 171 Working with Vim Editor

Which command is used to set the desired privileges ?

A Chmod
B Changem
C Chmode
D Chprivilege
MCQ 172 Working with Vim Editor

Which command is used to make file executable ? (Consider name of file to be scriptl.sh)

A Chmod +x scriptl.sh
B Changem +x scriptl.sh
C Chmode +x scriptl.sh
D Chprivilege +x scriptl.sh
MCQ 173 Working with Vim Editor

For a script to be executed it needs to have ?????.. permission.

A execute
B read
C write
D all of these
MCQ 174 Working with Vim Editor

Which command is called a filter command?

A Who
B Clear
C Echo
D Cut
MCQ 175 Working with Vim Editor

Two command can be joined using which symbol ?

A | (pipe)
B # (hash)
C @ (at the rate)
D % (percentage)
MCQ 176 Working with Vim Editor

To make sure that the contents within the double quotes after the echo command are not treated as message we enclose them in ??????

A single quotes
B double quotes
C # (hash)
D back quotes ( ? ? )
MCQ 177 Working with Vim Editor

Which command is used to display date on the screen ?

A Date
B Datetime
C Cal
D Cd
MCQ 178 Working with Vim Editor

The back quotes are printed on the key with ?????? sign on the keyboard.

A ~ (tilde)
B single quotes
C @(at the rate)
D % (percentage)
MCQ 179 Working with Vim Editor

What is used to create a new command using multiple set of commands in Ubuntu Linux ?

A Shell Script
B For loop
C If condition
D While loop
MCQ 180 Working with Vim Editor

What is used for automating many aspects of computer maintenance, for example create 1 accounts; delete all size 0 files, installation of new software etc in Ubuntu Linux ?

A Shell Script
B Shell environment variables
C Shell Constants
D Shell Variables
MCQ 181 Working with Vim Editor

Can Shell Script be used for data backup in Ubuntu Linux ?

A Yes
B No
C None of these
D All of these
MCQ 182 Working with Vim Editor

Which is a very powerful tool of Linux ?

A Shell Script
B Shell environment variables
C Shell Constants
D Shell Variables
MCQ 183 Working with Vim Editor

Who has almost all the capabilities of any higher level programming language in Linux ?

A Shell Script
B Shell arithmatic
C Shell Constants
D Functions
MCQ 184 Working with Vim Editor

Which task should be done using the shell scripts ?

A Repetitive
B Non Repetitive
C Sequential
D Non ? Sequential
MCQ 185 Working with Vim Editor

Which type of values can be assigned to a variable ?

A Strings
B Numeric
C Shell script
D Both (A) and (B)
MCQ 186 Working with Vim Editor

What is the full form of expr ?

A Exception
B Expresso
C Express
D Expression
MCQ 187 Working with Vim Editor

What are the contents written after expr are assumed to be ?

A Operands of an expression
B Operators of an expression
C Boolean expression
D Both (A) and (B)
MCQ 188 Working with Vim Editor

While writing a numerical expression in Linux should there be one space between operator and operands ?

A Yes
B No
C None of these
D All of these
MCQ 189 Working with Vim Editor

While writing a numerical expression in Linux should there be no space between operator and operands ?

A Yes
B No
C None of these
D All of these
MCQ 190 Working with Vim Editor

While writing a numerical expression in Linux should there be no space before and after the assignment operator (=) ?

A Yes
B No
C None of these
D All of these
MCQ 191 Working with Vim Editor

While writing a numerical expression in Linux should there be one space before and after the assignment operator (=) ?

A Yes
B No
C None of these
D All of these
MCQ 192 Working with Vim Editor

Which operator is used for addition in Linux?

A +
B ++
C =+
D All of these
MCQ 193 Working with Vim Editor

WTiich operator is used for subtraction in Linux ?

A ?
B % ?
C = ?
D All of these
MCQ 194 Working with Vim Editor

Which operator is used for multiplication in Linux ?

A *
B **
C =*
D All of these
MCQ 195 Working with Vim Editor

Which operator is used for division in Linux ?

A /
B \
C = \
D All of these
MCQ 196 Working with Vim Editor

Which operator is used for modular division in Linux ?

A /
B \
C %
D All of these
MCQ 197 Working with Vim Editor

The numerical expressions are evaluated as per the general norms of ?????..

A mathematics
B science
C commerce
D none of these
MCQ 198 Working with Vim Editor

In case of tie between operators of same priority, preference is given to the operator which occurs ?????

A last
B third
C second
D first
MCQ 199 Working with Vim Editor

To force one operation to be performed earlier than the other, we can enclose the operation in ?????..

A curly braces
B rectuangular brackets
C parenthesis
D angular brackets
MCQ 200 Working with Vim Editor

Which operator in Linux has to be prefixed with \ (backslash) character ?

A +
B ?
C *
D %
MCQ 201 Working with Vim Editor

Multiplication operator has to be prefixed using ?. character .

A \ (forward slash)
B \ (backslash)
C %
D .(underscore)
MCQ 202 Working with Vim Editor

Why should * be prefixed by \ (backslash) character in Linux ?

A Otherwise the shell will treat the (*) symbol as a wildcard character.
B Otherwise the shell will treat the (*) symbol as a evaluating character.
C Otherwise the shell will treat the (*) symbol as a first operation to be performed.
D Otherwise the shell will treat the (*) symbol as a last operation to be performed.
MCQ 203 Working with Vim Editor

Which option of tr command is used to squeeze multiple spaces of output to single space ?

A -a
B -c
C -d
D -s
MCQ 204 Working with Vim Editor

Which column of date command displays ? year ?

A 3
B 4
C 5
D 6
MCQ 205 Working with Vim Editor

Which command is used to display the year from date command ?

A date | tr -s ? ? | cut -d ? ? -f 6
B date | tr -s ? ? | cut -d ? ? -f 4
C date | tr -s ? ? | cut -d ? ? -f 5
D date | tr -s ? ? | cut -d ? ? -f 3
MCQ 206 Working with Vim Editor

Which command is used to assign value to variables defined in the shell script ?

A Read
B Echo
C Clear
D None of these
MCQ 207 Working with Vim Editor

Which command expects the user to key in the data on the standard input device ?

A Read
B Echo
C Clear
D None of these
MCQ 208 Working with Vim Editor

In case we press Enter key without typing anything the script will assign ?????? value to the variable

A ELEVEN
B ONE
C ZERO
D NULL
MCQ 209 Working with Vim Editor

Which option instructs the echo command not to print a new line after the message is displayed ?

A -o
B -s
C -n
D -d
MCQ 210 Working with Vim Editor

What is the default action of the echo command after displaying the message passed to it as an argument ?

A Does not insert a new line
B Inserts a new line
C Inserts a null character
D Inserts zero
MCQ 211 Working with Vim Editor

Which command is used to display the total number of lines in that file ?

A Filename | wc -l
B Filename | wc
C Filename | wc -w
D Filename | wc -c
MCQ 212 Shell Script Variables

A variable name can consist of ?????.

A alphabets
B digitsr
C an underscore ( _ )
D all of these
MCQ 213 Working with Vim Editor

Which special character is allowed as part of variable name ?

A Backslash
B Percentage
C Dollar
D Underscore
MCQ 214 Working with Vim Editor

The first character of a variable name must be ?????. .

A an alphabet
B an underscore
C a dollar
D both (A) and (B)
MCQ 215 Working with Vim Editor

If the shell is unable to understand a word as a variable it will interpret it as a Linux ?????.

A command
B expression
C environment variable
D none of these
MCQ 216 Shell Script Variables

?????. are entities wherein we can store or edit a value in Linux.

A Variables
B Shell script
C Shell arithmatic
D None of these
MCQ 217 Working with Vim Editor

The value stored in the variable can also be ???????.. as per users need.

A reused
B changed
C none of these
D both (A) and (B)
MCQ 218 Shell Script Variables

A variable when used in a shell script allows us to ?????.

A Assign a value to it
B Accept its value from the user
C none of these
D both (A) and (B)
MCQ 219 Working with Vim Editor

Which command is used to display the value assigned to the variable ?

A Display
B Read
C Clear
D Echo
MCQ 220 Working with Vim Editor

Which symbol preceding the variable name instructs the shell to extract the value stored or assigned in the variable ?

A $
B #
C @
D %
MCQ 221 Working with Vim Editor

Should there be no space on either side of the equal to (=) symbol at the time of assigning a value to a variable.

A Yes
B No
C None of these
D All of these
MCQ 222 Working with Vim Editor

If due to some reasons a space occurs at either side of the equal to (=) symbol, the shell will interpret the string after the space as a ??????

A null
B command
C string
D expression
MCQ 223 Working with Vim Editor

If due to some reasons a space occurs at either side of the equal to (=) symbol, we would ge ????? output.

A correct
B unexpected
C null
D zero
MCQ 224 Working with Vim Editor

If we reuse this variable again, the old value stored in it will be ????..

A old value
B zero
C overwritten
D null