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

40 lines
1.9 KiB
Markdown

---
id: 647e22958acb466c97ccbef4
title: 'Guided Project - Debug and Handle Exceptions in a C# Console Application Using Visual Studio Code'
challengeType: 19
dashedName: 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 <a href="https://learn.microsoft.com/training/modules/guided-project-debug-handle-exceptions-c-sharp-console-application/" target="_blank" rel="noreferrer">https://learn.microsoft.com/training/modules/guided-project-debug-handle-exceptions-c-sharp-console-application/</a> 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.
1. When you are finished, come back and correctly answer the question below.
# --assignment--
Complete the <a href="https://learn.microsoft.com/training/modules/guided-project-debug-handle-exceptions-c-sharp-console-application/" target="_blank" rel="noreferrer">Debug and Handle Exceptions in a C# Console Application Using Visual Studio Code</a> 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