---
id: 647e21658acb466c97ccbee2
title: 'Control Variable Scope and Logic Using Code Blocks in C#'
challengeType: 19
dashedName: control-variable-scope-and-logic-using-code-blocks-in-c-sharp
---

# --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/csharp-code-blocks/" target="_blank">https://learn.microsoft.com/en-us/training/modules/csharp-code-blocks/</a> and complete all the tasks for the "Control Variable Scope and Logic Using Code Blocks in C#" module. This is required to earn the "Add Logic to C# Console Applications" trophy.
1. When you are finished, come back and correctly answer the question below.

# --question--

## --text--

Which of the following describes the affect of a `using` statement?

## --answers--

Affects only the first code block in the code file.

---

Affects only the current code block in the code file.

---

Affects all of the code in the code file.

## --video-solution--

3
