Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1111: One limitation of using ReportError is that it ________.
  • A: only terminates the current thread
  • B: terminates the entire process
  • C: restarts the program
  • D: allows silent error handling
View Answer
B

Q1112: Continuing program execution after an error ________.
  • A: may be required by the programmer
  • B: is never possible
  • C: is always dangerous
  • D: is automatically handled
View Answer
A

Q1113: Synchronization resources like events or semaphores ________ when ReportError causes process termination.
  • A: are released
  • B: remain held
  • C: are ignored
  • D: are reset
View Answer
B

Q1114: Programmers might prefer to continue program execution instead of ________ when an error occurs.
  • A: terminating the process
  • B: restarting the system
  • C: logging the error
  • D: debugging the code
View Answer
A

Q1115: The ReportError function ________ the error and lets Windows decide what to do.
  • A: logs
  • B: reports
  • C: ignores
  • D: corrects
View Answer
B

Q1116: A termination handler executes when a thread leaves a block due to ________.
  • A: normal flow only
  • B: an exception only
  • C: both normal flow and exception
  • D: compiler optimization
View Answer
C

Q1117: Termination handlers provide similar functionality as ________.
  • A: exception handlers
  • B: error handlers
  • C: logging handlers
  • D: debuggers
View Answer
A

Q1118: The two main elements of a termination handler are a guarded body of code and a ________.
  • A: termination block
  • B: catch block
  • C: finally block
  • D: throw block
View Answer
B

Q1119: In Microsoft C/C++ Optimizing Compiler, termination handlers are implemented using ________.
  • A: try and catch
  • B: try and finally
  • C: finally and catch
  • D: try and throw
View Answer
B

Q1120: The guarded body of code in a termination handler can be a block, nested blocks, or an entire ________.
  • A: procedure or function
  • B: class or object
  • C: variable or constant
  • D: loop or conditional
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now