Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1041: In C language, the conditional and comma operators are useful in filter expressions for ________.
  • A: complex evaluations
  • B: simple evaluations
  • C: ignoring exceptions
  • D: logging errors
View Answer
A

Q1042: The function Eval_Exception is called when ________.
  • A: the filter is evaluated
  • B: the except block starts
  • C: the finally block starts
  • D: the try block ends
View Answer
A

Q1043: The except block contains code to ________.
  • A: catch and handle exceptions
  • B: skip exceptions
  • C: resume execution
  • D: log exceptions
View Answer
A

Q1044: OSError is raised when ________.
  • A: a system operation causes a system related error
  • B: an arithmetic operation overflows
  • C: a weak reference is used
  • D: an internal interpreter error occurs
View Answer
A

Q1045: Which exception is raised when the result of an arithmetic operation is too large?
  • A: OSError
  • B: OverflowError
  • C: ReferenceError
  • D: RuntimeError
View Answer
B

Q1046: ReferenceError occurs when ________.
  • A: a weak reference proxy accesses a garbage collected object
  • B: a system operation causes error
  • C: the interpreter detects an internal error
  • D: the program calls sys.exit()
View Answer
A

Q1047: RuntimeError is raised when ________.
  • A: an error does not fall under any other category
  • B: a weak reference proxy is used
  • C: an arithmetic overflow happens
  • D: an internal interpreter error occurs
View Answer
A

Q1048: SystemError is raised by ________.
  • A: an internal error detected by the interpreter
  • B: an arithmetic operation overflow
  • C: sys.exit() function
  • D: a weak reference proxy
View Answer
A

Q1049: Which exception is raised by the sys.exit() function?
  • A: SystemExit
  • B: SystemError
  • C: RuntimeError
  • D: OSError
View Answer
A

Q1050: OverflowError occurs due to ________.
  • A: arithmetic operation result too large
  • B: garbage collected reference
  • C: internal interpreter error
  • D: system related error
View Answer
A

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now