Error Handling interview questions

15 Error Handling questions from the Go 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 error interface?

Junior
  1. A.the built-in single-method contract with an Error returning string that idiomatic functions return as a final value
  2. B.the helper that reports whether any error in a wrapped chain matches a specific sentinel target
  3. C.attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later
  4. D.the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered

Answer + AI explanation with Pro

2. Which term means: "the built-in single-method contract with an Error returning string that idiomatic functions return as a final value"?

Junior
  1. A.errors.Is
  2. B.error interface
  3. C.Error wrapping
  4. D.panic

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.error interface — the helper that reports whether any error in a wrapped chain matches a specific sentinel target
  2. B.error interface — the built-in single-method contract with an Error returning string that idiomatic functions return as a final value
  3. C.error interface — attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later
  4. D.error interface — the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution

Answer + AI explanation with Pro

4. What is Error wrapping?

Mid
  1. A.the built-in single-method contract with an Error returning string that idiomatic functions return as a final value
  2. B.the helper that reports whether any error in a wrapped chain matches a specific sentinel target
  3. C.the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution
  4. D.attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later

Answer + AI explanation with Pro

5. Which term means: "attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later"?

Mid
  1. A.Error wrapping
  2. B.errors.Is
  3. C.panic
  4. D.error interface

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.Error wrapping — the built-in single-method contract with an Error returning string that idiomatic functions return as a final value
  2. B.Error wrapping — the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered
  3. C.Error wrapping — the helper that reports whether any error in a wrapped chain matches a specific sentinel target
  4. D.Error wrapping — attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later

Answer + AI explanation with Pro

7. What is errors.Is?

Mid
  1. A.the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered
  2. B.attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later
  3. C.the helper that reports whether any error in a wrapped chain matches a specific sentinel target
  4. D.the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution

Answer + AI explanation with Pro

8. Which term means: "the helper that reports whether any error in a wrapped chain matches a specific sentinel target"?

Mid
  1. A.errors.Is
  2. B.Error wrapping
  3. C.recover
  4. D.error interface

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.errors.Is — attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later
  2. B.errors.Is — the helper that reports whether any error in a wrapped chain matches a specific sentinel target
  3. C.errors.Is — the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution
  4. D.errors.Is — the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered

Answer + AI explanation with Pro

10. What is panic?

Mid
  1. A.the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution
  2. B.the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered
  3. C.attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later
  4. D.the helper that reports whether any error in a wrapped chain matches a specific sentinel target

Answer + AI explanation with Pro

11. Which term means: "the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered"?

Mid
  1. A.Error wrapping
  2. B.panic
  3. C.errors.Is
  4. D.recover

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.panic — the helper that reports whether any error in a wrapped chain matches a specific sentinel target
  2. B.panic — the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered
  3. C.panic — the built-in single-method contract with an Error returning string that idiomatic functions return as a final value
  4. D.panic — the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution

Answer + AI explanation with Pro

13. What is recover?

Senior
  1. A.the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution
  2. B.the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered
  3. C.the built-in single-method contract with an Error returning string that idiomatic functions return as a final value
  4. D.attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later

Answer + AI explanation with Pro

14. Which term means: "the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution"?

Senior
  1. A.error interface
  2. B.panic
  3. C.errors.Is
  4. D.recover

Answer + AI explanation with Pro

15. Which statement is correct?

Senior
  1. A.recover — the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered
  2. B.recover — attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later
  3. C.recover — the helper that reports whether any error in a wrapped chain matches a specific sentinel target
  4. D.recover — the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution

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 Error Handling 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