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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
