What is the expected behavior of the following code?

Posted by: Pdfprep Category: PCAP-31-03 Tags: , ,

What is the expected behavior of the following code?

A . it outputs 1
B . it outputs 2
C . the code is erroneous and it will not execute
D . it outputs 3

Answer: B

Comments (2)

  • disturbed Reply

    C is the correct answer the except branch with no arguments must be executed last

    August 4, 2021 at 2:21 pm
    • Vijaya Chitturi Reply

      No C is not correct. Code is erroneous and will not execute as the default except should be last.

      January 29, 2024 at 6:32 am

Leave a Reply

Your email address will not be published.