Error Handling interview questions

18 real Error Handling questions from the Rust 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 Result?

Junior
  1. A.a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
  2. B.a method that extracts the contained success value but triggers an abort if the value is absent or an error
  3. C.the enum with Ok and Err variants used to return either a success value or a recoverable failure
  4. D.an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Result — the enum with Some and None variants representing a value that may be present or absent, replacing null
  2. B.Result — an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
  3. C.Result — the enum with Ok and Err variants used to return either a success value or a recoverable failure
  4. D.Result — a method like unwrap that extracts the value but lets the caller supply a custom message shown on failure
Reveal the answer + AI explanation — free account

4. What is Option?

Junior
  1. A.an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
  2. B.the enum with Ok and Err variants used to return either a success value or a recoverable failure
  3. C.the enum with Some and None variants representing a value that may be present or absent, replacing null
  4. D.a method that extracts the contained success value but triggers an abort if the value is absent or an error
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Option — a method like unwrap that extracts the value but lets the caller supply a custom message shown on failure
  2. B.Option — a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
  3. C.Option — a method that extracts the contained success value but triggers an abort if the value is absent or an error
  4. D.Option — the enum with Some and None variants representing a value that may be present or absent, replacing null
Reveal the answer + AI explanation — free account

7. What is Question-mark operator?

Mid
  1. A.a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
  2. B.a method that extracts the contained success value but triggers an abort if the value is absent or an error
  3. C.an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
  4. D.the enum with Ok and Err variants used to return either a success value or a recoverable failure
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Question-mark operator — a method like unwrap that extracts the value but lets the caller supply a custom message shown on failure
  2. B.Question-mark operator — a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
  3. C.Question-mark operator — the enum with Ok and Err variants used to return either a success value or a recoverable failure
  4. D.Question-mark operator — a method that extracts the contained success value but triggers an abort if the value is absent or an error
Reveal the answer + AI explanation — free account

10. What is panic?

Mid
  1. A.a method that extracts the contained success value but triggers an abort if the value is absent or an error
  2. B.an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
  3. C.the enum with Some and None variants representing a value that may be present or absent, replacing null
  4. D.the enum with Ok and Err variants used to return either a success value or a recoverable failure
Reveal the answer + AI explanation — free account

11. Which term means: "an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures"?

Mid
  1. A.panic
  2. B.Question-mark operator
  3. C.expect
  4. D.Result
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Mid
  1. A.panic — the enum with Some and None variants representing a value that may be present or absent, replacing null
  2. B.panic — an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
  3. C.panic — a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
  4. D.panic — a method that extracts the contained success value but triggers an abort if the value is absent or an error
Reveal the answer + AI explanation — free account

13. What is unwrap?

Junior
  1. A.an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
  2. B.the enum with Ok and Err variants used to return either a success value or a recoverable failure
  3. C.a method that extracts the contained success value but triggers an abort if the value is absent or an error
  4. D.the enum with Some and None variants representing a value that may be present or absent, replacing null
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Junior
  1. A.unwrap — a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
  2. B.unwrap — an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
  3. C.unwrap — the enum with Some and None variants representing a value that may be present or absent, replacing null
  4. D.unwrap — a method that extracts the contained success value but triggers an abort if the value is absent or an error
Reveal the answer + AI explanation — free account

16. What is expect?

Junior
  1. A.a method that extracts the contained success value but triggers an abort if the value is absent or an error
  2. B.the enum with Some and None variants representing a value that may be present or absent, replacing null
  3. C.a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
  4. D.a method like unwrap that extracts the value but lets the caller supply a custom message shown on failure
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Junior
  1. A.expect — a method like unwrap that extracts the value but lets the caller supply a custom message shown on failure
  2. B.expect — the enum with Ok and Err variants used to return either a success value or a recoverable failure
  3. C.expect — an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
  4. D.expect — a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
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 Error Handling free