मराठी

On giving the "raise syntaxError("HI")" command on Python shell, no exception is raised because the right way to write is: -

Advertisements
Advertisements

प्रश्न

On giving the "raise syntaxError("HI")" command on Python shell, no exception is raised because the right way to write is:

पर्याय

  • raise syntaxError("HI")

  • raise SyntaxError("HI")

  • raise SyntaxErrorException("HI")

  • raise syntaxErrorException("HI")

MCQ

उत्तर

raise SyntaxErrorException("HI")

Explanation:

The right syntax error exception to throw is SyntaxErrorException ("HI").

shaalaa.com
Raising Exceptions
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×