Operating System (3140702) MCQs

MCQs of Unix/Linux Operating System

Showing 101 to 110 out of 115 Questions
101.
Every if is closed with a corresponding ____
(a) else
(b) fi
(c) if
(d) else if
Answer:

Option (b)

102.
To check more than two conditions. ___ is used with if-else statements.
(a) while
(b) for
(c) elif
(d) for
Answer:

Option (c)

103.
Which of the following operators is used with test for comparison of numeric values?
(a) -eq
(b) -ne
(c) -gg
(d) –eq and -ne
Answer:

Option (d)

104.
___ implies greater than and ____ implies less than.
(a) gt, le
(b) gt, lt
(c) ge,le
(d) ge,lt
Answer:

Option (b)

105.
Which one of the following option is used for AND operation in test command?
(a) -o
(b) -a
(c) -e
(d) -an
Answer:

Option (b)

106.
Which one of the following option is used for OR operation in test command?
(a) -o
(b) -a
(c) -e
(d) -an
Answer:

Option (a)

107.
Which command is used for computation and string handling?
(a) expr
(b) case
(c) if
(d) read
Answer:

Option (a)

108.
Which of the following keywords are used in while loop?
(a) do
(b) done
(c) then
(d) do and done
Answer:

Option (d)

109.
____ statement matches an expression for more than one alternative.
(a) for
(b) while
(c) elif
(d) case
Answer:

Option (d)

110.
Which one of the following is used for looping with a list?
(a) while
(b) until
(c) case
(d) for
Answer:

Option (d)

Showing 101 to 110 out of 115 Questions