Menu

Try and Throw - Quiz

1. Which term describes a run-time error that can be caught instead of stopping the program?

Try
Exception
Except
Validation

2. What is meant by 'try' in Python?

A block of code that repeats while a condition is true
A block of code that checks input against a set of rules
A block of code that runs only if an error occurs
A block of code that is run and may cause an error

Log in or sign-up to access the quiz



Don't have a login?

You can still revise this topic