Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1161: eCategory is a _______ variable.
  • A: global
  • B: value
  • C: struct
  • D: reference
View Answer
D

Q1162: The final block executes when the program is terminated _______.
  • A: normally
  • B: abnormally
  • C: manually
  • D: after output
View Answer
B

Q1163: The old floating-point exception mask is restored in the ______ block.
  • A: try
  • B: except
  • C: catch
  • D: finally
View Answer
D

Q1164: The value in eCategory is used to identify the _______ type.
  • A: error
  • B: data
  • C: exception
  • D: variable
View Answer
C

Q1165: If the masking operation returns zero, the exception is considered ________.
  • A: handled
  • B: ignored
  • C: user-defined
  • D: automatic
View Answer
C

Q1166: controlfp allows enabling/disabling which of the following?
  • A: exception logging
  • B: file operations
  • C: floating-point exceptions
  • D: program output
View Answer
C

Q1167: The purpose of `fpOld` is to store the _______ status of the floating-point mask.
  • A: current
  • B: old
  • C: error
  • D: new
View Answer
B

Q1168: The except clause calls a function that helps identify the ________.
  • A: variable causing error
  • B: exception category
  • C: error message
  • D: function name
View Answer
B

Q1169: The program structure includes all of the following except:
  • A: try, except, finally
  • B: try, catch, finally
  • C: try, switch, except
  • D: try, finally, loop
View Answer
B

Q1170: The program handles exceptions based on types entered by the ______.
  • A: system
  • B: user
  • C: compiler
  • D: IDE
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now