1 / 5
The function should ___ an exception when input is invalid.
-
-
-
-
You throw an exception. Throw is the precise verb; the others do not collocate. So throw an exception.
2 / 5
We ___ the error and log it before retrying.
-
-
-
-
You catch an error. Catch is the standard collocation; the others are wrong. So catch the error.
3 / 5
The handler will ___ a fallback response on failure.
-
-
-
-
You return a response. Return is the natural collocation; the others do not fit. So return a fallback response.
4 / 5
We ___ errors gracefully instead of crashing.
-
-
-
-
You handle errors. Handle is the precise collocation; the others are wrong. So handle errors gracefully.
5 / 5
A clear message helps users ___ the problem.
-
-
-
-
Users understand a problem. Understand is the natural collocation; the others do not fit. So understand the problem.