Q. Which of the following statements is true?

  • (A) the standard exceptions are automatically imported into python programs
  • (B) all raised standard exceptions must be handled in python
  • (C) when there is a deviation from the rules of a programming language, a semantic error is thrown
  • (D) if any exception is thrown in try block, else block is executed
πŸ’¬ Discuss
βœ… Correct Answer: (A) the standard exceptions are automatically imported into python programs
Explanation: when any exception is thrown in try block, except block is executed. if exception in not thrown in try block, else block is executed. when there is a deviation from the rules of a programming language, a

Explanation by: Mr. Dubey
when any exception is thrown in try block, except block is executed. if exception in not thrown in try block, else block is executed. when there is a deviation from the rules of a programming language, a

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
819
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate