Built-in Exceptions – Exception Handling in Python MCQ Class 12

Class 12th Computer Science
  • Topic: Built-in Exceptions
  • Chapter: Exception Handling in Python
  • Number of Questions: 10
  • Question Type: MCQ
  • Target: Class 12th Board Exam

Let’s Start

1. Syntax Errors are also known as:
  1. Logical Errors
  2. Parsing Errors
  3. Code Errors
  4. Programming Errors

See Answer

2. It is raised when a built-in method or operation receives an argument that has the right data type but mismatched or inappropriate values.
  1. Syntax Error
  2. IOError
  3. OverFlow Error
  4. Value Error

See Answer

3. It is raised when the file specified in a program statement cannot be opened.
  1. IO Error
  2. OverFlow Error
  3. Name Error
  4. Index Error

See Answer

4. It is raised when the requested module definition is not found.
  1. Import Error
  2. EOF Error
  3. Index Error
  4. Type Error

See Answer

5. It is raised when the user accidentally hits the Delete or Esc key while executing a program due to which the normal flow of the
program is interrupted.
  1. OverFlow Error
  2. Indentation Error
  3. Keyboard Interrupt
  4. Syntax Error

See Answer

6. It is raised when the end of file condition is reached without reading any data by input().
  1. Import Error
  2. EOF Error
  3. Index Error
  4. Type Error

See Answer

7. It is raised when an operator is supplied with a value of incorrect data type.
  1. Import Error
  2. EOF Error
  3. Index Error
  4. Type Error

See Answer

8. It is raised when a local or global variable name is not defined.
  1. Indentation Error
  2. Type Error
  3. Name Error
  4. Keyboard Interrupt

See Answer

9. It is raised when the index or subscript in a sequence is out of range.
  1. Import Error
  2. EOF Error
  3. Index Error
  4. Type Error

See Answer

10. It is raised when the result of a calculation exceeds the maximum
limit for the numeric data type.
  1. OverFlow Error
  2. Indentation Error
  3. Keyboard Interrupt
  4. Syntax Error

See Answer

Share this knowledge!

Leave a Reply

Your email address will not be published. Required fields are marked *