System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1271: VEH functions are similar to which of the following?
- A: Console control handlers
- B: Thread procedures
- C: Window procedures
- D: SEH filters
View Answer
A
Q1272: VEH should not include blocking functions like _______.
- A: Sleep()
- B: GetTickCount()
- C: QueryPerformanceCounter()
- D: Beep()
View Answer
A
Q1273: Which return value of a VEH continues execution without stack unwinding?
- A: EXCEPTION_ABORT
- B: EXCEPTION_CONTINUE_EXECUTION
- C: EXCEPTION_STACK_RESET
- D: EXCEPTION_SKIP_HANDLER
View Answer
B
Q1274: If a VEH returns EXCEPTION_CONTINUE_SEARCH, what happens next?
- A: Process is killed
- B: Execution resumes
- C: The next VEH is called
- D: Console is restarted
View Answer
C
Q1275: AddVectoredExceptionHandler() returns ______ if the registration fails.
- A: NULL
- B: HANDLE
- C: 1
- D: EXCEPTION_POINTER
View Answer
A
Q1276: ________ determines the execution order of a VEH.
- A: Thread ID
- B: Exception code
- C: FirstHandler parameter
- D: Stack pointer
View Answer
C
Q1277: The structure used in the VEH function parameter is called _______.
- A: EXCEPTION_RECORD
- B: EXCEPTION_POINTERS
- C: THREAD_CONTEXT
- D: EXCEPTION_FRAME
View Answer
B
Q1278: What kind of operations should VEH avoid?
- A: Non-blocking
- B: Pointer dereferencing
- C: Floating point
- D: Blocking
View Answer
D
Q1279: Which function provides the EXCEPTION_POINTERS structure?
- A: GetContextInformation()
- B: GetExceptionInformation()
- C: GetSystemException()
- D: GetFaultInfo()
View Answer
B
Q1280: The order of VEH handlers with FirstHandler = 0 is determined by the order of ______.
- A: their return value
- B: their registration
- C: their exception type
- D: their size
View Answer
B