System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1101: An exception can occur ________.
- A: only in input/output operations
- B: nearly anywhere
- C: only in arithmetic operations
- D: only during compilation
View Answer
B
Q1102: If a file read/write operation fails, programmers include an explicit test for ________.
- A: error
- B: exception
- C: overflow
- D: underflow
View Answer
A
Q1103: Try-catch blocks are mainly used to handle ________.
- A: errors
- B: exceptions
- C: logical errors
- D: syntax errors
View Answer
B
Q1104: Errors are usually ________ by the runtime environment.
- A: raised
- B: ignored
- C: fixed
- D: logged
View Answer
A
Q1105: Exceptions are typically caused by ________.
- A: program logic
- B: hardware faults
- C: network failures
- D: operating system
View Answer
C
Q1106: Programmers cannot usually recover from ________.
- A: errors
- B: exceptions
- C: warnings
- D: logs
View Answer
A
Q1107: Errors are usually ________ by the environment in which the application runs.
- A: detected
- B: raised
- C: reported
- D: ignored
View Answer
B
Q1108: Exceptions differ from errors in that they are caused by ________.
- A: code outside the application
- B: code within the application
- C: code in the operating system
- D: code in the compiler
View Answer
B
Q1109: A fatal error typically ________ the entire process.
- A: pauses
- B: terminates
- C: continues
- D: ignores
View Answer
B
Q1110: ReportError function is used by the programmer to ________.
- A: handle exceptions
- B: report errors
- C: prevent errors
- D: debug code
View Answer
B