Questions

MCQ . (1 Marks)

Take a timed test

85 questions · auto-graded multiple-choice test.

MCQ 11 Mark
Which of the following can be used in place of square brackets used in if condition ?
  • A
    Curly braces
  • Test command
  • C
    Check command
  • D
    All of these above
Answer
Correct option: B.
Test command
Test command
View full question & answer
MCQ 21 Mark
Which of the following operator is used for less than comparison in Linux ?
  • A
    <
  • B
    less than
  • C
    It
  • – It
Answer
Correct option: D.
– It
  – It
View full question & answer
MCQ 31 Mark
Which of the following indicates the end of if condition in shell script ?
  • A
    end – if
  • fi
  • C
    } (closing curly bracket)
  • D
    It does not have any end statement
Answer
Correct option: B.
fi
 fi
View full question & answer
MCQ 41 Mark
In case structure, which of the following character denotes default case ?
  • *
  • B
    +
  • C
    d
  • D
    All of these
Answer
Correct option: A.
*
 *
View full question & answer
MCQ 51 Mark
Which of the following allows us to specify a list of values in its statement ?
  • A
    while
  • B
    until 
  • for    
  • D
    if
Answer
Correct option: C.
for    
for
View full question & answer
MCQ 61 Mark
Which of the following symbol is used to break the flow of control in the case statement ?
  • A
    $**$
  • $;;$
  • C
    $++$
  • D
    $>>$
Answer
Correct option: B.
$;;$
$;;$
View full question & answer
MCQ 71 Mark
The …………….executes till the condition is true.
  • A
    for loop
  • B
    until loop
  • C
    case- esac
  • while loop
Answer
Correct option: D.
while loop
while loop
View full question & answer
MCQ 81 Mark
The …………… execute till the condition is false.
  • A
    for loop
  • until loop
  • C
    case- esac
  • D
    while loop
Answer
Correct option: B.
until loop
 until loop
View full question & answer
MCQ 91 Mark
The until loop execute till the condition is …………..
  • A
    $0$
  • $1$
  • C
    none of these
  • D
    Both $(A)$ and $(B)$
Answer
Correct option: B.
$1$
true
View full question & answer
MCQ 101 Mark
The until loop is similar to the ………
  • A
    for loop
  • B
    if – else- fi
  • C
    case – esac
  • while loop
Answer
Correct option: D.
while loop
while loop
View full question & answer
MCQ 111 Mark
Directory is compressed using, the ………….. command.
  • tar
  • B
    zzip
  • C
    uzip
  • D
    none of these
Answer
Correct option: A.
tar
tar
View full question & answer
MCQ 121 Mark
………….. allows us to specify a list of values in its statement.
  • For
  • B
    While
  • C
    Until
  • D
    case –esac
Answer
Correct option: A.
For
For
View full question & answer
MCQ 131 Mark
How many keywords are provided in Linux to perform repetitive actions ?
  • A
    One
  • B
    Two
  • Three
  • D
    Four
Answer
Correct option: C.
Three
Three
View full question & answer
MCQ 141 Mark
Which loop literates till the condition evaluates to true ?
  • while
  • B
    until
  • C
    for
  • D
    case
Answer
Correct option: A.
while
while
View full question & answer
MCQ 151 Mark
………….. control – variable in value $1$, value $2$, value $3$ …….
Do
               Command      $1$
               Command      $2$
               Command      $3$
Done
What will come in the blank ?
  • For
  • B
    until 
  • C
    case
  • D
    while
Answer
Correct option: A.
For
For
View full question & answer
MCQ 161 Mark
The …………. Command is used to display long listed details of files and directories.
  • Is$ – I$
  • B
    Is- v
  • C
    Is-r   
  • D
    Is-f
Answer
Correct option: A.
Is$ – I$
Is $– I$
View full question & answer
MCQ 171 Mark
The process of repeating the same commands number  of times is known as ………
  • A
    variable
  • function
  • C
    conditional instructs
  • D
    looping
