15 Interfaces 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 gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
B.a type defined purely by a set of method signatures that any value implementing them can satisfy
C.the x.(T) expression that extracts the underlying concrete value from an interface, optionally returning an ok boolean
D.the any alias that places no method requirements and can therefore hold a value of every type
Answer + AI explanation with Pro
2. Which term means: "a type defined purely by a set of method signatures that any value implementing them can satisfy"?
Junior
A.Empty interface
B.Interface
C.Type switch
D.Type assertion
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Interface — the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
B.Interface — a type defined purely by a set of method signatures that any value implementing them can satisfy
C.Interface — the any alias that places no method requirements and can therefore hold a value of every type
D.Interface — a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
Answer + AI explanation with Pro
4. What is Empty interface?
Junior
A.the x.(T) expression that extracts the underlying concrete value from an interface, optionally returning an ok boolean
B.the any alias that places no method requirements and can therefore hold a value of every type
C.a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
D.the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
Answer + AI explanation with Pro
5. Which term means: "the any alias that places no method requirements and can therefore hold a value of every type"?
Junior
A.Empty interface
B.Type switch
C.Nil interface trap
D.Interface
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Empty interface — the any alias that places no method requirements and can therefore hold a value of every type
B.Empty interface — a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
C.Empty interface — a type defined purely by a set of method signatures that any value implementing them can satisfy
D.Empty interface — the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
Answer + AI explanation with Pro
7. What is Type assertion?
Mid
A.a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
B.the x.(T) expression that extracts the underlying concrete value from an interface, optionally returning an ok boolean
C.the any alias that places no method requirements and can therefore hold a value of every type
D.a type defined purely by a set of method signatures that any value implementing them can satisfy
Answer + AI explanation with Pro
8. Which term means: "the x.(T) expression that extracts the underlying concrete value from an interface, optionally returning an ok boolean"?
Mid
A.Empty interface
B.Type switch
C.Interface
D.Type assertion
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Type assertion — a type defined purely by a set of method signatures that any value implementing them can satisfy
B.Type assertion — a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
C.Type assertion — the x.(T) expression that extracts the underlying concrete value from an interface, optionally returning an ok boolean
D.Type assertion — the any alias that places no method requirements and can therefore hold a value of every type
Answer + AI explanation with Pro
10. What is Type switch?
Mid
A.the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
B.a type defined purely by a set of method signatures that any value implementing them can satisfy
C.a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
D.the any alias that places no method requirements and can therefore hold a value of every type
Answer + AI explanation with Pro
11. Which term means: "a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value"?
Mid
A.Type switch
B.Empty interface
C.Interface
D.Type assertion
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Type switch — the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
B.Type switch — a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
C.Type switch — the any alias that places no method requirements and can therefore hold a value of every type
D.Type switch — the x.(T) expression that extracts the underlying concrete value from an interface, optionally returning an ok boolean
Answer + AI explanation with Pro
13. What is Nil interface trap?
Senior
A.a type defined purely by a set of method signatures that any value implementing them can satisfy
B.the any alias that places no method requirements and can therefore hold a value of every type
C.the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
D.the x.(T) expression that extracts the underlying concrete value from an interface, optionally returning an ok boolean
Answer + AI explanation with Pro
14. Which term means: "the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information"?
Senior
A.Type switch
B.Nil interface trap
C.Empty interface
D.Type assertion
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.Nil interface trap — a type defined purely by a set of method signatures that any value implementing them can satisfy
B.Nil interface trap — a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
C.Nil interface trap — the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
D.Nil interface trap — the x.(T) expression that extracts the underlying concrete value from an interface, optionally returning an ok boolean
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 Interfaces question come with Pro.