Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1261: The control signal sent when logging off is ______.
  • A: CTRL_SHUTDOWN_EVENT
  • B: CTRL_LOGOFF_EVENT
  • C: CTRL_C_EVENT
  • D: CTRL_CLOSE_EVENT
View Answer
B

Q1262: The handler uses a switch block to check ______.
  • A: exitFlag
  • B: handler result
  • C: cntrlEvent
  • D: loop iterations
View Answer
C

Q1263: What does VEH stand for in Windows programming?
  • A: Virtual Error Handler
  • B: Vector Extension Header
  • C: Vectored Exception Handler
  • D: Visual Exception Handler
View Answer
C

Q1264: What is the primary function of a Vectored Exception Handler?
  • A: Handle GUI events
  • B: Manage threads
  • C: Handle exceptions before SEH
  • D: Terminate processes
View Answer
C

Q1265: Which API is used to register a vectored exception handler?
  • A: AddExceptionHandler()
  • B: AddVectoredExceptionHandler()
  • C: RegisterExceptionHandler()
  • D: RegisterVEH()
View Answer
B

Q1266: In AddVectoredExceptionHandler(), what does a non-zero value of FirstHandler mean?
  • A: It disables the handler
  • B: It places the handler at the end
  • C: It places the handler first
  • D: It removes the handler
View Answer
C

Q1267: What will happen if there are multiple VEH handlers with FirstHandler set to zero?
  • A: They are ignored
  • B: They are executed in reverse order
  • C: They are executed in order added
  • D: Only the last one executes
View Answer
C

Q1268: Which function is used to remove a vectored exception handler?
  • A: DeleteExceptionHandler()
  • B: RemoveHandler()
  • C: RemoveVectoredExceptionHandler()
  • D: ClearExceptionHandler()
View Answer
C

Q1269: What type is the return value of a vectored exception handler function?
  • A: BOOL
  • B: VOID
  • C: INT
  • D: LONG
View Answer
D

Q1270: The parameter passed to a VEH function is a pointer to _______.
  • A: EXCEPTION_POINTERS
  • B: THREAD_INFORMATION
  • C: STACK_POINTER
  • D: CONTEXT_BLOCK
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now