---
id: 647e22a08acb466c97ccbef5
title: 'Implement Exception Handling in C# Console Applications'
challengeType: 19
dashedName: implement-exception-handling-in-c-sharp-console-applications
---

# --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/implement-exception-handling-c-sharp/" target="_blank">https://learn.microsoft.com/en-us/training/modules/implement-exception-handling-c-sharp/</a> and complete all the tasks for the "Implement Exception Handling in C# Console Applications" 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 `ArrayTypeMismatchException` exception thrown?

## --answers--

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

---

An `ArrayTypeMismatchException` exception is thrown when attempting to access a member on a type whose value is null.

---

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

## --video-solution--

1
