Linux Interview Questions and Answers – Signal Handling

1.

If a signal is received by a process, when will it be processed?

   A.) It is processed immediately
   B.) It is processed when process is switching to kernel mode
   C.) It is processsed in the next timeslice given to the process
   D.) None of these

Answer: Option 'B'

It is processed when process is switching to kernel mode

2.

Which signal is generated when we press control-C?

   A.) SIGINT
   B.) SIGTERM
   C.) SIGSEGV
   D.) SIGKILL

Answer: Option 'A'

SIGINT

3.

Which signal is generated when we press ctrl-Z?

   A.) SIGKILL
   B.) SIGSTOP
   C.) SIGABRT
   D.) SIGINT

Answer: Option 'B'

SIGSTOP

4.

Which signal is sent when the Child process terminates?

   A.) SIGINIT
   B.) SIGKILL
   C.) SIGSTOP
   D.) SIGCHLD

Answer: Option 'D'

SIGCHLD

5.

Which of the following signal cannot be handled or ignored?

   A.) SIGINT
   B.) SIGCHLD
   C.) SIGKILL
   D.) SIGALRM

Answer: Option 'C'

SIGKILL

6.

Another signal that cannot be caught is:

   A.) SIGPIPE
   B.) SIGHUP
   C.) SIGSTOP
   D.) SIGUSR1

Answer: Option 'C'

SIGSTOP

7.

When real interval timer expires which signal is generated?

   A.) SIGINT
   B.) SIGCHLD
   C.) SIGKILL
   D.) SIGALRM

Answer: Option 'D'

SIGALRM

8.

Signals are handled using which system call?

   A.) kill
   B.) signal
   C.) both
   D.) none

Answer: Option 'B'

signal

9.

Default action of SIGSEGV is

   A.) Terminate
   B.) Core dump + Terminate
   C.) Stop
   D.) Cont

Answer: Option 'B'

Core dump + Terminate

10.

The kill system call is used to

   A.) Send shutdown messages to all by superuser
   B.) Send a signal to a process
   C.) Kill processes
   D.) Stop the processes

Answer: Option 'B'

Send a signal to a process


Linux Interview Questions and Answers – Signal Handling Download Pdf

Recent Posts