Back to Freecodecamp

Branch the Flow of Code Using the switch-case Construct in C#

curriculum/challenges/english/blocks/add-logic-to-c-sharp-console-applications/647e214b8acb466c97ccbee0.md

latest1.3 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-switch-case/" target="_blank" rel="noreferrer">https://learn.microsoft.com/training/modules/csharp-switch-case/</a> and complete all the tasks for the "Branch the Flow of Code Using the switch-case Construct in C#" module. This is required to earn the "Add Logic to 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-switch-case/" target="_blank" rel="noreferrer">Branch the Flow of Code Using the switch-case Construct in C#</a> module on Microsoft Learn. Then, answer the question below.

--questions--

--text--

What is the purpose of the break keyword?

--answers--

The break keyword tells the runtime to continue evaluating other cases in the switch construct.


The break keyword tells the runtime to stop evaluating other cases in the switch construct.


The break keyword tells the runtime to exit the application.

--video-solution--

2