24 real Core Language & Types questions from the C# 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 Value type?
Junior
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
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"?
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
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
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"?
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
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
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"?
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
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
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
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
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"?
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
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
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"?
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
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
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"?
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
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
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"?
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
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.