Answer
Correct option: B.
function
function
View full question & answer
MCQ 181 Mark
Function name is followed by …………
  • A
    square bracket
  • B
    parenthesis
  • C
    curly bracket
  • all of these
Answer
Correct option: D.
all of these
all of these
View full question & answer
MCQ 191 Mark
The opening and closing parenthesis after a variable name indicates that it is a ……..
  • A
    Variable
  • Function
  • C
    Dollar variable
  • D
    While loop
Answer
Correct option: B.
Function
Function
View full question & answer
MCQ 201 Mark
What can approved the overall readability of the script ?
  • A
    Variable
  • Function
  • C
    Dollar variable
  • D
    While loop
Answer
Correct option: B.
Function
Function
View full question & answer
MCQ 211 Mark
What is small subscripts within a shell script called ?
  • A
    For loop
  • Function
  • C
    If condition
  • D
    While loop
Answer
Correct option: B.
Function
Function
View full question & answer
MCQ 221 Mark
…………. Command is used in place of square brackets in if statement
  • test
  • B
    cp
  • C
    cmp
  • D
    fi
Answer
Correct option: A.
test
test
View full question & answer
MCQ 231 Mark
The end of the if statement is indicated by ……………… statement.
  • A
    if
  • fi
  • C
    end if
  • D
    else
Answer
Correct option: B.
fi
fi
View full question & answer
MCQ 241 Mark
if the condition of it statement is evaluated to …………. Then statement typed inside then block will be executed.
  • $1$
  • B
    $0$
  • C
    Both $(A)$ and $(B)$
  • D
    none of these
Answer
Correct option: A.
$1$
True
View full question & answer
MCQ 251 Mark
There should be ………… space after opening square bracket and one before closing square bracket in if condition statement
  • A
    zero
  • one
  • C
    two  
  • D
    none of these
Answer
Correct option: B.
one
one
View full question & answer
MCQ 261 Mark
The condition in the shell script is enclosed in a ……………
  • A
    parenthesis
  • B
    angular bracket
  • C
    curly bracket
  • square bracket
Answer
Correct option: D.
square bracket
square bracket
View full question & answer
MCQ 271 Mark
The exit status of command is ……….. if it has been executed successfully.
  • zero
  • B
    one  
  • C
    two
  • D
    none of these
Answer
Correct option: A.
zero
zero
View full question & answer
MCQ 281 Mark
If student has greater than 35 percentage display “ Result : pass “ . When we want to write a shell script for above task which decision making instructions will be used ?
  • if- then-fi
  • B
    if-then-el-  if-then-else- fi
  • C
    case- esac
  • D
    if- then-else-fi
Answer
Correct option: A.
if- then-fi
 if- then-fi
View full question & answer
MCQ 291 Mark
How many decision making instructions are available in Linux which can be used in shell script ?
  • A
    One
  • B
    two
  • C
    three
  • four
Answer
Correct option: D.
four
four
View full question & answer
MCQ 301 Mark
………………… condition tested using file operators is True if a file with the specified name exists and the user Has execute permission on it.
  • A
    –r name
  • –w name
  • C
    –s name
  • D
    –x name
Answer
Correct option: B.
–w name
–w name
View full question & answer
MCQ 311 Mark
The function used in shell script return ……….
  • A
    a value
  • a status code               
  • C
    a operator
  • D
    all of these
Answer
Correct option: B.
a status code               
 a status code
View full question & answer
MCQ 321 Mark
What is used to make the scripting more modular ?
  • A
    For loop
  • Function
  • C
    If condition   
  • D
    While loop
Answer
Correct option: B.
Function
 Function
View full question & answer
MCQ 331 Mark
………………… condition tested using file operators is True if a file with the specified name exists.
  • A
    –r name
  • –d name
  • C
    –s name
  • D
    –f name
Answer
Correct option: B.
–d name
  –d name
View full question & answer
MCQ 341 Mark
………………… condition tested using file operators is True if a file with the specified name exists and is not a directory.
  • A
    –r name
  • B
    –d name
  • C
    –s name
  • –f name
