Back to Freecodecamp

Convert Data Types Using Casting and Conversion Techniques in C#

curriculum/challenges/english/blocks/work-with-variable-data-in-c-sharp-console-applications/647e23248acb466c97ccbefb.md

latest1.2 KB
Original Source

--description--

This challenge will be partially completed on the Microsoft Learn platform. Follow these instructions to complete the challenge:

  1. Go to <a href="https://learn.microsoft.com/training/modules/csharp-convert-cast/" target="_blank" rel="noreferrer">https://learn.microsoft.com/training/modules/csharp-convert-cast/</a> and complete all the tasks for the "Convert Data Types Using Casting and Conversion Techniques in C#" module. This is required to earn the "Work with Variable Data in C# Console Applications" trophy on Microsoft Learn, and qualify for the certification exam.
  2. When you are finished, come back and correctly answer the question below.

--assignment--

Complete the <a href="https://learn.microsoft.com/training/modules/csharp-convert-cast/" target="_blank" rel="noreferrer">Convert Data Types Using Casting and Conversion Techniques in C#</a> module on Microsoft Learn. Then, answer the question below.

--questions--

--text--

What type of action is being performed when changing a float into an int?

--answers--

A narrowing conversion.


A widening conversion.


An illegal conversion.

--video-solution--

1