1. What is error interface ? Junior 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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account
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 Reveal the answer + AI explanation — free account