Back to Freecodecamp

Create C# Methods that Return Values

curriculum/challenges/english/blocks/create-methods-in-c-sharp-console-applications/647e223c8acb466c97ccbeee.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/create-c-sharp-methods-return-values/" target="_blank" rel="noreferrer">https://learn.microsoft.com/training/modules/create-c-sharp-methods-return-values/</a> and complete all the tasks for the "Create C# Methods that Return Values" module. This is required to earn the "Create Methods 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/create-c-sharp-methods-return-values/" target="_blank" rel="noreferrer">Create C# Methods that Return Values</a> module on Microsoft Learn. Then, answer the question below.

--questions--

--text--

Which of the following options correctly returns a string value?

--answers--

return "";


return 'a';


return 5;

--video-solution--

1