Signal Handling Question: Which signal is generated when we press control-C? a) SIGINT b) SIGTERM c) SIGKILL d) SIGSEGV Linux Signal Handling Interview QuestionAnswer: a) SIGINT Previous QuestionNext QuestionIf 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 processWhat is the output of the below code? void sig_handler ( int signum) { printf("Handled the signaln"); } int main() { int pid; signal (SIGKILL, sig_handler); pid = fork(); if (pid==0) { kill(getppid(), SIGKILL); exit(0); } else { sleep(20); } return 0; } a) Error child cannot send a SIGKILL signal to parent. b) Parent goes to the signal handler, prints handled the signal and goes back to sleep c) Parent goes to the signal handler, prints handled the signal and exits d) Parent exits without going to the signal handler