System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1051: SystemExit exception is used to ________.
- A: exit the program
- B: handle system errors
- C: access garbage collected references
- D: handle runtime errors
View Answer
A
Q1052: If a weak reference proxy is used to access a collected referent, ________ exception is raised.
- A: ReferenceError
- B: SystemError
- C: RuntimeError
- D: OSError
View Answer
A
Q1053: RuntimeError catches errors that ________.
- A: do not fit in other exception categories
- B: are related to system operations
- C: occur due to large arithmetic results
- D: are caused by sys.exit() function
View Answer
A
Q1054: SystemError is related to ________.
- A: internal interpreter errors
- B: system related errors
- C: arithmetic overflow
- D: weak reference access
View Answer
A
Q1055: sys.exit() function raises ________ exception.
- A: SystemExit
- B: RuntimeError
- C: OSError
- D: ReferenceError
View Answer
A
Q1056: OSError is not raised when ________.
- A: an arithmetic overflow occurs
- B: a system related error happens
- C: an internal error is detected
- D: a weak reference is accessed
View Answer
A
Q1057: The OverflowError exception is specifically related to ________.
- A: arithmetic calculations
- B: object referencing
- C: system exit
- D: internal interpreter errors
View Answer
A
Q1058: ReferenceError is associated with ________.
- A: garbage collected referent weak proxy
- B: internal interpreter errors
- C: arithmetic overflow
- D: system exit
View Answer
A
Q1059: SystemExit exception can be caught to prevent ________.
- A: program termination
- B: arithmetic overflow
- C: system errors
- D: weak reference errors
View Answer
A
Q1060: If you want to handle an internal interpreter error, you should catch ________ exception.
- A: SystemError
- B: ReferenceError
- C: RuntimeError
- D: OSError
View Answer
A