Questions

MCQ . (1 Marks)

Take a timed test

102 questions · auto-graded multiple-choice test.

MCQ 21 Mark
Two command can be joined using which symbol ?
  • $|$(pipe)
  • B
    $ \#$(hash)
  • C
    $@$
  • D
    $ \%$
Answer
Correct option: A.
$|$(pipe)
 | (pipe)
View full question & answer
MCQ 41 Mark
For a script to be executed it needs to have …………… permission.
  • execute 
  • B
    read
  • C
    write
  • D
    all of these
Answer
Correct option: A.
execute 
execute
View full question & answer
MCQ 51 Mark
Which command is used to execute the script use sh or bash command ?
  • A
    sh
  • B
    bash
  • C
    ksh
  • Both(A)and(B)
Answer
Correct option: D.
Both(A)and(B)
Both $(A)$ and $(B)$
View full question & answer
MCQ 61 Mark
…………… in the script is not executed.
  • A
    shellscript
  • B
    Variable
  • Comment
  • D
    Block
Answer
Correct option: C.
Comment
Comment
View full question & answer
MCQ 71 Mark
A comment in Ubuntu Linux is begins with which symbol ?
  • $ \#$
  • B
    $?$
  • C
    $ \$$
  • D
    $@$
Answer
Correct option: A.
$ \#$
A. #
View full question & answer
MCQ 81 Mark
In Vim editor which command is used to delete the character under the cursor $?$
  • A
    $R$
  • B
    $r$
  • $x$
  • D
    $X$
Answer
Correct option: C.
$x$
$ x$
View full question & answer
MCQ 91 Mark
What is defined as “set of commands written in plain text file that performs a designated task in a controlled order “
  • shellscript
  • B
    Variable  
  • C
    Comment 
  • D
    Block
Answer
Correct option: A.
shellscript
 shell script
View full question & answer
MCQ 101 Mark
What allows us to execute more than one command at one go in a better way ?
  • shellscript 
  • B
    Variable
  • C
    Forloop
  • D
    Block
Answer
Correct option: A.
shellscript 
 shell script
View full question & answer
MCQ 111 Mark
…………. The document is one of the most common operations that a user would perform once the document is created .
  • A
    Skipping
  • Editing
  • C
    Compiling
  • D
    inserting
Answer
Correct option: B.
Editing
 Editing
View full question & answer
MCQ 121 Mark
In Vim editor which command moves to first line of file $?$
  • A
    $Nb$
  • $gg$
  • C
    $b$
  • D
    $B$
Answer
Correct option: B.
$gg$
$ gg$
View full question & answer
MCQ 131 Mark
In Vim editor which command is used to  replace single character$ ?$
  • A
    $R$
  • $r$
  • C
    $x$
  • D
    $X$
Answer
Correct option: B.
$r$
$ r$
View full question & answer
MCQ 141 Mark
Which of the following syntax is used to substitute all occurances of phrase $1$ with phrase $2$ in the current line $?$
  • A
    $\text{:\%s/phrase1/phrase2/g}$
  • B
    $\text{:\%s/phrase1/phrase2/gc}$
  • $\text{:s/phrase1/phrase2/g}$
  • D
    $\text{:s/phrase1/phrase2/gc}$
Answer
Correct option: C.
$\text{:s/phrase1/phrase2/g}$
$\text{:s/phrase1 /phrase2/g}$
View full question & answer
MCQ 151 Mark
In Vim editor which command is used to  replace single character$ ?$
  • A
    $R$
  • B
    $r$
  • $x$
  • D
    $X$
Answer
Correct option: C.
$x$
$ x$
View full question & answer
MCQ 161 Mark
In Vim editor which command is used to Delete single line ?
  • A
    $U$
  • $u$
  • C
    $C$
  • D
    $dd$
Answer
Correct option: B.
$u$
$ u$
View full question & answer
MCQ 171 Mark
In Vim editor which command is used to delete $N$ number of word $?$
  • A
    $cw$
  • $Ndw$
  • C
    $dw$
  • D
    $Ndd$
