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.
A.a method binding that operates on the address of the type, allowing the method to mutate the original value
B.a composite type that groups together a fixed set of named fields, each with its own type
C.the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
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
A.Struct tag
B.Pointer receiver
C.Struct
D.Value receiver
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Struct — a composite type that groups together a fixed set of named fields, each with its own type
B.Struct — the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
C.Struct — including a type as an unnamed field so its fields and methods are promoted to the outer composite type
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
A.a composite type that groups together a fixed set of named fields, each with its own type
B.the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
C.a method binding that operates on the address of the type, allowing the method to mutate the original value
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
A.Value receiver
B.Embedding
C.Struct tag
D.Pointer receiver
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.Embedding — the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
B.Embedding — including a type as an unnamed field so its fields and methods are promoted to the outer composite type
C.Embedding — a method binding that operates on a copy of the type, so mutations inside it do not affect the original
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
A.a method binding that operates on a copy of the type, so mutations inside it do not affect the original
B.a composite type that groups together a fixed set of named fields, each with its own type
C.a method binding that operates on the address of the type, allowing the method to mutate the original value
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
A.Value receiver
B.Pointer receiver
C.Struct
D.Struct tag
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Value receiver — the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
B.Value receiver — a method binding that operates on the address of the type, allowing the method to mutate the original value
C.Value receiver — a composite type that groups together a fixed set of named fields, each with its own type
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
A.the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
B.including a type as an unnamed field so its fields and methods are promoted to the outer composite type
C.a method binding that operates on the address of the type, allowing the method to mutate the original value
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
A.Struct
B.Pointer receiver
C.Embedding
D.Value receiver
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Pointer receiver — the backtick-quoted string of metadata after a field, read via reflection by encoders such as JSON marshalers
B.Pointer receiver — a method binding that operates on the address of the type, allowing the method to mutate the original value
C.Pointer receiver — including a type as an unnamed field so its fields and methods are promoted to the outer composite type
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
A.a method binding that operates on a copy of the type, so mutations inside it do not affect the original
B.including a type as an unnamed field so its fields and methods are promoted to the outer composite type
C.a composite type that groups together a fixed set of named fields, each with its own type
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
A.Embedding
B.Struct
C.Struct tag
D.Pointer receiver
Answer + AI explanation with Pro
15. Which statement is correct?
Senior
A.Struct tag — a method binding that operates on a copy of the type, so mutations inside it do not affect the original
B.Struct tag — a composite type that groups together a fixed set of named fields, each with its own type
C.Struct tag — including a type as an unnamed field so its fields and methods are promoted to the outer composite type
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.