Interfaces interview questions

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.

Take the free IT readiness check

or take a mock interview set up for this area

1. What is Interface?

Junior
  1. A.the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
  2. B.a type defined purely by a set of method signatures that any value implementing them can satisfy
  3. C.the x.(T) expression that extracts the underlying concrete value from an interface, optionally returning an ok boolean
  4. 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
  1. A.Empty interface
  2. B.Interface
  3. C.Type switch
  4. D.Type assertion

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Interface — the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
  2. B.Interface — a type defined purely by a set of method signatures that any value implementing them can satisfy
  3. C.Interface — the any alias that places no method requirements and can therefore hold a value of every type
  4. 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
  1. A.the x.(T) expression that extracts the underlying concrete value from an interface, optionally returning an ok boolean
  2. B.the any alias that places no method requirements and can therefore hold a value of every type
  3. C.a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
  4. 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
  1. A.Empty interface
  2. B.Type switch
  3. C.Nil interface trap
  4. D.Interface

Answer + AI explanation with Pro

6. Which statement is correct?

Junior
  1. A.Empty interface — the any alias that places no method requirements and can therefore hold a value of every type
  2. B.Empty interface — a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
  3. C.Empty interface — a type defined purely by a set of method signatures that any value implementing them can satisfy
  4. 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
  1. A.a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
  2. B.the x.(T) expression that extracts the underlying concrete value from an interface, optionally returning an ok boolean
  3. C.the any alias that places no method requirements and can therefore hold a value of every type
  4. 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
  1. A.Empty interface
  2. B.Type switch
  3. C.Interface
  4. D.Type assertion

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.Type assertion — a type defined purely by a set of method signatures that any value implementing them can satisfy
  2. B.Type assertion — a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
  3. C.Type assertion — the x.(T) expression that extracts the underlying concrete value from an interface, optionally returning an ok boolean
  4. 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
  1. A.the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
  2. B.a type defined purely by a set of method signatures that any value implementing them can satisfy
  3. C.a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
  4. 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
  1. A.Type switch
  2. B.Empty interface
  3. C.Interface
  4. D.Type assertion

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.Type switch — the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
  2. B.Type switch — a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
  3. C.Type switch — the any alias that places no method requirements and can therefore hold a value of every type
  4. 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
  1. A.a type defined purely by a set of method signatures that any value implementing them can satisfy
  2. B.the any alias that places no method requirements and can therefore hold a value of every type
  3. C.the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
  4. 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
  1. A.Type switch
  2. B.Nil interface trap
  3. C.Empty interface
  4. D.Type assertion

Answer + AI explanation with Pro

15. Which statement is correct?

Senior
  1. A.Nil interface trap — a type defined purely by a set of method signatures that any value implementing them can satisfy
  2. B.Nil interface trap — a switch statement on x.(type) used to branch on the dynamic concrete type stored inside an interface value
  3. C.Nil interface trap — the gotcha where an interface holding a nil pointer is itself non-nil because it still carries type information
  4. 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.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers