Types & Structs interview questions

15 real Types & Structs questions from the Go 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 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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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
Reveal the answer + AI explanation — free account

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