Answer
Correct option: B.
$Ndw$
$Ndw$
View full question & answer
MCQ 181 Mark
In Vim editor which command is used to delete one word $?$
  • A
    $cw$
  • B
    $Ndw$
  • $dw$
  • D
    $Ndd$
Answer
Correct option: C.
$dw$
$dw$
View full question & answer
MCQ 191 Mark
In Vim editor which command is used to earch for text in a backward direction$ ?$
  • A
    $/$
  • $?$
  • C
    $n$
  • D
    $SHIFT+n$
Answer
Correct option: B.
$?$
$?$
View full question & answer
MCQ 201 Mark
In Vim editor which command is used to overwrite substitute one character under cursor and continue to insert ?
  • $s $
  • B
    $S$
  • C
    $x$
  • D
    $X$
Answer
Correct option: A.
$s $
$s$
View full question & answer
MCQ 211 Mark
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
  • Both $(A)$ and $(B)$
Answer
Correct option: D.
Both $(A)$ and $(B)$
Both $(A)$ and $(B)$
View full question & answer
MCQ 221 Mark
In Vim editor which command is used to overwrite characters from cursor onward ?
  • $R$
  • B
    $r$
  • C
    $x $
  • D
    $X$
Answer
Correct option: A.
$R$
$R$
View full question & answer
MCQ 231 Mark
In Vim editor which  command is used to delete content of line after cursor and insert new text ?
  • $D$
  • B
    $dd$
  • C
    $C$
  • D
    $Ndd$
Answer
Correct option: A.
$D$
$ D$
View full question & answer
MCQ 241 Mark
In Vim editor which command is used which to delete number of lines ?
  • $ U$
  • B
    $u$
  • C
    $C$
  • D
    $Ndd$
Answer
Correct option: A.
$ U$
$ U$
View full question & answer
MCQ 251 Mark
In Vim editor which command is used to copy single line from current cursor position into the buffer ?
  • A
    $p$
  • B
    $yy$
  • C
    $Nyy$
  • $Yy$
Answer
Correct option: D.
$Yy$
$  Yy$
View full question & answer
MCQ 261 Mark
In Vim editor which command is used to place  contents of buffer after current line defined by current cursor position ?
  • $p $
  • B
    $yy$
  • C
    $Nyy $
  • D
    $x$
Answer
Correct option: A.
$p $
$p$
View full question & answer
MCQ 271 Mark
In Vim editor which command  moves the cursor back by $N$ number of words ?
  • $Nb$
  • B
    $e$
  • C
    $b$
  • D
    $B$
Answer
Correct option: A.
$Nb$
$ Nb$
View full question & answer
MCQ 281 Mark
Buffer Which acts like temporary memory is known as ….
  • clipboard
  • B
    hard disk       
  • C
    smart memory 
  • D
    pendrive
Answer
Correct option: A.
clipboard
 clipboard
View full question & answer
MCQ 291 Mark
In Vim editor which command is used to search again in the opposite direction ?
  • A
    $/$
  • B
    $?$
  • C
    $n$
  • $SHIFT+n$
