Multiple choice technology programming languages

Which of the following statement/statements is /are true ?

  1. Reference types are stored on stack and value types are stored on heap area.

  2. Boxing allows you to convert value types to reference types.

  3. For boxing, during runtime it creates a temporary reference type box for the object on the heap

  4. Unboxing allows you to convert reference type to value type

Reveal answer Fill a bubble to check yourself
B,C,D Correct answer
Explanation

In C#, boxing converts value types to reference types, and unboxing reverses this. During boxing, the runtime creates a temporary reference type object on the heap to hold the value type. Reference types are stored on the heap, not the stack (option A is wrong), and identifiers can contain numeric characters (option D is wrong).