Advertisements
Advertisements
प्रश्न
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')विकल्प
ERROR#WORD5#OVERWORD5#ERROR#OVER
MCQ
Advertisements
उत्तर
WORD5#OVER
Explanation:
There is no exception here, so the try and finally blocks areexecuted, therefore print ("WORD"+N,end='#') and print('OVER') are executed giving "WORD5#OVER".
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
