Types & Structs interview questions

15 Types & Structs 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 Struct?

Junior
  1. A.a method binding that operates on the address of the type, allowing the method to mutate the original value
  2. B.a composite type that groups together a fixed set of named fields, each with its own type
  3. C.the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
  4. D.including a type as an unnamed field so its fields and methods are promoted to the outer composite type

Answer + AI explanation with Pro

2. Which term means: "a composite type that groups together a fixed set of named fields, each with its own type"?

Junior
  1. A.Struct tag
  2. B.Pointer receiver
  3. C.Struct
  4. D.Value receiver

Answer + AI explanation with Pro

3. Which statement is correct?

Junior
  1. A.Struct — a composite type that groups together a fixed set of named fields, each with its own type
  2. B.Struct — the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
  3. C.Struct — including a type as an unnamed field so its fields and methods are promoted to the outer composite type
  4. D.Struct — a method binding that operates on the address of the type, allowing the method to mutate the original value

Answer + AI explanation with Pro

4. What is Embedding?

Mid
  1. A.a composite type that groups together a fixed set of named fields, each with its own type
  2. B.the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
  3. C.a method binding that operates on the address of the type, allowing the method to mutate the original value
  4. D.including a type as an unnamed field so its fields and methods are promoted to the outer composite type

Answer + AI explanation with Pro

5. Which term means: "including a type as an unnamed field so its fields and methods are promoted to the outer composite type"?

Mid
  1. A.Value receiver
  2. B.Embedding
  3. C.Struct tag
  4. D.Pointer receiver

Answer + AI explanation with Pro

6. Which statement is correct?

Mid
  1. A.Embedding — the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
  2. B.Embedding — including a type as an unnamed field so its fields and methods are promoted to the outer composite type
  3. C.Embedding — a method binding that operates on a copy of the type, so mutations inside it do not affect the original
  4. D.Embedding — a composite type that groups together a fixed set of named fields, each with its own type

Answer + AI explanation with Pro

7. What is Value receiver?

Mid
  1. A.a method binding that operates on a copy of the type, so mutations inside it do not affect the original
  2. B.a composite type that groups together a fixed set of named fields, each with its own type
  3. C.a method binding that operates on the address of the type, allowing the method to mutate the original value
  4. D.including a type as an unnamed field so its fields and methods are promoted to the outer composite type

Answer + AI explanation with Pro

8. Which term means: "a method binding that operates on a copy of the type, so mutations inside it do not affect the original"?

Mid
  1. A.Value receiver
  2. B.Pointer receiver
  3. C.Struct
  4. D.Struct tag

Answer + AI explanation with Pro

9. Which statement is correct?

Mid
  1. A.Value receiver — the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
  2. B.Value receiver — a method binding that operates on the address of the type, allowing the method to mutate the original value
  3. C.Value receiver — a composite type that groups together a fixed set of named fields, each with its own type
  4. D.Value receiver — a method binding that operates on a copy of the type, so mutations inside it do not affect the original

Answer + AI explanation with Pro

10. What is Pointer receiver?

Mid
  1. A.the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
  2. B.including a type as an unnamed field so its fields and methods are promoted to the outer composite type
  3. C.a method binding that operates on the address of the type, allowing the method to mutate the original value
  4. D.a composite type that groups together a fixed set of named fields, each with its own type

Answer + AI explanation with Pro

11. Which term means: "a method binding that operates on the address of the type, allowing the method to mutate the original value"?

Mid
  1. A.Struct
  2. B.Pointer receiver
  3. C.Embedding
  4. D.Value receiver

Answer + AI explanation with Pro

12. Which statement is correct?

Mid
  1. A.Pointer receiver — the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
  2. B.Pointer receiver — a method binding that operates on the address of the type, allowing the method to mutate the original value
  3. C.Pointer receiver — including a type as an unnamed field so its fields and methods are promoted to the outer composite type
  4. D.Pointer receiver — a method binding that operates on a copy of the type, so mutations inside it do not affect the original

Answer + AI explanation with Pro

13. What is Struct tag?

Senior
  1. A.a method binding that operates on a copy of the type, so mutations inside it do not affect the original
  2. B.including a type as an unnamed field so its fields and methods are promoted to the outer composite type
  3. C.a composite type that groups together a fixed set of named fields, each with its own type
  4. D.the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers

Answer + AI explanation with Pro

14. Which term means: "the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers"?

Senior
  1. A.Embedding
  2. B.Struct
  3. C.Struct tag
  4. D.Pointer receiver

Answer + AI explanation with Pro

15. Which statement is correct?

Senior
  1. A.Struct tag — a method binding that operates on a copy of the type, so mutations inside it do not affect the original
  2. B.Struct tag — a composite type that groups together a fixed set of named fields, each with its own type
  3. C.Struct tag — including a type as an unnamed field so its fields and methods are promoted to the outer composite type
  4. D.Struct tag — the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers

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 Types & Structs 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