Consider the statements given below and then choose the correct output from…

PYQ Bihar STET 2025Modified — slightly modified from the official paper; see the solution

Consider the statements given below and then choose the correct output from the given options :

N='5'
try :
    print('WORD' + N, end='#')
except :
    print('ERROR', end='#')
finally :
    print('OVER')
  1. A.

    ERROR#

  2. B.

    WORD5#OVER

  3. C.

    WORD5#

  4. D.

    ERROR#OVER

Attempted by 387 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bihar Stet Computer Science Complete Course

Loading lesson…