24 Core Language & Types questions from the C# 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 type whose instances hold their data directly and are copied wholesale on assignment, typically living on the stack or inline within a containing object
B.a wrapper, written with a trailing question mark on a value type, that adds the ability to represent the absence of a value alongside HasValue and Value members
C.the implicit conversion of a value-type instance into an object reference, allocating a heap wrapper and copying the data into it
D.a type whose variables hold a reference to an object on the managed heap, so assignment copies the reference and multiple variables can alias the same instance
Answer + AI explanation with Pro
2. Which term means: "a type whose instances hold their data directly and are copied wholesale on assignment, typically living on the stack or inline within a containing object"?
Junior
A.Value type
B.Unboxing
C.Class
D.Nullable value type
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.Value type — a type whose instances hold their data directly and are copied wholesale on assignment, typically living on the stack or inline within a containing object
B.Value type — a value type, declared with a dedicated keyword, that cannot inherit from another such type, gets copy-by-value semantics, and is well suited to small immutable data
C.Value type — the implicit conversion of a value-type instance into an object reference, allocating a heap wrapper and copying the data into it
D.Value type — a reference type allocated on the heap that supports inheritance, polymorphism, and identity-based aliasing between variables
Answer + AI explanation with Pro
4. What is Reference type?
Junior
A.the explicit conversion of a previously wrapped object reference back to its underlying value type, requiring an exact type match or it throws InvalidCastException
B.a local declaration whose compile-time type is inferred by the compiler from its initializer, written with a contextual keyword instead of an explicit type name
C.a type whose variables hold a reference to an object on the managed heap, so assignment copies the reference and multiple variables can alias the same instance
D.a reference type allocated on the heap that supports inheritance, polymorphism, and identity-based aliasing between variables
Answer + AI explanation with Pro
5. Which term means: "a type whose variables hold a reference to an object on the managed heap, so assignment copies the reference and multiple variables can alias the same instance"?
Junior
A.Nullable value type
B.Reference type
C.Implicitly typed local variable
D.Unboxing
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Reference type — a type whose instances hold their data directly and are copied wholesale on assignment, typically living on the stack or inline within a containing object
B.Reference type — a value type, declared with a dedicated keyword, that cannot inherit from another such type, gets copy-by-value semantics, and is well suited to small immutable data
C.Reference type — the explicit conversion of a previously wrapped object reference back to its underlying value type, requiring an exact type match or it throws InvalidCastException
D.Reference type — a type whose variables hold a reference to an object on the managed heap, so assignment copies the reference and multiple variables can alias the same instance
Answer + AI explanation with Pro
7. What is Struct?
Mid
A.a wrapper, written with a trailing question mark on a value type, that adds the ability to represent the absence of a value alongside HasValue and Value members
B.the implicit conversion of a value-type instance into an object reference, allocating a heap wrapper and copying the data into it
C.a reference type allocated on the heap that supports inheritance, polymorphism, and identity-based aliasing between variables
D.a value type, declared with a dedicated keyword, that cannot inherit from another such type, gets copy-by-value semantics, and is well suited to small immutable data
Answer + AI explanation with Pro
8. Which term means: "a value type, declared with a dedicated keyword, that cannot inherit from another such type, gets copy-by-value semantics, and is well suited to small immutable data"?
Mid
A.Reference type
B.Unboxing
C.Struct
D.Nullable value type
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Struct — a type whose instances hold their data directly and are copied wholesale on assignment, typically living on the stack or inline within a containing object
B.Struct — a value type, declared with a dedicated keyword, that cannot inherit from another such type, gets copy-by-value semantics, and is well suited to small immutable data
C.Struct — a type whose variables hold a reference to an object on the managed heap, so assignment copies the reference and multiple variables can alias the same instance
D.Struct — a wrapper, written with a trailing question mark on a value type, that adds the ability to represent the absence of a value alongside HasValue and Value members
Answer + AI explanation with Pro
10. What is Class?
Junior
A.a local declaration whose compile-time type is inferred by the compiler from its initializer, written with a contextual keyword instead of an explicit type name
B.a reference type allocated on the heap that supports inheritance, polymorphism, and identity-based aliasing between variables
C.a type whose variables hold a reference to an object on the managed heap, so assignment copies the reference and multiple variables can alias the same instance
D.a type whose instances hold their data directly and are copied wholesale on assignment, typically living on the stack or inline within a containing object
Answer + AI explanation with Pro
11. Which term means: "a reference type allocated on the heap that supports inheritance, polymorphism, and identity-based aliasing between variables"?
Junior
A.Nullable value type
B.Value type
C.Implicitly typed local variable
D.Class
Answer + AI explanation with Pro
12. Which statement is correct?
Junior
A.Class — a reference type allocated on the heap that supports inheritance, polymorphism, and identity-based aliasing between variables
B.Class — the implicit conversion of a value-type instance into an object reference, allocating a heap wrapper and copying the data into it
C.Class — the explicit conversion of a previously wrapped object reference back to its underlying value type, requiring an exact type match or it throws InvalidCastException
D.Class — a value type, declared with a dedicated keyword, that cannot inherit from another such type, gets copy-by-value semantics, and is well suited to small immutable data
Answer + AI explanation with Pro
13. What is Boxing?
Mid
A.a wrapper, written with a trailing question mark on a value type, that adds the ability to represent the absence of a value alongside HasValue and Value members
B.the explicit conversion of a previously wrapped object reference back to its underlying value type, requiring an exact type match or it throws InvalidCastException
C.a type whose variables hold a reference to an object on the managed heap, so assignment copies the reference and multiple variables can alias the same instance
D.the implicit conversion of a value-type instance into an object reference, allocating a heap wrapper and copying the data into it
Answer + AI explanation with Pro
14. Which term means: "the implicit conversion of a value-type instance into an object reference, allocating a heap wrapper and copying the data into it"?
Mid
A.Nullable value type
B.Boxing
C.Reference type
D.Implicitly typed local variable
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Boxing — a value type, declared with a dedicated keyword, that cannot inherit from another such type, gets copy-by-value semantics, and is well suited to small immutable data
B.Boxing — the implicit conversion of a value-type instance into an object reference, allocating a heap wrapper and copying the data into it
C.Boxing — a reference type allocated on the heap that supports inheritance, polymorphism, and identity-based aliasing between variables
D.Boxing — a wrapper, written with a trailing question mark on a value type, that adds the ability to represent the absence of a value alongside HasValue and Value members
Answer + AI explanation with Pro
16. What is Unboxing?
Mid
A.a reference type allocated on the heap that supports inheritance, polymorphism, and identity-based aliasing between variables
B.a local declaration whose compile-time type is inferred by the compiler from its initializer, written with a contextual keyword instead of an explicit type name
C.a type whose instances hold their data directly and are copied wholesale on assignment, typically living on the stack or inline within a containing object
D.the explicit conversion of a previously wrapped object reference back to its underlying value type, requiring an exact type match or it throws InvalidCastException
Answer + AI explanation with Pro
17. Which term means: "the explicit conversion of a previously wrapped object reference back to its underlying value type, requiring an exact type match or it throws InvalidCastException"?
Mid
A.Class
B.Reference type
C.Unboxing
D.Implicitly typed local variable
Answer + AI explanation with Pro
18. Which statement is correct?
Mid
A.Unboxing — a reference type allocated on the heap that supports inheritance, polymorphism, and identity-based aliasing between variables
B.Unboxing — the explicit conversion of a previously wrapped object reference back to its underlying value type, requiring an exact type match or it throws InvalidCastException
C.Unboxing — a type whose variables hold a reference to an object on the managed heap, so assignment copies the reference and multiple variables can alias the same instance
D.Unboxing — a local declaration whose compile-time type is inferred by the compiler from its initializer, written with a contextual keyword instead of an explicit type name
Answer + AI explanation with Pro
19. What is Nullable value type?
Mid
A.a wrapper, written with a trailing question mark on a value type, that adds the ability to represent the absence of a value alongside HasValue and Value members
B.a value type, declared with a dedicated keyword, that cannot inherit from another such type, gets copy-by-value semantics, and is well suited to small immutable data
C.a reference type allocated on the heap that supports inheritance, polymorphism, and identity-based aliasing between variables
D.the implicit conversion of a value-type instance into an object reference, allocating a heap wrapper and copying the data into it
Answer + AI explanation with Pro
20. Which term means: "a wrapper, written with a trailing question mark on a value type, that adds the ability to represent the absence of a value alongside HasValue and Value members"?
Mid
A.Struct
B.Unboxing
C.Reference type
D.Nullable value type
Answer + AI explanation with Pro
21. Which statement is correct?
Mid
A.Nullable value type — the explicit conversion of a previously wrapped object reference back to its underlying value type, requiring an exact type match or it throws InvalidCastException
B.Nullable value type — a type whose instances hold their data directly and are copied wholesale on assignment, typically living on the stack or inline within a containing object
C.Nullable value type — a wrapper, written with a trailing question mark on a value type, that adds the ability to represent the absence of a value alongside HasValue and Value members
D.Nullable value type — a reference type allocated on the heap that supports inheritance, polymorphism, and identity-based aliasing between variables
Answer + AI explanation with Pro
22. What is Implicitly typed local variable?
Junior
A.a reference type allocated on the heap that supports inheritance, polymorphism, and identity-based aliasing between variables
B.a local declaration whose compile-time type is inferred by the compiler from its initializer, written with a contextual keyword instead of an explicit type name
C.the explicit conversion of a previously wrapped object reference back to its underlying value type, requiring an exact type match or it throws InvalidCastException
D.a wrapper, written with a trailing question mark on a value type, that adds the ability to represent the absence of a value alongside HasValue and Value members
Answer + AI explanation with Pro
23. Which term means: "a local declaration whose compile-time type is inferred by the compiler from its initializer, written with a contextual keyword instead of an explicit type name"?
Junior
A.Unboxing
B.Implicitly typed local variable
C.Value type
D.Class
Answer + AI explanation with Pro
24. Which statement is correct?
Junior
A.Implicitly typed local variable — a local declaration whose compile-time type is inferred by the compiler from its initializer, written with a contextual keyword instead of an explicit type name
B.Implicitly typed local variable — a value type, declared with a dedicated keyword, that cannot inherit from another such type, gets copy-by-value semantics, and is well suited to small immutable data
C.Implicitly typed local variable — a type whose instances hold their data directly and are copied wholesale on assignment, typically living on the stack or inline within a containing object
D.Implicitly typed local variable — the explicit conversion of a previously wrapped object reference back to its underlying value type, requiring an exact type match or it throws InvalidCastException
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 Core Language & Types question come with Pro.