Back to Freecodecamp

Format Alphanumeric Data for Presentation in C#

curriculum/challenges/english/blocks/work-with-variable-data-in-c-sharp-console-applications/647e232c8acb466c97ccbefc.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-format-strings/" target="_blank" rel="noreferrer">https://learn.microsoft.com/training/modules/csharp-format-strings/</a> and complete all the tasks for the "Format Alphanumeric Data for Presentation 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-format-strings/" target="_blank" rel="noreferrer">Format Alphanumeric Data for Presentation in C#</a> module on Microsoft Learn. Then, answer the question below.

--questions--

--text--

For the C# code Console.WriteLine("C110".PadLeft(6, '0'));, which is the expected output?

--answers--

C11000


C110000000


00C110

--video-solution--

3