Questions · Page 1 of 2

MCQ . (1 Marks)

🎯

Test yourself on this topic

50 questions · timed · auto-graded

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 . (1 Marks) - COMPUTER STD 11 Commerce Questions - Vidyadip