Kramizo
Log inSign up free
CIE · IGCSE · Computer Science

One real Computer Science question.
No signup. 30 seconds.

Topic: Programming concepts: exception handling (use of try/except or equivalent). Pick an answer — get the mark scheme instantly.

Question · Difficulty 2/3

Examine the following Python code. What will be printed if the user enters 'ten' when prompted? try: num = int(input('Enter a number: ')) print('Double is', num * 2) except ValueError: print('That is not a valid integer') except: print('An unexpected error occurred')

Tap an option to see the mark scheme

Pick your board & subject
Try a real question from the bank — no signup needed.
574 questions