---
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 Microsoft's learn platform. Follow these instructions to complete the challenge:

1. Go to <a href="https://learn.microsoft.com/en-us/training/modules/guided-project-debug-handle-exceptions-c-sharp-console-application/" target="_blank">https://learn.microsoft.com/en-us/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.
1. When you are finished, come back and correctly 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
