System Programming MCQs with Answers
Practice important System Programming MCQs with answers and explanations.
Multiple Choice Questions
Q1081: The except block can catch multiple exceptions using a ________.
- A: tuple
- B: list
- C: dictionary
- D: set
View Answer
A
Q1082: In Python, you can specify an exception type after except to handle only that ________.
- A: error
- B: type
- C: of operation
- D: package
View Answer
A
Q1083: IEEE 754 is a standard for ________.
- A: floating-point exceptions
- B: integer arithmetic
- C: logical operations
- D: data storage
View Answer
A
Q1084: How many types of floating-point exceptions are defined by IEEE 754?
- A: 3
- B: 4
- C: 5
- D: 6
View Answer
C
Q1085: Which of the following is NOT a floating-point exception defined by IEEE 754?
- A: Invalid operation
- B: Stack overflow
- C: Division by zero
- D: Underflow
View Answer
B
Q1086: Floating-point exception that occurs when a number is too large to be represented is called ________.
- A: Underflow
- B: Overflow
- C: Inexact calculation
- D: Invalid operation
View Answer
B
Q1087: The floating-point exception for division by zero is called ________.
- A: Overflow
- B: Division by zero
- C: Invalid operation
- D: Underflow
View Answer
B
Q1088: Underflow in floating-point exceptions means the number is ________.
- A: too small to be represented
- B: too large to be represented
- C: not a number
- D: exact calculation
View Answer
A
Q1089: The exception raised when the result of a floating-point operation is not exact is called ________.
- A: Inexact calculation
- B: Overflow
- C: Invalid operation
- D: Division by zero
View Answer
A
Q1090: Invalid operation floating-point exception occurs when ________.
- A: an undefined mathematical operation is performed
- B: a number is too large
- C: a number is too small
- D: division by zero
View Answer
A