Answer
Correct option: D.
–f name
  –f name
View full question & answer
MCQ 351 Mark
………………… condition tested using file operators is True if a file with the specified name exists and has size greater than 0.
  • A
    –r name
  • B
    –d name
  • –s name
  • D
    –f name
Answer
Correct option: C.
–s name
 . –s name
View full question & answer
MCQ 371 Mark
The …………… test is performed using logical operators.
  • A
    numerical
  • logical
  • C
    file    
  • D
    all of these
Answer
Correct option: B.
logical
  logical
View full question & answer
MCQ 381 Mark
Minimum conditions that can be combined using  operator in Ubuntu are …………..
  • one  
  • B
    two
  • C
    three
  • D
    any of these
Answer
Correct option: A.
one  
  one
View full question & answer
MCQ 391 Mark
To combine conditions we make use of ………….. operators.
  • A
    numerical
  • logical
  • C
    file
  • D
    all of these
Answer
Correct option: B.
logical
 logical
View full question & answer
MCQ 401 Mark
Minimum conditions that can be combined using – a operator in Ubuntu are ……….
  • A
    one
  • two
  • C
    three               
  • D
    any of these
Answer
Correct option: B.
two
  two
View full question & answer
MCQ 421 Mark
………. Operators are used to find out the status of file permissions using them.
  • A
    Relational
  • B
    Logical
  • File
  • D
    All of these
Answer
Correct option: C.
File
File
View full question & answer
MCQ 431 Mark
By using ……………. Operators we can come to know whether a specified name is an ordinary file or a directory.
  • A
    Relational
  • B
    Logical
  • File
  • D
    All of these
Answer
Correct option: C.
File
  File
View full question & answer
MCQ 441 Mark
…………. Operators allows to check the status of a file.    
  • A
    Relational
  • B
    Logical
  • File
  • D
    All of these
Answer
Correct option: C.
File
  File
View full question & answer
MCQ 451 Mark
…….. operator converts true to false and vice versa.
  • A
    $–a $
  • B
    $–o $
  • $!$
  • D
    –or
Answer
Correct option: C.
$!$
$!$
View full question & answer
MCQ 461 Mark
…………. Operator is true if both conditions are true, false otherwise
  • –a
  • B
    –o     
  • C
    $!$
  • D
    –or
Answer
Correct option: A.
–a
 –a
View full question & answer
MCQ 471 Mark
………. Is used as “ greater than “ operator.
  • –gt
  • B
    ge
  • C
    greater than
  • D
    –ge
Answer
Correct option: A.
–gt
–gt
View full question & answer
MCQ 481 Mark
We can assign …………… value to the variable that accept the choice in case construct.
  • A
    numeric
  • B
    character
  • C
    string
  • all of these
Answer
Correct option: D.
all of these
  all of these
View full question & answer
MCQ 491 Mark
………… is used as “ equal to “ operator
  • –eq
  • B
    $=$
  • C
    equal to
  • D
    $= =$
Answer
Correct option: A.
–eq
  –eq
View full question & answer
MCQ 501 Mark
……… is used as “less than “ operator.
  • –lt    
  • B
    le
  • C
    less than
  • D
    –le
Answer
Correct option: A.
–lt    
 –lt
View full question & answer
MCQ 511 Mark
Relational operators are used to compare values of ………… numeric operands.
  • A
    one
  • two
  • C
    three
  • D
    any of these
Answer
Correct option: B.
two
 two
View full question & answer
MCQ 521 Mark
The options ………….. refers to  relational operators
  • A
    –gt
  • B
    le
  • C
    – ne
  • all of these
Answer
Correct option: D.
all of these
all of these
View full question & answer
MCQ 531 Mark
exit status of command is ……….. if it has been not executed successfully.
  • A
    zero
  • one
  • C
    two  
  • D
    none of these
Answer
Correct option: B.
one
one
View full question & answer
MCQ 541 Mark
………….. operators are used to compare values of two numeric operands.
  • Relational
  • B
    Logical
  • C
    File
  • D
    All of these
