Multiple choice technology programming languages

Process of converting a value stored in a variable of one data type to a value of another type is called as?

  1. Data Conversion

  2. Interfacing

  3. Boxing

  4. Casting

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Casting is the process of converting a value from one data type to another. This can be implicit (safe conversion) or explicit (requiring a cast operator). Boxing specifically refers to converting a value type to a reference type, which is a special case of type conversion. Data conversion is a broader term that includes casting.