1)

What are the differences between reference type and value type?

1. Value types are stored in heap and reference type is derived from ‘System. ValueType’
2. Value type is derived from ‘System. ValueType’ and reference type is from Heap.
3. Structures, enumerated types derived from ‘System. ValueType’ are created on stack, hence known as ValueType and all ‘classes’ are reference type because values are stored on heap


A) 1, 3

B) 1, 2, 3

C) 2, 3

D) 1

Answer:

Option C