Answer
Correct option: D.
$SHIFT+n$
$ SHIFT + n$
View full question & answer
MCQ 301 Mark
In Vim editor which command   moves the cursor to  end of file ?
  • A
    $) $
  • B
    $($
  • $G$
  • D
    $W$
Answer
Correct option: C.
$G$
$ G$
View full question & answer
MCQ 311 Mark
………… in the script is not executed; they are messeges that help user understand the usage or meaning of the script.
  • A
    shellscript
  • B
    Variable
  • Comment
  • D
    Block
Answer
Correct option: C.
Comment
 Comment
View full question & answer
MCQ 321 Mark
In Vim editor which command   moves the cursor to the beginmng of current sentence   ?
  • A
    $)$
  • $($
  • C
    $G$
  • D
    $W$
Answer
Correct option: B.
$($
$ ($
View full question & answer
MCQ 331 Mark
In Vim editor which command is used to change case of individual character ?
  • A
    .(dot)
  •  ~
  • C
    @
  • D
    %
Answer
Correct option: B.
 ~
 ~
View full question & answer
MCQ 341 Mark
In Vim editor which command is used to undo last change ?
  • A
    $U$
  • $u$
  • C
    $C$
  • D
    $dd$
Answer
Correct option: B.
$u$
$ u$
View full question & answer
MCQ 351 Mark
To execute the Linux commands from within the Vim editor type …… symbol before the command.
  • A
    %
  • !
  • C
    ?
  • D
    #
Answer
Correct option: B.
!
 !
View full question & answer
MCQ 361 Mark
In Vim editor which command   moves the cursor to the beginmng of next sentence   ?
  • $)$
  • B
    $($
  • C
    $G $
  • D
    $W$
Answer
Correct option: A.
$)$
$ )$
View full question & answer
MCQ 371 Mark
In Vim editor which command   moves the cursor back a word at a time ?
  • A
    $Nb$
  • B
    $e$
  • C
    $c$
  • $B$
Answer
Correct option: D.
$B$
$ B$
View full question & answer
MCQ 391 Mark
In Vim editor which command   moves the cursor to the bottom of the page ?
  • A
    $M$
  • B
    $H$
  • $L$
  • D
    $\$$
Answer
Correct option: C.
$L$
$ L$
View full question & answer
MCQ 401 Mark
When Vim editor is opened without typing file name initially , the text will be directly stored in the ……….
  • system buffer 
  • B
    hard disk
  • C
    register  
  • D
    bus
Answer
Correct option: A.
system buffer 
system buffer
View full question & answer
MCQ 411 Mark
In Vim editor which command   moves the cursor to the middle of the page ?
  • $M$
  • B
    $H$
  • C
    $L$
  • D
    $\$$
Answer
Correct option: A.
$M$
$  M$
View full question & answer
MCQ 421 Mark
In Vim editor which command scrolls forward one page ?
  • A
    $CTRL+d$
  • B
    $CTRL+u$
  • $Ctrl+f     $
  • D
    $ CTRL+b$
Answer
Correct option: C.
$Ctrl+f     $
$  Ctrl + f$
View full question & answer
MCQ 431 Mark
In Vim editor which command is used to repeat last command action ?
  • .(dot)         
  • B
    ~
  • C
    @
  • D
    %
Answer
Correct option: A.
.(dot)         
 (dot)
View full question & answer
MCQ 441 Mark
In Vim editor which command scrolls down one half of a page ?
  • $CTRL+d$
  • B
    $CTRL+u$
  • C
    $Ctrl+f     $
  • D
    $ CTRL+b$
Answer
Correct option: A.
$CTRL+d$
$ CTRL + d$
View full question & answer
MCQ 451 Mark
In file in Vim editor which command moves curser to down?
  • A
    $h$
  • B
    $I $    
  • $J$
  • D
    $k$
Answer
Correct option: C.
$J$
$ J$
View full question & answer
MCQ 461 Mark
In Vim editor which command   moves the cursor to the top of the page ?
  • A
    $M$
  • $H$
  • C
    $L$
  • D
    $\$$
Answer
Correct option: B.
$H$
$ H$
View full question & answer
MCQ 471 Mark
Which command is used to quit editing mode without saving changes made in the file in Vim editor ?
  • A
    $:w$
  • B
    $:wq$
  • C
    $:q$
  • $:Q!$
Answer
Correct option: D.
$:Q!$
$ :Q!$
View full question & answer
MCQ 491 Mark
In file in Vim editor which command moves curser to left?
  • $h$
  • B
    $I$
  • C
    $J$
  • D
    $k$
Answer
Correct option: A.
$h$
$ h$
View full question & answer
MCQ 501 Mark
In file in Vim editor which command moves curser to right ?
  • $h$
  • B
    $I$
  • C
    $J$
  • D
    $k$
Answer
Correct option: A.
$h$
$ h$
View full question & answer
MCQ 511 Mark
The arrow keys are used to move the …………. In up,down,left and right direction.
  • cursor
  • B
    window  
  • C
    screen
  • D
    none of these
Answer
Correct option: A.
cursor
 cursor
View full question & answer
MCQ 521 Mark
By pressing which key can we go from command mode to the last line mode ?
  • Colon$(:)$
  • B
    $ESC  $
  • C
    $TAB$
  • D
    $\$$
Answer
Correct option: A.
Colon$(:)$
Colon $(:)$
View full question & answer
MCQ 531 Mark
Which command is used to save a file and quit editing mode in Vim editor ?
  • A
    $:x$
  • B
    $:wq$
  • C
    $:q$
  • Both $(A)$ and $(B)$
Answer
Correct option: D.
Both $(A)$ and $(B)$
Both $(A)$ and $(B)$
View full question & answer
MCQ 541 Mark
Which command is used to save a file in Vim editor ?
  • $:wq$
  • B
    $:s$
  • C
    $:fs$
  • D
    $:xy$
Answer
Correct option: A.
$:wq$
$ :wq$
View full question & answer
MCQ 551 Mark
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
  • Both $(A)$ and $(B)$
Answer
Correct option: D.
Both $(A)$ and $(B)$
Both $(A)$ and $(B)$
View full question & answer
MCQ 561 Mark
By pressing which key twice can we toggle back to the command mode from the last line mode ?
  • A
    Colon$(:) $
  • $ESC $
  • C
    $TAB$
  • D
    $\$$
Answer
Correct option: B.
$ESC $
$ ESC$
View full question & answer
MCQ 571 Mark
To go to the last line mode we first need to be in which mode ?
  • Command mode
  • B
    Insert 
  • C
    Last line
  • D
    None of these
Answer
Correct option: A.
Command mode
 Command mode
View full question & answer
MCQ 581 Mark
Which command is used to append text after at the end of the current line ?
  • A
    $a$
  • B
    $i$
  • $A$
  • D
    $I$
Answer
Correct option: C.
$A$
$ A$
View full question & answer
MCQ 591 Mark
Which command is used to get into insert mode ?
  • A
    $a $
  • B
    $i$
  • C
    $s$
  • Both $(A)$ and $(B)$
Answer
Correct option: D.
Both $(A)$ and $(B)$
Both $(A)$ and $(B)$
View full question & answer
MCQ 601 Mark
Which command is used to create a file in Vim editor ?
  • A
     vifilename
  • B
     vi
  • C
     catfilename
  • Both $(A)$ and $(B)$
Answer
Correct option: D.
Both $(A)$ and $(B)$
Both $(A)$ and $(B)$
View full question & answer
MCQ 611 Mark
Which character switches to block visual mode allowing to manipulating rectangular blocks of text?
  • A
    $v$
  • B
    $V$
  • $CTRL+v$
  • D
    $d$
Answer
Correct option: C.
$CTRL+v$
 $CTRL + v$
View full question & answer
MCQ 621 Mark
Which character switches to the visual mode allowing to manipulate characters ?
  • $v$
  • B
    $V$
  • C
    $CTRL+v$
  • D
    $d$
Answer
Correct option: A.
$v$
$ v$
View full question & answer
MCQ 631 Mark
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 a next tension to the command mode
  • all of these
Answer
Correct option: D.
all of these
all of these
View full question & answer
MCQ 641 Mark
Which mode is the only way to select a block of text that needs to be modified ?
  • Visualmode
  • B
    Insert
  • C
    Lastline   
  • D
    None of these
Answer
Correct option: A.
Visualmode
Visual mode
View full question & answer
MCQ 651 Mark
What is an extension to the command mode known as ?
  • Visualmode
  • B
    Insert
  • C
    Last line
  • D
    None of these
Answer
Correct option: A.
Visualmode
Visual mode
View full question & answer
MCQ 661 Mark
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 Vimsession
  • B
    Saving a file
  • C
    Type the text 
  • Both $(A)$ and $(B)$
Answer
Correct option: D.
Both $(A)$ and $(B)$
Both $(A)$ and $(B)$
View full question & answer
MCQ 671 Mark
Which command is used to insert a new line above the current cursor position ?
  • $O$
  • B
    $o$
  • C
    $A$
  • D
    $I$
Answer
Correct option: A.
$O$
$ O$
View full question & answer
MCQ 681 Mark
Which command is used to insert text after the current cursor position ?
  • $a$
  • B
    $i$
  • C
    $A$
  • D
    $I$
Answer
Correct option: A.
$a$
$ a$
View full question & answer
MCQ 691 Mark
How can we toggle between the command mode and the insert mode ?
  • A
    By pressing the $SHIFT$ key    
  • By pressing the $ESC$ key
  • C
    By pressing the $TAB$ key
  • D
    By pressing the $CTRL$ key
Answer
Correct option: B.
By pressing the $ESC$ key
By pressing the $ESC$ key
View full question & answer
MCQ 701 Mark
What can be done in insert mode ?
  • A
    We can type text in file
  • B
    Navigate with in the file
  • C
    None of these
  • Both $(A)$ and $(B)$
Answer
Correct option: D.
Both $(A)$ and $(B)$
Both $(A)$ and $(B)$
View full question & answer
MCQ 711 Mark
When a new file is opened in Vim the cursor appears in the top ……….. of the screen.
  • left corner
  • B
    center 
  • C
    right corner
  • D
    none of these
Answer
Correct option: A.
left corner
 left corner
View full question & answer
MCQ 721 Mark
When  a new file is opened in vim ………….. symbol indicates that the lines are yet to be used by the editor.
  • A
    @
  • B
    #
  • ~(tilde)
  • D
    $
Answer
Correct option: C.
~(tilde)
 ~ (tilde)
View full question & answer
MCQ 731 Mark
When a new file is opened in Vim it is filled with ….. tildes (~) on the left side of the screen.
  • A
    @
  • B
    #
  • ~(tilde) 
  • D
    $
Answer
Correct option: C.
~(tilde) 
 ~ (tilde)
View full question & answer
MCQ 751 Mark
Which command is to be issued to insert the text in the file ?
  • A
    Insert$(i)$
  • B
    Append$(a)$
  • C
    Open$(o)$
  • Any of these
Answer
Correct option: D.
Any of these
Any of these
View full question & answer
MCQ 761 Mark
Which are the modes available in Vim editor ?
  • A
    Command
  • B
    Insert
  • C
    Lastline
  • All of these
Answer
Correct option: D.
All of these
All of these
View full question & answer
MCQ 771 Mark
How many modes are there in Vim editor ?
  • three  
  • B
    Two  
  • C
    Four
  • D
    One
Answer
Correct option: A.
three  
 three
View full question & answer
MCQ 781 Mark
To work with the Vim editor, we will have to ………….. it first.
  • initiate
  • B
    compile
  • C
    interprete
  • D
    None of these
Answer
Correct option: A.
initiate
 initiate
View full question & answer
MCQ 791 Mark
Where is the name of the file along with the information about the total number of lines and column within the file displayed ?
  • Command line
  • B
    command prompt
  • C
    Shell
  • D
    None of these
Answer
Correct option: A.
Command line
 Command line
View full question & answer
MCQ 801 Mark
What is the last line of a new file opened in Vim known as ?
  • Command line 
  • B
    command prompt
  • C
    Shell 
  • D
    None of these
Answer
Correct option: A.
Command line 
 Command line
View full question & answer
MCQ 811 Mark
In Linux , the output of the command in displayed on the …………..
  • A
    editor
  • B
    graph
  • screen
  • D
    shell script
Answer
Correct option: C.
screen
 screen
View full question & answer
MCQ 831 Mark
Which type of graphical editor available to serve the purpose of writing shell scripts ?
  • A
    Gedit
  • B
    Kwriter
  • Both $(A)$ and $(B)$
  • D
    None of these
Answer
Correct option: C.
Both $(A)$ and $(B)$
Both $(A)$ and $(B)$
View full question & answer
MCQ 841 Mark
Which Editor is available with almost all Unix and Linux flavors ?
  • A
    edit
  • B
    pee
  • C
    nona  
  • Vim
Answer
Correct option: D.
Vim
 Vim
View full question & answer
MCQ 851 Mark
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
  • Vim
Answer
Correct option: D.
Vim
  Vim
View full question & answer
MCQ 861 Mark
Which is a highly configurable text editor built to enable efficient text editing ?
  • A
    ed
  • B
    pico
  • C
    nano
  • Vim
Answer
Correct option: D.
Vim
D. Vim
View full question & answer
MCQ 881 Mark
What is full form of Vim ?
  • ViImproved  
  • B
    Virtual important Machine
  • C
    ViIndependent
  • D
    Very Improved
Answer
Correct option: A.
ViImproved  
ViImproved
View full question & answer
MCQ 891 Mark
Which desktop environment provides Gedit graphical editor ?
  • A
    $KDE$
  • B
    $DEK$
  • C
    $NOMEG$
  • $GNOME$
Answer
Correct option: D.
$GNOME$
 $GNOME$
View full question & answer
MCQ 901 Mark
Which graphical editor is available with $GNOME$ desktop environment ?
  • Gedit 
  • B
    Kwrite
  • C
    editG 
  • D
    writeK
Answer
Correct option: A.
Gedit 
 Gedit
View full question & answer
MCQ 911 Mark
…………. Assists us in writing the shell script.
  • A
    Terminal
  • B
    Application
  • Editor
  • D
    Both $(A)$ and $(B)$
Answer
Correct option: C.
Editor
 Editor
View full question & answer
MCQ 921 Mark
After typing the sequence of commands ina text file, this text file should be given ……. Execution.
  • A
    kernel
  • linuxshell
  • C
    interpreter
  • D
    compiler
Answer
Correct option: B.
linuxshell
 linux shell
View full question & answer
MCQ 931 Mark
The  ………….. command although it allows us to create a file is not a ……. Option to use when creating a shell script .
  • good
  • B
    worthy
  • C
    possible
  • D
    practicle
Answer
Correct option: A.
good
 good
View full question & answer
MCQ 941 Mark
What is the use of cat command ?
  • Create a file
  • B
    Create directory
  • C
    Change directory 
  • D
    None of these
Answer
Correct option: A.
Create a file
Create a file
View full question & answer
MCQ 951 Mark
The process of executing multiple commands using pipes is ……………
  • A
    smart work
  • tedious
  • C
    perfect work
  • D
    none of these
Answer
Correct option: B.
tedious
 tedious
View full question & answer
MCQ 971 Mark
The shell scripts are commonly used by the users to perform………….
  • A
    creating users
  • B
    routine individual tasks
  • C
    system administration
  • Both $(B)$ and $(C)$
Answer
Correct option: D.
Both $(B)$ and $(C)$
Both $(B)$ and $(C)$
View full question & answer
MCQ 981 Mark
In Ubuntu Linux multiple commands can be executed by using ………….
  • pipes
  • B
    conditions
  • C
    filter
  • D
    allofthese
Answer
Correct option: A.
pipes
 pipes
View full question & answer
MCQ 991 Mark
The ………… are commonly used by the users to perform routine individual tasks and system administration.
  • A
    Pipe
  • B
    Editor
  • Shellscript
  • D
    Kernel
Answer
Correct option: C.
Shellscript
 Shell script
View full question & answer
MCQ 1001 Mark
……….. can be defined as series of commands written in a plain text file.
  • A
    Pipe
  • B
    Editor
  • Shellscript
  • D
    Kernel
Answer
Correct option: C.
Shellscript
 Shell script
View full question & answer
MCQ 1011 Mark
Ubuntu Linux commands are executed………..
  • one at a time
  • B
    two at a time
  • C
    many at a time
  • D
    none of these
Answer
Correct option: A.
one at a time
 one at a time
View full question & answer
MCQ 1021 Mark
Which is the example of text editor ?
  • A
    Pico
  • B
    Nano
  • C
    ViorVim
  • All of these
Answer
Correct option: D.
All of these
All of these
View full question & answer