Skip to main content

System Programming MCQs with Answers

Practice important System Programming MCQs with answers and explanations.

Multiple Choice Questions

Q1091: Which IEEE 754 floating-point exception would be triggered by calculating sqrt(-1)?
  • A: Overflow
  • B: Underflow
  • C: Invalid operation
  • D: Inexact calculation
View Answer
C

Q1092: Inexact calculation exception is raised when the result of an operation is ________.
  • A: not perfectly representable
  • B: exactly zero
  • C: overflowed
  • D: underflowed
View Answer
A

Q1093: If an operation results in a number smaller than the smallest representable positive number but not zero, it causes ________.
  • A: Overflow
  • B: Underflow
  • C: Invalid operation
  • D: Inexact calculation
View Answer
B

Q1094: Errors are usually raised by the ________.
  • A: application code
  • B: environment
  • C: compiler
  • D: user
View Answer
A

Q1095: Exceptions are caused by ________.
  • A: the environment
  • B: the code of the app
  • C: the compiler
  • D: the operating system
View Answer
B

Q1096: Recovery from an error is ________.
  • A: not possible
  • B: always possible
  • C: sometimes possible
  • D: depends on the error
View Answer
A

Q1097: The use of try-catch blocks helps to ________.
  • A: cause errors
  • B: handle exceptions
  • C: prevent compilation
  • D: errors
View Answer
B

Q1098: Errors occur at ________ and are unknown by the compiler.
  • A: compile-time
  • B: run-time
  • C: link-time
  • D: load-time
View Answer
B

Q1099: Exceptions may or may not be ________ by the compiler.
  • A: raised
  • B: caught
  • C: ignored
  • D: reported
View Answer
B

Q1100: Programmers include explicit tests to check for ________.
  • A: exceptions
  • B: errors
  • C: warnings
  • D: syntax mistakes
View Answer
B

Test Your Knowledge

Take a timed quiz on System Programming

🚀 Start Quiz Now