CBSE · 083Class XII · 2025Section A1 mark

Question 11

4 March 2025 · Computer Science (083)

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

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

Answer

(b) WORD5#OVER

Explanation

String concatenation 'WORD' + '5' works fine ('WORD5#'). No exception is raised. The finally block always runs, printing 'OVER'.