Explore topic-wise MCQs in Technical MCQs.

This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Technical MCQs knowledge and support exam preparation. Choose a topic below to get started.

1.

What is the use of -e file test operator in korn shell?

A. Checks if file is a directory
B. Checks if file is an ordinary file as opposed to a directory or special file
C. Checks if file exists
D. Checks if file is executable
E.
Answer» D. Checks if file is executable
2.

What is the use of -z string operator in bourne shell?

A. Checks if the value of two operands are equal or not
B. Checks if the given string operand size is zero
C. Checks if str is not the empty string
D. Checks if the given string operand size is non-zero
Answer» C. Checks if str is not the empty string
3.

What is the used of -x file test operator?

A. Checks if file is executable
B. Checks if file has size greater than 0
C. Checks if file exists
D. Checks if file has its Set User ID (SUID) bit set
Answer» B. Checks if file has size greater than 0
4.

Which File test operator is used to checks if file has its sticky bit set?

A. -g
B. -k
C. -p
D. -a
Answer» C. -p
5.

What is the use of str operator in bourne shell?

A. Checks if str is not the empty string
B. Checks if the given string operand size is non-zero
C. Checks if the given string operand size is zero
D. Checks if the value of two operands are equal or not
Answer» B. Checks if the given string operand size is non-zero
6.

Which of the boolean operator is supported in bourne shell?

A. and
B. or
C. not
D. All of the above
Answer» E.
7.

In relational operator, which keyword is used to represent greater than or equal?

A. -eq
B. -gte
C. -ge
D. -gt
Answer» D. -gt
8.

The complete expr and awk expression should be enclosed between ___________.

A. ()
B. " "
C. ' '
D. < >
Answer» D. < >
9.

Which external program used by bourne shell to perform simple arithmetic operations?

A. awk
B. expr
C. sum
D. Both A and B
Answer» E.
10.

Which of the following operator is not supported in Bourne shell?

A. Arithmetic Operators
B. Boolean Operators
C. Character operators
D. File Test Operators
Answer» D. File Test Operators