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=' ')…

The correct answer is D. Try Else Finally. You've hit your limit · resets 1pm (America/New_York)

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

How the community answered

(44 responses)
  • A
    14% (6)
  • B
    2% (1)
  • C
    7% (3)
  • D
    77% (34)

Explanation

You've hit your limit · resets 1pm (America/New_York)

Topics

#try/except/else/finally#exception flow#control flow#error handling

Community Discussion

No community discussion yet for this question.

Full GPYC Practice