Back to Freecodecamp

Store and Retrieve Data Using Literal and Variable Values in C#

curriculum/challenges/english/blocks/write-your-first-code-using-c-sharp/647e238f8acb466c97ccbf04.md

latest1.1 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-literals-variables/" target="_blank" rel="noreferrer">https://learn.microsoft.com/training/modules/csharp-literals-variables/</a> and complete all the tasks for the "Store and Retrieve Data Using Literal and Variable Values in C#" module. This is required to earn the "Write Your First Code Using C#" 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-literals-variables/" target="_blank" rel="noreferrer">Store and Retrieve Data Using Literal and Variable Values in C#</a> module on Microsoft Learn. Then, answer the question below.

--questions--

--text--

Which of the following lines of code creates a variable correctly?

--answers--

int x = 12.3m;


decimal x = 12.3m;


bool x = 'False';

--video-solution--

2