- 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:
- Logical Errors
- Parsing Errors
- Code Errors
- Programming Errors
See Answer
Answer: 2. Parsing Errors
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.
- Syntax Error
- IOError
- OverFlow Error
- Value Error
See Answer
Answer: 4. Value Error
3. It is raised when the file specified in a program statement cannot be opened.
- IO Error
- OverFlow Error
- Name Error
- Index Error
See Answer
Answer: 1. IO Error
4. It is raised when the requested module definition is not found.
- Import Error
- EOF Error
- Index Error
- Type Error
See Answer
Answer: 1. Import Error
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.
- OverFlow Error
- Indentation Error
- Keyboard Interrupt
- Syntax Error
See Answer
Answer: 3. Keyboard Interrupt
6. It is raised when the end of file condition is reached without reading any data by input().
- Import Error
- EOF Error
- Index Error
- Type Error
See Answer
Answer: 2. EOF Error
7. It is raised when an operator is supplied with a value of incorrect data type.
- Import Error
- EOF Error
- Index Error
- Type Error
See Answer
Answer: 4. Type Error
8. It is raised when a local or global variable name is not defined.
- Indentation Error
- Type Error
- Name Error
- Keyboard Interrupt
See Answer
Answer: 3. Name Error
9. It is raised when the index or subscript in a sequence is out of range.
- Import Error
- EOF Error
- Index Error
- Type Error
See Answer
Answer: 3. Index Error
10. It is raised when the result of a calculation exceeds the maximum
limit for the numeric data type.
- OverFlow Error
- Indentation Error
- Keyboard Interrupt
- Syntax Error
See Answer
Answer: 1. OverFlow Error