Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1221: Console signal handling is especially important for ______ applications.
  • A: background
  • B: console-based
  • C: web-based
  • D: GUI
View Answer
C

Q1222: SetConsoleCtrlHandler allows developers to handle or ______ console signals.
  • A: print
  • B: redirect
  • C: process
  • D: ignore
View Answer
D

Q1223: The handler function executes as part of a new ______ within the process.
  • A: block
  • B: thread
  • C: call
  • D: stack
View Answer
B

Q1224: Signal handler chain follows which execution flow?
  • A: random
  • B: order of setup
  • C: reverse of setup
  • D: order of call
View Answer
C

Q1225: If the handler returns TRUE, further handlers are ______.
  • A: skipped
  • B: continued
  • C: queued
  • D: reversed
View Answer
A

Q1226: SetConsoleCtrlHandler is a part of which API set?
  • A: POSIX
  • B: Java
  • C: Win32
  • D: .NET
View Answer
C

Q1227: What is the purpose of the SetConsoleCtrlHandler function?
  • A: To create GUI
  • B: To handle keyboard events
  • C: To handle console control events
  • D: To run the main function
View Answer
C

Q1228: Which value must be passed to SetConsoleCtrlHandler to add a handler?
  • A: Handler, FALSE
  • B: NULL, FALSE
  • C: Handler, TRUE
  • D: NULL, TRUE
View Answer
C

Q1229: What is the return type of a HandlerRoutine function?
  • A: VOID
  • B: INT
  • C: BOOL
  • D: CHAR
View Answer
C

Q1230: The parameter of the HandlerRoutine function is of which data type?
  • A: DWORD
  • B: INT
  • C: BOOL
  • D: CHAR
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now