Answer
Correct option: A.
Relational
  Relational
View full question & answer
MCQ 551 Mark
The if statement of Linux is oncerned with the ………. Status of a test expression.
  • exit
  • B
    append
  • C
    delete
  • D
    all of these
Answer
Correct option: A.
exit
  exit
View full question & answer
MCQ 561 Mark
In case we assign string values then within the case it should be enclosed between…….
  • A
    colon
  • B
    comma
  • C
    double quote
  • single quote
Answer
Correct option: D.
single quote
single quote
View full question & answer
MCQ 571 Mark
Which decision making  instructions are available in Linux which can be used in shell script ?
  • A
    if- then-fi
  • B
    if-then-el-  if-then-else- fi
  • C
    case- esac
  • all of these
Answer
Correct option: D.
all of these
all of these
View full question & answer
MCQ 581 Mark
In ps –ef, ………. Is the start time for the current process.
  • A
    $PPID$
  • B
    $TTY$
  • $STIME$
  • D
    $TIME$
Answer
Correct option: C.
$STIME$
 $STIME$
View full question & answer
MCQ 591 Mark
The end of case statement is specified by ………… keyword
  • A
    case
  • esac 
  • C
    asec
  • D
    esca
Answer
Correct option: B.
esac 
esac
View full question & answer
MCQ 601 Mark
………….. is used as ‘ less then equal to “ operator.
  • –le
  • B
    lt
  • C
    less than equal to
  • D
    –it
Answer
Correct option: A.
–le
  –le
View full question & answer
MCQ 611 Mark
………….. operators  are used to compare values of two numeric operands.
  • Relational
  • B
    Logical
  • C
    File
  • D
    All of these
Answer
Correct option: A.
Relational
  Relational
View full question & answer
MCQ 631 Mark
$1, $2, $3 ………… till $9 are called ………..
  • command line arguments
  • B
    shell variables
  • C
    commands
  • D
    shell script
Answer
Correct option: A.
command line arguments
 command line arguments
View full question & answer
MCQ 641 Mark
The …………… test is usinf relational operators.
  • numerical
  • B
    logical
  • C
    file
  • D
    all of these
Answer
Correct option: A.
numerical
 numerical
View full question & answer
MCQ 651 Mark
Once …………. Are encountered in case construct the control is transferred to the line after the end of the case statement.
  • semicolons $(;;)$
  • B
    colons $(::)$
  • C
    full stop$(..)$
  • D
    commas$(,,)$
Answer
Correct option: A.
semicolons $(;;)$
semicolons $(;;)$
View full question & answer
MCQ 661 Mark
All the statement written within the section of case are executed till………….. semicolons are encountered.
  • A
    four
  • B
    three               
  • two  
  • D
    one
Answer
Correct option: C.
two  
two
View full question & answer
MCQ 671 Mark
All the statement written within the section of case are executed till two …………. Are encountered.
  • semicolons
  • B
    colons
  • C
    fullstops
  • D
    commas
Answer
Correct option: A.
semicolons
semicolons
View full question & answer
MCQ 681 Mark
The if – then – elif-then-else-fi statement looks clumsy as number of comparison grows.
  • $1$
  • B
    $0$
  • C
    None of these
  • D
    Both $(A)$ and $(B)$
Answer
Correct option: A.
$1$
True
View full question & answer
MCQ 691 Mark
Which command is used to remove the process from memory ?
  • A
    Exit
  • B
    Stop
  • Kill
  • D
    None of these
Answer
Correct option: C.
Kill
Kill
View full question & answer
MCQ 701 Mark
In ps –ef, ……………. Identifies the commnd used to invoke the process.
  • A
    $PPID$
  • B
    $TTY$
  • C
    $STIME$
  • $CMD$
Answer
Correct option: D.
$CMD$
$CMD$
View full question & answer
MCQ 711 Mark
In ps-ef, …………… identifies the terminal that controls the current process.
  • A
    $PPID$
  • $TTY$
  • C
    $STIME$
  • D
    $TIME$
