Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Chapter: 58
Q1161:
eCategory is a _______ variable.
A. global
B. value
C. struct
D. reference
Correct Answer: D
Chapter: 58
Q1162:
The final block executes when the program is terminated _______.
A. normally
B. abnormally
C. manually
D. after output
Correct Answer: B
Chapter: 58
Q1163:
The old floating-point exception mask is restored in the ______ block.
A. try
B. except
C. catch
D. finally
Correct Answer: D
Chapter: 58
Q1164:
The value in eCategory is used to identify the _______ type.
A. error
B. data
C. exception
D. variable
Correct Answer: C
Chapter: 58
Q1165:
If the masking operation returns zero, the exception is considered ________.
A. handled
B. ignored
C. user-defined
D. automatic
Correct Answer: C
Chapter: 58
Q1166:
controlfp allows enabling/disabling which of the following?
A. exception logging
B. file operations
C. floating-point exceptions
D. program output
Correct Answer: C
Chapter: 58
Q1167:
The purpose of `fpOld` is to store the _______ status of the floating-point mask.
A. current
B. old
C. error
D. new
Correct Answer: B
Chapter: 58
Q1168:
The except clause calls a function that helps identify the ________.
A. variable causing error
B. exception category
C. error message
D. function name
Correct Answer: B
Chapter: 58
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
Correct Answer: B
Chapter: 58
Q1170:
The program handles exceptions based on types entered by the ______.
A. system
B. user
C. compiler
D. IDE
Correct Answer: B
Chapter: 58
Q1171:
Floating-point exceptions are handled using which control function?
A. managefp
B. controlfp
C. fpEnable
D. fpCatch
Correct Answer: B
Chapter: 58
Q1172:
The handler function deals differently with each exception using _______.
A. a loop
B. statement filter
C. filter function
D. error count
Correct Answer: C
Chapter: 58
Q1173:
The exception handling in the program is implemented using a:
A. class
B. macro
C. control structure
D. filter function
Correct Answer: D
Chapter: 58
Q1174:
The switch-case structure allows selection based on _______ values.
A. function
B. case
C. variable
D. exception
Correct Answer: D
Chapter: 58
Q1175:
The final block executes regardless of how the program is _______.
A. started
B. saved
C. run
D. terminated
Correct Answer: D
Chapter: 58
Q1176:
eCategory helps in distinguishing between types of exceptions using _______.
A. reference values
B. control blocks
C. filtering masks
D. masked bits
Correct Answer: D
Chapter: 58
Q1177:
The try block is used to _______.
A. handle exceptions
B. define handlers
C. raise exceptions
D. monitor exceptions
Correct Answer: D
Chapter: 58
Q1178:
The program uses a switch structure to handle multiple _______.
A. variables
B. inputs
C. exceptions
D. conditions
Correct Answer: C
Chapter: 58
Q1179:
Exception information is obtained using:
A. GetExceptionData()
B. GetInfo()
C. GetExceptionInformation()
D. GetExceptionType()
Correct Answer: C
Chapter: 58
Q1180:
The final block is mainly used to restore _______ values.
A. initial
B. temporary
C. original
D. floating-point mask
Correct Answer: D

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now