adplus-dvertising
frame-decoration

Question

What is the purpose of structured exception handling in Windows?

a.

To generate software exceptions in C++ programs

b.

To provide mechanisms for distributing exceptions to applications in an organized manner

c.

To terminate a program when an exception occurs

d.

To correct problems and make the program continue from the same code position

Posted under Reverse Engineering

Answer: (b).To provide mechanisms for distributing exceptions to applications in an organized manner Explanation:Structured exception handling means that the operating system provides mechanisms for “distributing” exceptions to applications in an organized manner. Each thread is assigned an exception-handler list, which is a list of routines that can deal with exceptions when they occur. When an exception occurs, the operating system calls each of the registered handlers and the handlers can decide whether they would like to handle the exception or whether the system should keep on looking.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the purpose of structured exception handling in Windows?

Similar Questions

Discover Related MCQs

Q. What is the thread information block (TIB) data structure?

Q. How is the current thread's TIB found in runtime on IA-32 processors?

Q. What is the ExceptionList member in the TIB data structure?

Q. What happens when an invalid memory address is accessed in Windows?

Q. What is KiUserExceptionDispatcher in Windows?

Q. What is RtlDispatchException in Windows?

Q. What is the purpose of RtlDispatchException in Windows?

Q. Where is the exception handler list stored?

Q. What is the FS segment register used for in Windows?

Q. What is the ExceptionList member?

Q. How does Windows handle user-mode page faults that aren't resolved by the memory manager?

Q. What is the purpose of the _EXCEPTION_REGISTRATION_RECORD data structure?

Q. What is the importance of understanding the executable file format?

Q. Why is having a basic understanding of how the system communicates with the outside world helpful?

Q. What is the importance of understanding the basic APIs offered by the operating system?

Q. What is virtual memory?

Q. What is a handle in Windows?

Q. What is the Win32 API?

Q. What is the native API?

Q. Why is it not possible to directly call a kernel function from user mode?