Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1141: What is the main purpose of a filter function in exception handling?
  • A: To handle syntax errors
  • B: To identify and classify exception types
  • C: To optimize loops
  • D: To control memory usage
View Answer
B

Q1142: The filter function can treat each _______ differently based on its type.
  • A: variable
  • B: exception
  • C: module
  • D: file
View Answer
B

Q1143: Which function is used to enable floating-point exceptions in the program?
  • A: getfp
  • B: controlfp
  • C: fpControl
  • D: enableFloat
View Answer
B

Q1144: What does the variable `fpOld` store in the given program?
  • A: Exception category
  • B: Final result
  • C: Floating-point exception status
  • D: Filename before crash
View Answer
C

Q1145: Which block uses a switch statement to determine exception generation?
  • A: finally
  • B: catch
  • C: block
  • D: try
View Answer
B

Q1146: What is the role of the `GetExceptionInformation()` function in the program?
  • A: Save program output
  • B: Provide exception details
  • C: Handle final operations
  • D: Manage input
View Answer
B

Q1147: What determines the type of exception being thrown in the given program?
  • A: fpOld
  • B: fpMask
  • C: eCategory
  • D: fpControl
View Answer
C

Q1148: In case of an abnormal termination, where is the floating-point mask restored?
  • A: catch block
  • B: except block
  • C: try block
  • D: finally block
View Answer
D

Q1149: The filter function is invoked in which clause?
  • A: try
  • B: except
  • C: finally
  • D: catch
View Answer
B

Q1150: Which variable in the program is used as a reference to the exception type?
  • A: fpOld
  • B: fpMask
  • C: eCategory
  • D: eType
View Answer
C

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now