System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1201: The CTRL_BREAK_EVENT is triggered by which key sequence?
- A: Ctrl+Alt
- B: Alt+Break
- C: Ctrl+Break
- D: Shift+Ctrl
View Answer
C
Q1202: HandlerRoutine is triggered by a _______ exception.
- A: network
- B: console
- C: thread
- D: runtime
View Answer
B
Q1203: Signal applies to the ______, while exceptions apply to a single thread.
- A: main thread
- B: process
- C: routine
- D: object
View Answer
B
Q1204: Signal handlers are useful for performing ______ tasks.
- A: debug
- B: interrupt
- C: cleanup
- D: compilation
View Answer
C
Q1205: Handlers are invoked in which order?
- A: Alphabetical
- B: Stack order
- C: Reverse setup order
- D: Random order
View Answer
C
Q1206: The last handler in the chain is always the _______.
- A: first handler
- B: system handler
- C: main program
- D: handler thread
View Answer
B
Q1207: A TRUE return value from a signal handler indicates it has ______.
- A: failed
- B: ignored
- C: completed the task
- D: exited
View Answer
C
Q1208: The API SetConsoleCtrlHandler is part of which type of programming?
- A: web
- B: system console
- C: web server
- D: event-driven
View Answer
B
Q1209: The control handler mechanism helps to manage ______ console events.
- A: keyboard-only
- B: user-defined
- C: system-related
- D: loop-based
View Answer
C
Q1210: To ignore Ctrl-C, SetConsoleCtrlHandler must be called with ______.
- A: NULL, FALSE
- B: NULL, TRUE
- C: TRUE, NULL
- D: FALSE, TRUE
View Answer
B