15 Types & Structs questions from the Rust 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 section that attaches methods and associated functions to a particular type
B.a custom type aggregating named fields into a single record
C.a type defined as a fixed set of alternative variants, each of which may carry its own data
D.a named type whose fields are positional and unnamed, accessed by numeric index
Answer + AI explanation with Pro
2. Which term means: "a custom type aggregating named fields into a single record"?
Junior
A.Enum
B.Impl block
C.Tuple struct
D.Struct
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Struct — a named type whose fields are positional and unnamed, accessed by numeric index
B.Struct — a section that attaches methods and associated functions to a particular type
C.Struct — a custom type aggregating named fields into a single record
D.Struct — a type defined as a fixed set of alternative variants, each of which may carry its own data
Answer + AI explanation with Pro
4. What is Tuple struct?
Junior
A.a function namespaced to a type that takes no self receiver, commonly used as a constructor such as new
B.a custom type aggregating named fields into a single record
C.a named type whose fields are positional and unnamed, accessed by numeric index
D.a type defined as a fixed set of alternative variants, each of which may carry its own data
Answer + AI explanation with Pro
5. Which term means: "a named type whose fields are positional and unnamed, accessed by numeric index"?
Junior
A.Tuple struct
B.Enum
C.Struct
D.Impl block
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Tuple struct — a function namespaced to a type that takes no self receiver, commonly used as a constructor such as new
B.Tuple struct — a named type whose fields are positional and unnamed, accessed by numeric index
C.Tuple struct — a type defined as a fixed set of alternative variants, each of which may carry its own data
D.Tuple struct — a section that attaches methods and associated functions to a particular type
Answer + AI explanation with Pro
7. What is Enum?
Junior
A.a custom type aggregating named fields into a single record
B.a named type whose fields are positional and unnamed, accessed by numeric index
C.a type defined as a fixed set of alternative variants, each of which may carry its own data
D.a section that attaches methods and associated functions to a particular type
Answer + AI explanation with Pro
8. Which term means: "a type defined as a fixed set of alternative variants, each of which may carry its own data"?
Junior
A.Associated function
B.Enum
C.Tuple struct
D.Impl block
Answer + AI explanation with Pro
9. Which statement is correct?
Junior
A.Enum — a custom type aggregating named fields into a single record
B.Enum — a function namespaced to a type that takes no self receiver, commonly used as a constructor such as new
C.Enum — a type defined as a fixed set of alternative variants, each of which may carry its own data
D.Enum — a section that attaches methods and associated functions to a particular type
Answer + AI explanation with Pro
10. What is Impl block?
Mid
A.a section that attaches methods and associated functions to a particular type
B.a custom type aggregating named fields into a single record
C.a named type whose fields are positional and unnamed, accessed by numeric index
D.a function namespaced to a type that takes no self receiver, commonly used as a constructor such as new
Answer + AI explanation with Pro
11. Which term means: "a section that attaches methods and associated functions to a particular type"?
Mid
A.Struct
B.Enum
C.Impl block
D.Associated function
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Impl block — a section that attaches methods and associated functions to a particular type
B.Impl block — a named type whose fields are positional and unnamed, accessed by numeric index
C.Impl block — a type defined as a fixed set of alternative variants, each of which may carry its own data
D.Impl block — a custom type aggregating named fields into a single record
Answer + AI explanation with Pro
13. What is Associated function?
Mid
A.a named type whose fields are positional and unnamed, accessed by numeric index
B.a section that attaches methods and associated functions to a particular type
C.a type defined as a fixed set of alternative variants, each of which may carry its own data
D.a function namespaced to a type that takes no self receiver, commonly used as a constructor such as new
Answer + AI explanation with Pro
14. Which term means: "a function namespaced to a type that takes no self receiver, commonly used as a constructor such as new"?
Mid
A.Enum
B.Tuple struct
C.Impl block
D.Associated function
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Associated function — a type defined as a fixed set of alternative variants, each of which may carry its own data
B.Associated function — a custom type aggregating named fields into a single record
C.Associated function — a function namespaced to a type that takes no self receiver, commonly used as a constructor such as new
D.Associated function — a section that attaches methods and associated functions to a particular type
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.