Explore topic-wise MCQs in Unix.

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

1.

____ command is the appropriate way to interrupt a program.

A. kill
B. SIGKILL
C. INT
D. trap
Answer» E.
2.

We can use the here document with interactive programs also.

A. True
B. False
Answer» B. False
3.

Which of the following command doesn’t accept a filename as an argument?

A. cut
B. ls
C. paste
D. mailx
Answer» E.
4.

Any command using standard input can take the input from here document.

A. True
B. False
Answer» B. False
5.

The ____ allows us to read data from the same file containing the script.

A. >>
B. <<
C. !!
D.
Answer» C. !!
6.

Which symbol is used with the set command for command substitution?

A.
B.
C. ??
D. _
Answer» C. ??
7.

Which one of the following is an internal command?

A. cut
B. expr
C. set
D. Is
Answer» D. Is
8.

____ statement is used for shifting arguments left.

A. set
B. shift
C. cut
D. paste
Answer» C. cut
9.

Which command is used by the shell for manipulating positional parameters?

A. set
B. cut
C. case
D. paste
Answer» B. cut
10.

Which command is used for changing filename extensions?

A. chown
B. rename
C. basename
D. rm
Answer» D. rm
11.

Which of the following loop statements uses do and done keyword?

A. for
B. while
C. case
D. for and while
Answer» E.
12.

Which one of the following is used for looping with a list?

A. while
B. until
C. case
D. for
Answer» E.
13.

until loop operates with a reverse logic as used in while loop.

A. True
B. False
Answer» B. False
14.

Which of the following keywords are used in while loop?

A. do
B. done
C. then
D. do and done
Answer» E.
15.

Which of the following commands let us perform a set of instructions repeatedly?

A. for
B. while
C. until
D. for, while, until
Answer» E.