Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1211: The type of signal handled by HandlerRoutine is identified by ______.
  • A: signalType
  • B: dwCtrlType
  • C: eventMask
  • D: controlFlag
View Answer
B

Q1212: The signal type passed to HandlerRoutine is of type ______.
  • A: BOOL
  • B: DWORD
  • C: INT
  • D: CHAR
View Answer
B

Q1213: The function prototype for a console control handler starts with which keyword?
  • A: INT
  • B: BOOL
  • C: VOID
  • D: CHAR
View Answer
B

Q1214: dwCtrlType helps identify the ______ that triggered the handler.
  • A: API
  • B: call
  • C: thread
  • D: signal
View Answer
D

Q1215: The order of handler execution is based on the order in which they are ______.
  • A: called
  • B: set up
  • C: declared
  • D: compiled
View Answer
B

Q1216: HandlerRoutine is capable of handling multiple ______ types.
  • A: thread
  • B: event
  • C: signal
  • D: process
View Answer
C

Q1217: The second parameter in SetConsoleCtrlHandler defines whether to ______ the handler.
  • A: remove
  • B: invoke
  • C: add
  • D: disable
View Answer
C

Q1218: The last fallback in the signal handler chain is the ______ handler.
  • A: process
  • B: default
  • C: system
  • D: thread
View Answer
C

Q1219: The CTRL_SHUTDOWN_EVENT is triggered when the user attempts to ______.
  • A: log off
  • B: close console
  • C: shut down the system
  • D: switch user
View Answer
C

Q1220: Console control handlers are useful when the application needs to ______ before shutdown.
  • A: execute calculations
  • B: do nothing
  • C: perform cleanup
  • D: exit loop
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now