Quiz on C++ Signal Handling



1. What is the purpose of signal handling in C++?
2. Which header file is required for signal handling in C++?
3. What function is used to set a signal handler in C++?
4. Which signal is generated when a program is terminated?
5. What is the default action for an unhandled signal?

Advertisements