System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1181: controlfp modifies the behavior of _______ exceptions.
- A: logical
- B: syntax
- C: memory
- D: floating-point
View Answer
D
Q1182: The handler uses a filter function to treat each exception _______.
- A: similarly
- B: differently
- C: rarely
- D: once
View Answer
B
Q1183: eCategory plays a crucial role in identifying _______ of exception.
- A: severity
- B: source
- C: type
- D: message
View Answer
C
Q1184: The output of a masking operation is checked for _______ to determine an exception.
- A: 1
- B: 1
- C: zero
- D: undefined
View Answer
C
Q1185: eCategory is passed as a _______ to the handler.
- A: value
- B: pointer
- C: struct
- D: reference
View Answer
D
Q1186: Each exception type can be handled differently by using:
- A: catch chains
- B: filter function
- C: switch selector
- D: type guards
View Answer
B
Q1187: Console control handlers are similar to which mechanism?
- A: Event listeners
- B: Exception handlers
- C: Interrupt routines
- D: Signal processors
View Answer
B
Q1188: Which function is used to add a console control handler?
- A: SetHandlerRoutine()
- B: AddConsoleHandler()
- C: SetConsoleCtrlHandler()
- D: HandleConsoleEvent()
View Answer
C
Q1189: SetConsoleCtrlHandler() takes how many parameters?
- A: One
- B: Two
- C: Three
- D: Four
View Answer
B
Q1190: The first parameter of SetConsoleCtrlHandler() is the _______.
- A: DWORD type signal
- B: Handler function address
- C: Boolean type value
- D: String message
View Answer
A