18 Error Handling questions from the Rust 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.a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
B.a method that extracts the contained success value but triggers an abort if the value is absent or an error
C.the enum with Ok and Err variants used to return either a success value or a recoverable failure
D.an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
Answer + AI explanation with Pro
2. Which term means: "the enum with Ok and Err variants used to return either a success value or a recoverable failure"?
Junior
A.unwrap
B.expect
C.panic
D.Result
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Result — the enum with Some and None variants representing a value that may be present or absent, replacing null
B.Result — an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
C.Result — the enum with Ok and Err variants used to return either a success value or a recoverable failure
D.Result — a method like unwrap that extracts the value but lets the caller supply a custom message shown on failure
Answer + AI explanation with Pro
4. What is Option?
Junior
A.an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
B.the enum with Ok and Err variants used to return either a success value or a recoverable failure
C.the enum with Some and None variants representing a value that may be present or absent, replacing null
D.a method that extracts the contained success value but triggers an abort if the value is absent or an error
Answer + AI explanation with Pro
5. Which term means: "the enum with Some and None variants representing a value that may be present or absent, replacing null"?
Junior
A.unwrap
B.Option
C.panic
D.Question-mark operator
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Option — a method like unwrap that extracts the value but lets the caller supply a custom message shown on failure
B.Option — a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
C.Option — a method that extracts the contained success value but triggers an abort if the value is absent or an error
D.Option — the enum with Some and None variants representing a value that may be present or absent, replacing null
Answer + AI explanation with Pro
7. What is Question-mark operator?
Mid
A.a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
B.a method that extracts the contained success value but triggers an abort if the value is absent or an error
C.an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
D.the enum with Ok and Err variants used to return either a success value or a recoverable failure
Answer + AI explanation with Pro
8. Which term means: "a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure"?
Mid
A.Option
B.expect
C.Result
D.Question-mark operator
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Question-mark operator — a method like unwrap that extracts the value but lets the caller supply a custom message shown on failure
B.Question-mark operator — a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
C.Question-mark operator — the enum with Ok and Err variants used to return either a success value or a recoverable failure
D.Question-mark operator — a method that extracts the contained success value but triggers an abort if the value is absent or an error
Answer + AI explanation with Pro
10. What is panic?
Mid
A.a method that extracts the contained success value but triggers an abort if the value is absent or an error
B.an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
C.the enum with Some and None variants representing a value that may be present or absent, replacing null
D.the enum with Ok and Err variants used to return either a success value or a recoverable failure
Answer + AI explanation with Pro
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
A.panic
B.Question-mark operator
C.expect
D.Result
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.panic — the enum with Some and None variants representing a value that may be present or absent, replacing null
B.panic — an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
C.panic — a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
D.panic — a method that extracts the contained success value but triggers an abort if the value is absent or an error
Answer + AI explanation with Pro
13. What is unwrap?
Junior
A.an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
B.the enum with Ok and Err variants used to return either a success value or a recoverable failure
C.a method that extracts the contained success value but triggers an abort if the value is absent or an error
D.the enum with Some and None variants representing a value that may be present or absent, replacing null
Answer + AI explanation with Pro
14. Which term means: "a method that extracts the contained success value but triggers an abort if the value is absent or an error"?
Junior
A.panic
B.unwrap
C.Result
D.expect
Answer + AI explanation with Pro
15. Which statement is correct?
Junior
A.unwrap — a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
B.unwrap — an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
C.unwrap — the enum with Some and None variants representing a value that may be present or absent, replacing null
D.unwrap — a method that extracts the contained success value but triggers an abort if the value is absent or an error
Answer + AI explanation with Pro
16. What is expect?
Junior
A.a method that extracts the contained success value but triggers an abort if the value is absent or an error
B.the enum with Some and None variants representing a value that may be present or absent, replacing null
C.a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
D.a method like unwrap that extracts the value but lets the caller supply a custom message shown on failure
Answer + AI explanation with Pro
17. Which term means: "a method like unwrap that extracts the value but lets the caller supply a custom message shown on failure"?
Junior
A.Result
B.Option
C.expect
D.panic
Answer + AI explanation with Pro
18. Which statement is correct?
Junior
A.expect — a method like unwrap that extracts the value but lets the caller supply a custom message shown on failure
B.expect — the enum with Ok and Err variants used to return either a success value or a recoverable failure
C.expect — an unrecoverable abort that unwinds or terminates the current thread, used for bugs and broken invariants rather than expected failures
D.expect — a postfix operator that unwraps a success value or returns the error early from the enclosing function on failure
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.