Explore topic-wise MCQs in Unix.

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

1.

Which system call is used by the parent process to wait for the child process to complete?

A. wait
B. exec
C. fork
D. exit
Answer» C. fork
2.

When fork() is invoked, the child process created gets a new PID.

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

Which of the following system call is used for creating a new process?

A. read
B. fork
C. wait
D. new
Answer» C. wait
4.

A system call is a programmatic way in which the program requests for the service from the kernel of an operating system.

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

There are ___ distinct phases of a process.

A. 2
B. 5
C. 4
D. 3
Answer» E.
6.

What will the output of the following command?

A. processes running on terminal named console
B. undefined output
C. erroneous
D. processes running on the current terminalView Answer
Answer» B. undefined output
7.

The -a option when used with ps command lists processes of all users but doesn’t display the system processes.

A. True
B. False
Answer» B. False
8.

A_SYSTEM_CALL_IS_A_PROGRAMMATIC_WAY_IN_WHICH_THE_PROGRAM_REQUESTS_FOR_THE_SERVICE_FROM_THE_KERNEL_OF_AN_OPERATING_SYSTEM.?$

A. True
B. False
Answer» C.
9.

When fork() is invoked, the child process created gets a new PID.$

A. True
B. False
Answer» C.
10.

Which of the following system call is used for creating a new process?$

A. read
B. fork
C. wait
D. new
Answer» B. fork
11.

Which system call is used to run a new program?

A. fork
B. wait
C. exec
D. exit
Answer» C. exec
12.

What is the value returned by fork system call, when the creation of child process is unsuccessful?

A. positive integer
B. negative integer
C. zero
D. fractional value
Answer» D. fractional value
13.

There are ___ distinct phases of a process?

A. 2
B. 5
C. 4
D. 3
Answer» B. 5
14.

Which option is used with ps command to list system processes?

A. -A
B. -a
C. -e
D. –A and -e
Answer» E.
15.

The -a option when used with ps command lists processes of all users but doesn’t display the system processes.$

A. True
B. False
Answer» B. False
16.

Which option is used by the system administrator for displaying processes of a user?

A. -f
B. -u
C. -a
D. -e
Answer» C. -a
17.

Which option is used by ps command to get a detailed listing of process attributes?

A. -u
B. -f
C. -l
D. -x
Answer» C. -l
18.

Which of the following attribute is not shown by ps command?

A. PID
B. PPID
C. tty
D. size
Answer» E.
19.

Which command shows some attributes of a process?

A. pid
B. $$
C. ps
D. HOME
Answer» D. HOME