System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1151: The `except` clause is used to handle exceptions based on a _______.
- A: return code
- B: value passed by reference
- C: filter function
- D: catch block
View Answer
C
Q1152: The user-defined exceptions are generated based on the result of a ______ operation.
- A: logical
- B: masking
- C: multiplication
- D: division
View Answer
B
Q1153: eCategory variable receives its value through which type of reference?
- A: pointer
- B: struct
- C: reference object
- D: value copy
View Answer
C
Q1154: controlfp function is specifically used for handling what type of exceptions?
- A: File
- B: Memory
- C: Floating-point
- D: Logic
View Answer
C
Q1155: The final clause is used to handle _______ termination of the program.
- A: normal
- B: unexpected
- C: graceful
- D: manual
View Answer
B
Q1156: controlfp is part of which category of exception handling functions?
- A: loop control
- B: variable mask
- C: IEEE floating-point
- D: control flags
View Answer
D
Q1157: User-defined exceptions are identified if the masking operation results in ______.
- A: non-zero
- B: negative
- C: zero
- D: infinity
View Answer
C
Q1158: Exception information in the handler is retrieved using ______ function.
- A: GetExceptionData()
- B: GetExceptionDetails()
- C: GetExceptionInformation()
- D: GetHandlerData()
View Answer
C
Q1159: The switch statement in the try block is used to _______.
- A: handle exceptions
- B: call functions
- C: evaluate conditions
- D: generate specific exceptions
View Answer
D
Q1160: An exception mask is used to ______ floating-point exceptions.
- A: disable
- B: restore
- C: detect
- D: generate
View Answer
D