Exceptions interview questions

18 real Exceptions questions from the C# bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Finally block?

Junior
  1. A.a user-defined error class that derives from the base exception type to convey domain-specific failure information
  2. B.a clause guaranteed to execute after its associated protected block whether or not an error occurred, used to release resources
  3. C.writing throw followed by the caught exception variable, which resets the captured stack trace to the rethrow point and loses the original origin
  4. D.a when-clause appended to a catch that evaluates a boolean condition and only enters the handler if it is true, without unwinding the stack otherwise
Reveal the answer + AI explanation — free account

2. Which term means: "a clause guaranteed to execute after its associated protected block whether or not an error occurred, used to release resources"?

Junior
  1. A.Custom exception type
  2. B.Finally block
  3. C.Rethrow preserving stack
  4. D.Stack-trace-erasing rethrow
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Finally block — a reference carried by one error to the underlying error that caused it, preserving a chain of root-cause context
  2. B.Finally block — a clause guaranteed to execute after its associated protected block whether or not an error occurred, used to release resources
  3. C.Finally block — a user-defined error class that derives from the base exception type to convey domain-specific failure information
  4. D.Finally block — a when-clause appended to a catch that evaluates a boolean condition and only enters the handler if it is true, without unwinding the stack otherwise
Reveal the answer + AI explanation — free account

4. What is Rethrow preserving stack?

Senior
  1. A.a clause guaranteed to execute after its associated protected block whether or not an error occurred, used to release resources
  2. B.a reference carried by one error to the underlying error that caused it, preserving a chain of root-cause context
  3. C.using a bare throw inside a catch to propagate the current error while keeping its original call-stack information intact
  4. D.a user-defined error class that derives from the base exception type to convey domain-specific failure information
Reveal the answer + AI explanation — free account

5. Which term means: "using a bare throw inside a catch to propagate the current error while keeping its original call-stack information intact"?

Senior
  1. A.Custom exception type
  2. B.Exception filter
  3. C.Inner exception
  4. D.Rethrow preserving stack
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Senior
  1. A.Rethrow preserving stack — a user-defined error class that derives from the base exception type to convey domain-specific failure information
  2. B.Rethrow preserving stack — a reference carried by one error to the underlying error that caused it, preserving a chain of root-cause context
  3. C.Rethrow preserving stack — using a bare throw inside a catch to propagate the current error while keeping its original call-stack information intact
  4. D.Rethrow preserving stack — a when-clause appended to a catch that evaluates a boolean condition and only enters the handler if it is true, without unwinding the stack otherwise
Reveal the answer + AI explanation — free account

7. What is Stack-trace-erasing rethrow?

Senior
  1. A.writing throw followed by the caught exception variable, which resets the captured stack trace to the rethrow point and loses the original origin
  2. B.a reference carried by one error to the underlying error that caused it, preserving a chain of root-cause context
  3. C.a user-defined error class that derives from the base exception type to convey domain-specific failure information
  4. D.using a bare throw inside a catch to propagate the current error while keeping its original call-stack information intact
Reveal the answer + AI explanation — free account

8. Which term means: "writing throw followed by the caught exception variable, which resets the captured stack trace to the rethrow point and loses the original origin"?

Senior
  1. A.Rethrow preserving stack
  2. B.Exception filter
  3. C.Stack-trace-erasing rethrow
  4. D.Custom exception type
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Senior
  1. A.Stack-trace-erasing rethrow — a reference carried by one error to the underlying error that caused it, preserving a chain of root-cause context
  2. B.Stack-trace-erasing rethrow — a user-defined error class that derives from the base exception type to convey domain-specific failure information
  3. C.Stack-trace-erasing rethrow — writing throw followed by the caught exception variable, which resets the captured stack trace to the rethrow point and loses the original origin
  4. D.Stack-trace-erasing rethrow — a when-clause appended to a catch that evaluates a boolean condition and only enters the handler if it is true, without unwinding the stack otherwise
Reveal the answer + AI explanation — free account

10. What is Custom exception type?

Mid
  1. A.using a bare throw inside a catch to propagate the current error while keeping its original call-stack information intact
  2. B.a when-clause appended to a catch that evaluates a boolean condition and only enters the handler if it is true, without unwinding the stack otherwise
  3. C.a clause guaranteed to execute after its associated protected block whether or not an error occurred, used to release resources
  4. D.a user-defined error class that derives from the base exception type to convey domain-specific failure information
Reveal the answer + AI explanation — free account

11. Which term means: "a user-defined error class that derives from the base exception type to convey domain-specific failure information"?

Mid
  1. A.Rethrow preserving stack
  2. B.Custom exception type
  3. C.Inner exception
  4. D.Finally block
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.Custom exception type — a clause guaranteed to execute after its associated protected block whether or not an error occurred, used to release resources
  2. B.Custom exception type — a user-defined error class that derives from the base exception type to convey domain-specific failure information
  3. C.Custom exception type — using a bare throw inside a catch to propagate the current error while keeping its original call-stack information intact
  4. D.Custom exception type — writing throw followed by the caught exception variable, which resets the captured stack trace to the rethrow point and loses the original origin
Reveal the answer + AI explanation — free account

13. What is Exception filter?

Mid
  1. A.writing throw followed by the caught exception variable, which resets the captured stack trace to the rethrow point and loses the original origin
  2. B.a user-defined error class that derives from the base exception type to convey domain-specific failure information
  3. C.using a bare throw inside a catch to propagate the current error while keeping its original call-stack information intact
  4. D.a when-clause appended to a catch that evaluates a boolean condition and only enters the handler if it is true, without unwinding the stack otherwise
Reveal the answer + AI explanation — free account

14. Which term means: "a when-clause appended to a catch that evaluates a boolean condition and only enters the handler if it is true, without unwinding the stack otherwise"?

Mid
  1. A.Stack-trace-erasing rethrow
  2. B.Inner exception
  3. C.Exception filter
  4. D.Finally block
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.Exception filter — a when-clause appended to a catch that evaluates a boolean condition and only enters the handler if it is true, without unwinding the stack otherwise
  2. B.Exception filter — a clause guaranteed to execute after its associated protected block whether or not an error occurred, used to release resources
  3. C.Exception filter — a reference carried by one error to the underlying error that caused it, preserving a chain of root-cause context
  4. D.Exception filter — a user-defined error class that derives from the base exception type to convey domain-specific failure information
Reveal the answer + AI explanation — free account

16. What is Inner exception?

Mid
  1. A.a when-clause appended to a catch that evaluates a boolean condition and only enters the handler if it is true, without unwinding the stack otherwise
  2. B.a reference carried by one error to the underlying error that caused it, preserving a chain of root-cause context
  3. C.a user-defined error class that derives from the base exception type to convey domain-specific failure information
  4. D.a clause guaranteed to execute after its associated protected block whether or not an error occurred, used to release resources
Reveal the answer + AI explanation — free account

17. Which term means: "a reference carried by one error to the underlying error that caused it, preserving a chain of root-cause context"?

Mid
  1. A.Rethrow preserving stack
  2. B.Stack-trace-erasing rethrow
  3. C.Inner exception
  4. D.Exception filter
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.Inner exception — a user-defined error class that derives from the base exception type to convey domain-specific failure information
  2. B.Inner exception — a when-clause appended to a catch that evaluates a boolean condition and only enters the handler if it is true, without unwinding the stack otherwise
  3. C.Inner exception — writing throw followed by the caught exception variable, which resets the captured stack trace to the rethrow point and loses the original origin
  4. D.Inner exception — a reference carried by one error to the underlying error that caused it, preserving a chain of root-cause context
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Exceptions free