Answer
Correct option: B.
$TTY$
$TTY$
View full question & answer
MCQ 721 Mark
In ps –ef , $TIME$ is ……….
  • A
    the start time for the current process
  • identifies the amount of $CPU$ time accumulated by the current process
  • C
    identifies the parent process id, the process that created the current process.
  • D
    All of these
Answer
Correct option: B.
identifies the amount of $CPU$ time accumulated by the current process
identifies the amount of $CPU$ time accumulated by the current process
View full question & answer
MCQ 731 Mark
In ps – ef , $STIME$ is ………….
  • the start time for the current process
  • B
    identifies the amount of $CPU$ time accumulated by the current process
  • C
    identifies the parent process id, the process that created the current process.
  • D
    All of these
Answer
Correct option: A.
the start time for the current process
the start time for the current process
View full question & answer
MCQ 741 Mark
In ps – ef , $UID$ is ……………
  • A
    a unique numeric process identifier assigned to each process
  • name or number of the user who owns the process
  • C
    identifies the parent process id, the process that created the current process.
  • D
    none of these
Answer
Correct option: B.
name or number of the user who owns the process
name or number of the user who owns the process
View full question & answer
MCQ 751 Mark
In ps –ef, $PID$ is ……………
  • a unique numeric process identifier assigned to each process
  • B
    name or number of the user who owns the process
  • C
    identifies the parent process id, the process that created the current process.
  • D
    All of these
Answer
Correct option: A.
a unique numeric process identifier assigned to each process
a unique numeric process identifier assigned to each process
View full question & answer
MCQ 761 Mark
Which command is used to view the process of all the users ?
  • ps –ef
  • B
    ps – e
  • C
    ps – f
  • D
    ps –fe
Answer
Correct option: A.
ps –ef
ps –ef
View full question & answer
MCQ 771 Mark
In ps –ef ……………. Is aunique numeric process identifier assigned to each process.
  • A
    $PPID$
  • $PID$
  • C
    $UID$
  • D
    $TTY$
Answer
Correct option: B.
$PID$
$PID$
View full question & answer
MCQ 781 Mark
In ps – ef, …….. is the name or number of the user who owns the process.
  • A
    $PPID$
  • B
    $PID$
  • $UID$
  • D
    $TTY$
Answer
Correct option: C.
$UID$
$UID$
View full question & answer
MCQ 791 Mark
In ps  -f , $CMD$ is …………
  • A
    the start time for the current process
  • B
    identifies the amount of $CPU$ time accumulated by the current process
  • C
    identifies the parent process id, the process that created the current process.
  • identifies the command used to invoke the process
Answer
Correct option: D.
identifies the command used to invoke the process
identifies the command used to invoke the process
View full question & answer
MCQ 801 Mark
Process can be ……………..
  • A
    iewed
  • B
    stopped
  • running
  • D
    All of these
Answer
Correct option: C.
running
running
View full question & answer
MCQ 811 Mark
In Linux all programs are executed as …………
  • A
    Shell script
  • B
    variables
  • C
    loop 
  • process
Answer
Correct option: D.
process
process
View full question & answer
MCQ 821 Mark
Each process when started has a unique number associated with it known as …………
  • A
    shell script
  • B
    Command
  • PID
  • D
    Process
Answer
Correct option: C.
PID
PID
View full question & answer
MCQ 831 Mark
…………… means the commands are executed in the same order in which they appear in the script.
  • Sequential
  • B
    Non Linear
  • C
    Loop
  • D
    Condition Statement
Answer
Correct option: A.
Sequential
Sequential
View full question & answer
MCQ 841 Mark
......Are the best tools an administrator can get to easily monitor and control his systems even if he is at remote location. 
  • A
    Command
  • B
    expression
  • C
    environment variable
  • shell script
Answer
Correct option: D.
shell script
shell script
View full question & answer
MCQ 851 Mark
The ………….. are used for routine system administration. Tasks.
  • A
    Command
  • B
    expression
  • C
    environment variable
  • shell script
Answer
Correct option: D.
shell script
shell script
View full question & answer