Files
wehub-resource-sync dde272c4b8
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 11:55:53 +08:00

1.3 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
647e23828acb466c97ccbf03 Perform Basic String Formatting in C# 19 perform-basic-string-formatting-in-c-sharp

--description--

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

  1. Go to https://learn.microsoft.com/training/modules/csharp-basic-formatting/ and complete all the tasks for the "Perform Basic String Formatting 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 Perform Basic String Formatting in C# module on Microsoft Learn. Then, answer the question below.

--questions--

--text--

Which of the following lines of code correctly uses string interpolation assuming that the variable value is a string?

--answers--

Console.WriteLine(@"My value: {value}");


Console.WriteLine($"My value: {value}");


Console.WriteLine(@"My value: [value]");

--video-solution--

2