Build your intuition. Click the correct answer from the options.
The execution of the sequence below:
TEXT/X-C++SRC
1StratError modelPerformance;
2
3try {
4 if (modelPerformance < 80) throw StratError();
5}
6catch (StratError e) {
7 std::cerr << e.what() << std::endl;
8}
Which statement is correct about the code snippet?
Click the option that best answers the question.
- The `try` block checks for a performance threshold.
- The `catch` block will execute if `modelPerformance` is greater than 80.
- `StratError` is the name of a built-in C++ exception.
- The error message will be printed to standard output using `std::cout`.