MCQs > IT & Programming > Python > One common way to test a capability in Python is to try to do something, and catch any exceptions that occur. Which of the following is the correct mechanism of trapping an error?

Python MCQs

One common way to test a capability in Python is to try to do something, and catch any exceptions that occur.

Which of the following is the correct mechanism of trapping an error?

Answer

Correct Answer: try: code to be verified will come here except <exception>:

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it