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.
A.the built-in single-method contract with an Error returning string that idiomatic functions return as a final value
B.the helper that reports whether any error in a wrapped chain matches a specific sentinel target
C.attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later
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
A.errors.Is
B.error interface
C.Error wrapping
D.panic
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.error interface — the helper that reports whether any error in a wrapped chain matches a specific sentinel target
B.error interface — the built-in single-method contract with an Error returning string that idiomatic functions return as a final value
C.error interface — attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later
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
A.the built-in single-method contract with an Error returning string that idiomatic functions return as a final value
B.the helper that reports whether any error in a wrapped chain matches a specific sentinel target
C.the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution
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
A.Error wrapping
B.errors.Is
C.panic
D.error interface
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.Error wrapping — the built-in single-method contract with an Error returning string that idiomatic functions return as a final value
B.Error wrapping — the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered
C.Error wrapping — the helper that reports whether any error in a wrapped chain matches a specific sentinel target
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
A.the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered
B.attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later
C.the helper that reports whether any error in a wrapped chain matches a specific sentinel target
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
A.errors.Is
B.Error wrapping
C.recover
D.error interface
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.errors.Is — attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later
B.errors.Is — the helper that reports whether any error in a wrapped chain matches a specific sentinel target
C.errors.Is — the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution
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
A.the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution
B.the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered
C.attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later
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
A.Error wrapping
B.panic
C.errors.Is
D.recover
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.panic — the helper that reports whether any error in a wrapped chain matches a specific sentinel target
B.panic — the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered
C.panic — the built-in single-method contract with an Error returning string that idiomatic functions return as a final value
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
A.the builtin, valid only inside a deferred function, that stops a panicking sequence and resumes normal execution
B.the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered
C.the built-in single-method contract with an Error returning string that idiomatic functions return as a final value
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
A.error interface
B.panic
C.errors.Is
D.recover
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.recover — the builtin that stops normal flow, runs deferred calls up the stack, and crashes the program if not recovered
B.recover — attaching context to a returned failure using the %w verb in fmt.Errorf so the original can be unwrapped later
C.recover — the helper that reports whether any error in a wrapped chain matches a specific sentinel target
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.