Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1251: Signal handlers can return TRUE to indicate ______.
  • A: an exception
  • B: termination
  • C: completion of the task
  • D: the signal was ignored
View Answer
D

Q1252: The main program prints a message before ______.
  • A: initialization
  • B: adding the handler
  • C: terminating the loop
  • D: resetting variables
View Answer
C

Q1253: _tprintf is used to ______.
  • A: beep the system
  • B: exit the thread
  • C: display formatted output
  • D: restart console
View Answer
C

Q1254: Handlers handle console signals such as Ctrl-C and ______.
  • A: Ctrl-D
  • B: Ctrl-Z
  • C: Ctrl-Break
  • D: Ctrl-Alt-Del
View Answer
C

Q1255: If the handler manages the event properly, it returns ______.
  • A: NULL
  • B: 1
  • C: 0
  • D:
View Answer
B

Q1256: CTRL_SHUTDOWN_EVENT indicates that the user is trying to ______.
  • A: log off
  • B: restart
  • C: log in
  • D: shut down
View Answer
D

Q1257: The handler modifies exitFlag in order to ______.
  • A: exit the program
  • B: continue the loop
  • C: start the handler
  • D: ignore the signal
View Answer
A

Q1258: Beep(1000, 250) plays a sound at 1000 Hz for ______.
  • A: 250 seconds
  • B: 250 ms
  • C: 1000 seconds
  • D: 1 second
View Answer
B

Q1259: The console handler is written using the keyword ______.
  • A: main
  • B: HANDLE
  • C: BOOL WINAPI
  • D: static BOOL WINAPI
View Answer
D

Q1260: Sleep(4750) in the main loop allows for ______.
  • A: error detection
  • B: beeping
  • C: delay in beeping
  • D: loading libraries
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now