Exceptions interview questions

18 Exceptions questions from the C# bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Exceptions question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers