1What is the output of the following code?try: 1 / 0 except ZeroDivisionError: print('zero')AErrorB0CzeroDinfView AnswerDiscussWorkspaceReportSaveEasy
2Which keyword raises an exception?AraiseBerrorCexceptDthrowView AnswerDiscussWorkspaceReportSaveEasy
3Which is the base class of most built-in exceptions?AThrowableBBaseException onlyCExceptionDErrorView AnswerDiscussWorkspaceReportSaveEasy
4Which statement is used to raise an exception manually?AexceptBerrorCraiseDthrowView AnswerDiscussWorkspaceReportSaveEasy
5What is the output of the following code?d = {} try: d['k'] except KeyError as e: print(type(e).__name__)AKeyErrorBIndexErrorCValueErrorDNoneView AnswerDiscussWorkspaceReportSaveEasy