Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1031: If Eval_Exception never returns EXCEPTION_EXECUTE_HANDLER (1), then the except block will ________.
  • A: always execute
  • B: never execute
  • C: only execute on overflow
  • D: execute after filter
View Answer
B

Q1032: The conditional operator in C can be used in filter expressions to ________.
  • A: perform conditional evaluation
  • B: perform bitwise operations
  • C: execute multiple statements
  • D: return a value
View Answer
A

Q1033: The comma operator in C evaluates expressions and returns ________.
  • A: the last expression
  • B: the first expression
  • C: the sum of expressions
  • D: nothing
View Answer
A

Q1034: The filter expression is evaluated ________ the except block executes.
  • A: before
  • B: after
  • C: during
  • D: never
View Answer
A

Q1035: Returning EXCEPTION_EXECUTE_HANDLER (1) in a filter causes control to be passed to ________.
  • A: the except block
  • B: the finally block
  • C: the try block
  • D: the calling function
View Answer
A

Q1036: In the example, which exception types trigger ResetVars function?
  • A: Integer overflow
  • B: Floating-point overflow
  • C: Null pointer dereference
  • D: Array index out of bounds
View Answer
B

Q1037: The except block in the example is ________.
  • A: empty
  • B: handling exceptions
  • C: logging errors
  • D: resetting variables
View Answer
A

Q1038: Which of these is NOT a typical return value of a filter expression?
  • A: EXCEPTION_CONTINUE_EXECUTION
  • B: EXCEPTION_EXECUTE_HANDLER
  • C: EXCEPTION_CONTINUE_SEARCH
  • D: EXCEPTION_RETRY
View Answer
D

Q1039: The EXCEPTION_CONTINUE_SEARCH return value means the system should ________.
  • A: search for another handler
  • B: stop execution
  • C: continue execution
  • D: restart handler
View Answer
A

Q1040: What does the filter expression do in Windows SEH?
  • A: Handles exceptions
  • B: Filters exceptions
  • C: Resumes execution
  • D: Terminates program
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now