Multiple choice technology programming languages

range_error is which type of exception.

  1. logical_error

  2. runtime_error

  3. domain_error

  4. bad_exception

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

range_error inherits from runtime_error because it detects problems during execution when values fall outside valid ranges. This is distinct from logical_error, which is for violations detectable before the program runs (like invalid arguments).