nerdexam
GIAC

GPYC · Question #17

What is the output of the following commands typed in the Python Interactive shell? `` >>> print("Try",end=' ') ... except: ... print("Except",end=' ') ... else: ... print("Else",end=' ') ... finally:

Sign in or unlock GPYC to reveal the answer and full explanation for question #17. The question stem and answer options stay visible for context.

Python Fundamentals & Command Line Tools

Question

What is the output of the following commands typed in the Python Interactive shell?
>>> print("Try",end=' ')
... except:
... print("Except",end=' ')
... else:
... print("Else",end=' ')
... finally:
... print("finally",end=' ')

Options

  • ATry Else Except Finally
  • BTry Finally
  • CTry
  • DTry Else Finally

Unlock GPYC to see the answer

You've previewed enough free GPYC questions. Unlock GPYC for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#try/except/else/finally#exception flow#control flow#error handling
Full GPYC Practice