Files
freeCodeCamp/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/guided-project-debug-and-handle-exceptions-in-a-c-sharp-console-application-using-visual-studio-code.md
2023-11-01 16:37:07 +01:00

1.9 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
647e22958acb466c97ccbef4 Guided Project - Debug and Handle Exceptions in a C# Console Application Using Visual Studio Code 19 guided-project-debug-and-handle-exceptions-in-a-c-sharp-console-application-using-visual-studio-code

--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/guided-project-debug-handle-exceptions-c-sharp-console-application/ and complete all the tasks for the "Guided Project - Debug and Handle Exceptions in a C# Console Application Using Visual Studio Code" module. This is required to earn the "Debug 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 Debug and Handle Exceptions in a C# Console Application Using Visual Studio Code guided project on Microsoft Learn. Then, answer the question below.

--question--

--text--

When is an ArgumentOutOfRangeException exception thrown?

--answers--

An ArgumentOutOfRangeException exception is thrown when an attempt is made to index an array outside the bounds of the array.


An ArgumentOutOfRangeException exception is thrown when the value of an argument is outside the allowable range of values as defined by the method.


An ArgumentOutOfRangeException exception is thrown when an attempt is made to store a value of one type in an array of another type.

--video-solution--

2