diff --git a/curriculum/challenges/arabic/03-front-end-development-libraries/react/introducing-inline-styles.md b/curriculum/challenges/arabic/03-front-end-development-libraries/react/introducing-inline-styles.md index 853e1d4ea61..ddbd238130e 100644 --- a/curriculum/challenges/arabic/03-front-end-development-libraries/react/introducing-inline-styles.md +++ b/curriculum/challenges/arabic/03-front-end-development-libraries/react/introducing-inline-styles.md @@ -30,7 +30,7 @@ dashedName: introducing-inline-styles أضف خاصية `style` إلى `div` في محرر التعليمات البرمجية لإعطاء النص لون أحمر (red) وحجم خط يبلغ `72px`. -لاحظ أنه يمكنك اختياريا تعيين حجم الخط ليكون رقما، حذف وحدات `px`، أو كتابتها مثل `72px`. +Note that you can optionally set the font size to be a number, omitting the units `px`, or write it as `"72px"`. # --hints-- يجب أن يكون المكون عنصر `div`. diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md index 6d931df8429..376d4e9725a 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to iterate through an array of items to find one that matches a certain criteria. Which is the best iteration statement for this purpose? ## --answers-- -A +`foreach` --- -B +`for` --- -C - ---- - -D - ---- - -E +`while` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md index ac7f7d0fda9..447f1269b0f 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of the `break` keyword? ## --answers-- -A +The `break` keyword tells the runtime to continue evaluating other cases in the `switch` construct. --- -B +The `break` keyword tells the runtime to stop evaluating other cases in the `switch` construct. --- -C - ---- - -D - ---- - -E +The `break` keyword tells the runtime to exit the application. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md index 4041cdae752..113287cb526 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to create an iteration statement. Under what condition is a `while` statement a better choice than a `do` statement? ## --answers-- -A +When the expression values evaluated by the iteration statement are unknown prior to the iteration code block. --- -B +When the expression values evaluated by the iteration statement are known prior to the iteration code block. --- -C - ---- - -D - ---- - -E +When the developer creates nested `do` or `while` loops. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md index a12724520f7..bbc9278d006 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following describes the affect of a `using` statement? ## --answers-- -A +Affects only the first code block in the code file. --- -B +Affects only the current code block in the code file. --- -C - ---- - -D - ---- - -E +Affects all of the code in the code file. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md index 4c5ac4ee24c..e67d4aca2b4 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code is a valid use of the conditional operator? ## --answers-- -A +`int value = amount >= 10? 10: 20;` --- -B +`int value = amount >= 10: 10? 20;` --- -C - ---- - -D - ---- - -E +`int value = amount >= 10? 10| 20;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md index b64e24bd5bb..7010ecea866 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is it appropriate to use a `switch-case` construct rather than a `if-elseif-else` construct? ## --answers-- -A +A `switch-case` construct is appropriate when more than 2-3 `else if` code blocks are required. --- -B +A `switch-case` construct is appropriate when the number of `case` patterns is small. --- -C +A `switch-case` construct is appropriate when the selection statement is inside a loop. ---- - -D - ---- - -E ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md index 19f195bfec2..96748c33695 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following `for` statements is correct? ## --answers-- -A +`for (int x = 20: x < 80: x++)` --- -B +`for (int j = 0; j == 80; j + 1)` --- -C - ---- - -D - ---- - -E +`for (int counter = 20; counter < 80; counter++)` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md index 8461147396f..af2e262ec68 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the choices below is not a valid operator in C#? ## --answers-- -A +`%%` --- -B +`&&` --- -C - ---- - -D - ---- - -E +`||` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md index 4f0c1ac0764..4c251639fb3 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is an object? ## --answers-- -A +A memory address. --- -B +A stateless class. --- -C - ---- - -D - ---- - -E +An instance of a class. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 9ad399d706b..3a17a7eed28 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer is working with two other developers to update a collection of applications. The developers will use code comments during the update process. Which of the following describes an appropriate use of code comments? ## --answers-- -A +When updates are made, the developers use line and block comments to identify each individual code update. --- -B +When updates are made, the developers leave all existing code comments intact. New comments are added to indicate when old comments no longer apply. --- -C - ---- - -D - ---- - -E +When updates are made, the developers summarize changes using block comments. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md index 8d1b02b3939..8e40b4c5df8 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following is a bad reason to use a code comment? ## --answers-- -A +To describe the high-level intent of the code. --- -B +To temporarily comment out a line of code while evaluating a feature in a different way. --- -C - ---- - -D - ---- - -E +To explain how a new C# keyword works. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 8a5e109a717..b9f4f9a7d59 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer writes an application that uses a `foreach` loop to iterate through an array containing 20 elements. After the application is complete, the developer learns that the array must be updated to include 40 elements. The application needs to examine all 40 array elements. Which of the following items describes the required code update? ## --answers-- -A +Create a second `foreach` loop that iterates through the additional items. --- -B +No changes are required to the `foreach` loop. --- -C - ---- - -D - ---- - -E +Place the original `foreach` loop inside the code block of a second `foreach` loop that iterates twice. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md index 15109e52e38..8de7fffca20 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following choices provides the best description of an Integrated Development Environment (IDE)? ## --answers-- -A +Visual Studio Code is an Integrated Development Environment. --- -B +An Integrated Development Environment is tool that makes it easier to write code. --- -C - ---- - -D - ---- - -E +An IDE is a suite of tools that supports the full software development lifecycle. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md index cb37d1e585a..1e1c1d7d48e 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following foreach statements is syntactically correct? ## --answers-- -A +`foreach (int value of values)` --- -B +`foreach (int value with values)` --- -C +`foreach (int value in values)` ---- - -D - ---- - -E ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md index bad15aec6c9..615be34010e 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer wants to create a method that returns a value in an array. Which of the following options would be a good choice for a method signature? ## --answers-- -A +`string GetValueAtIndex(string[] array, int index)` --- -B +`bool GetValueAtIndex(string[] array, int index)` --- -C - ---- - -D - ---- - -E +`int GetValueAtIndex(int index)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md index e358f171e11..4d272be5f91 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options correctly returns a `string` value? ## --answers-- -A +`return "";` --- -B +`return 'a';` --- -C - ---- - -D - ---- - -E +`return 5;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md index e35ee6ebf0e..e7a5b53ef84 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Given the method signature, `void Print(string name, string number = "", bool member = false)`, which of the following options correctly uses named and optional arguments? ## --answers-- -A +`Print("Tony", member: true);` --- -B +`Print(number: "555", member: false)` --- -C - ---- - -D - ---- - -E +`Print("Tony", false)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md index 72f335df163..29c9b5de27f 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md @@ -16,29 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of defining an optional parameter in a method? ## --answers-- -A +To cause a method to perform a different task. --- -B +To overload a method. --- -C - ---- - -D - ---- - -E +To simplify the required parameters when a parameter isn't significant to the result. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md index 79768c58db3..a3c6bd2fb43 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following correctly declares a method? ## --answers-- -A +`DisplayNumbers();` --- -B +`void DisplayNumbers{};` --- -C - ---- - -D - ---- - -E +`void DisplayNumbers() { }` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md index 36bc1153d8a..8bc70a1afb7 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options can be used set a breakpoint in Visual Studio Code? ## --answers-- -A +Left-click in the column to the left of a line number in the code editor. Correct. A breakpoint can be set by positioning the mouse pointer in the column to the left of a line number and then left-clicking. --- -B +Select Toggle Breakpoint on the Edit menu. --- -C - ---- - -D - ---- - -E +Right-click in the middle of a line of code, and then select Toggle Breakpoint. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md index f7c2bd80f6c..fca77377f58 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When should a method throw an exception? ## --answers-- -A +A method should throw an exception when the method can complete its intended purpose. --- -B +A method should throw an exception when the method can't complete its intended purpose. --- -C - ---- - -D - ---- - -E +A method should throw an exception when an exception type matches the intended purpose of the method. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/arabic/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 b/curriculum/challenges/arabic/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 index de7ead91e1a..21cbf8fbc0c 100644 --- a/curriculum/challenges/arabic/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 +++ b/curriculum/challenges/arabic/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 @@ -16,28 +16,16 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArgumentOutOfRangeException` exception thrown? ## --answers-- -A +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. -B - ---- - -C - ---- - -D - ---- - -E +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-- -4 +2 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md index bafbea0109a..9b7fa2379a5 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArrayTypeMismatchException` exception thrown? ## --answers-- -A +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to store a value of one type in an array of another type. --- -B +An `ArrayTypeMismatchException` exception is thrown when attempting to access a member on a type whose value is null. --- -C - ---- - -D - ---- - -E +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to index an array outside the bounds of the array. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md index d4a7379f578..94bd7e29624 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which section of the RUN AND DEBUG view is used to track the current point of execution within the running application? ## --answers-- -A +The VARIABLES section. --- -B +The CALL STACK section. --- -C - ---- - -D - ---- - -E +The WATCH section. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md index cabc3e7c7c7..f5cb371e48b 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the relationship between the type of exception and the information it contains? ## --answers-- -A +The type of exception determines the information it contains. --- -B +The type of exception and the information it contains are unrelated. --- -C - ---- - -D - ---- - -E +The information contained in an exception determines the type of exception. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md index 16eebc36ba9..3335e54f834 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +To sort a string array, why is it be important to use the `String.Trim()` method on each array element before sorting? ## --answers-- -A +Only string arrays with elements trimmed with `String.Trim()` can sort --- -B +`String.Trim()` removes leading white space that would sort before numbers and letters. --- -C - ---- - -D - ---- - -E +The array sort is noticeably faster using `String.Trim()` on each element. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md index c851b57cf57..8d715dd3fb6 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A piece of code must store whole numeric values between negative and positive `1,000,000`. Which data type should you choose? ## --answers-- -A +float --- -B +double --- -C - ---- - -D - ---- - -E +int ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md index 03bba10b761..10a0098944b 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What type of action is being performed when changing a `float` into an `int`? ## --answers-- -A +A narrowing conversion. --- -B +A widening conversion. --- -C - ---- - -D - ---- - -E +An illegal conversion. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md index 91df983720c..5514c317320 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the C# code `Console.WriteLine("C110".PadLeft(6, '0'));`, which is the expected output? ## --answers-- -A +`C11000` --- -B +`C110000000` --- -C - ---- - -D - ---- - -E +`00C110` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md index 4b1775fdb0a..515199832a2 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the code `decimal.TryParse(numberString, out myConvert))` when the type of `numberString` is a String. Which best describes the value type for `myConvert` when the `TryParse()` is successful? ## --answers-- -A +A string representing numeric digits. --- -B +A Boolean value. --- -C - ---- - -D - ---- - -E +A decimal ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md index 9c21fc6b655..0373b33abc7 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method finds the next index of either the `-` char, the `=` char, or the `_` char? ## --answers-- -A +`IndexOfAny()` --- -B +`Remove()` --- -C - ---- - -D - ---- - -E +`IndexOf()` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md index 3e95f452201..f117e7ee2e5 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method changes the order of items in an `string` array? ## --answers-- -A +`myArray.Resize()` --- -B +`myArray.Clear()` --- -C - ---- - -D - ---- - -E +`Array.Sort()` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md index 0b8a90caa77..de2cf0636e2 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is wrong with the following code? `int sophiaSum; Console.WriteLine("Sophia: " + sophiaSum);` ## --answers-- -A +`sophiaSum` is not initialized before use --- -B +`sophiaSum` is not implicitly typed to a string --- -C - ---- - -D - ---- - -E +`sophiaSum` should use the var keyword ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md index 7ce788fdbf9..e60bdbdee43 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Suppose `decimal gradePointAverage = 3.99872831;`. What is the value of `(int) gradePointAverage`? ## --answers-- -A +3.99 --- -B +4 --- -C - ---- - -D - ---- - -E +3 ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md index b2648681c40..ad414c61f37 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the value of the following result? `int result = 3 + 1 * 5 / 2;` ## --answers-- -A +10 --- -B +5 --- -C +6 --- -D - ---- - -E +5.5 ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md index 719992ac231..77b499bbe1c 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code correctly uses string interpolation assuming that the variable `value` is a string? ## --answers-- -A +'`Console.WriteLine(@"My value: {value}");'`' --- -B +'`Console.WriteLine($"My value: {value}");`' --- -C - ---- - -D - ---- - -E +'`Console.WriteLine(@"My value: [value]");`' ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md index c3e7bda42b3..a61a39ad190 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code creates a variable correctly? ## --answers-- -A +`int x = 12.3m;` --- -B +`decimal x = 12.3m;` --- -C - ---- - -D - ---- - -E +`bool x = 'False';` ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md index 42c2aa4d689..bc5f85082fb 100644 --- a/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md +++ b/curriculum/challenges/arabic/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the difference between `Console.Write` and `Console.WriteLine`? ## --answers-- -A +`Console.Write` prints the output on a new line. --- -B +`Console.WriteLine` prints the output on a new line. --- -C +`Console.WriteLine` appends a new line after the output. --- -D - ---- - -E +There is no difference. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/03-front-end-development-libraries/react/introducing-inline-styles.md b/curriculum/challenges/chinese-traditional/03-front-end-development-libraries/react/introducing-inline-styles.md index 9964978d593..7215c885b1b 100644 --- a/curriculum/challenges/chinese-traditional/03-front-end-development-libraries/react/introducing-inline-styles.md +++ b/curriculum/challenges/chinese-traditional/03-front-end-development-libraries/react/introducing-inline-styles.md @@ -30,7 +30,7 @@ JSX 元素使用 `style` 屬性,但是鑑於 JSX 的編譯方式,不能將 在代碼編輯器中給 `div` 添加一個 `style` 屬性,將文本顏色設置爲紅色,字體大小設置爲 `72px`。 -請注意,可以選擇將字體大小設置爲數字,省略單位 `px`,或者將其寫爲 `72px`。 +Note that you can optionally set the font size to be a number, omitting the units `px`, or write it as `"72px"`. # --hints-- 組件應該渲染一個 `div` 元素。 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md index 6d931df8429..376d4e9725a 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to iterate through an array of items to find one that matches a certain criteria. Which is the best iteration statement for this purpose? ## --answers-- -A +`foreach` --- -B +`for` --- -C - ---- - -D - ---- - -E +`while` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md index ac7f7d0fda9..447f1269b0f 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of the `break` keyword? ## --answers-- -A +The `break` keyword tells the runtime to continue evaluating other cases in the `switch` construct. --- -B +The `break` keyword tells the runtime to stop evaluating other cases in the `switch` construct. --- -C - ---- - -D - ---- - -E +The `break` keyword tells the runtime to exit the application. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md index 4041cdae752..113287cb526 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to create an iteration statement. Under what condition is a `while` statement a better choice than a `do` statement? ## --answers-- -A +When the expression values evaluated by the iteration statement are unknown prior to the iteration code block. --- -B +When the expression values evaluated by the iteration statement are known prior to the iteration code block. --- -C - ---- - -D - ---- - -E +When the developer creates nested `do` or `while` loops. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md index a12724520f7..bbc9278d006 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following describes the affect of a `using` statement? ## --answers-- -A +Affects only the first code block in the code file. --- -B +Affects only the current code block in the code file. --- -C - ---- - -D - ---- - -E +Affects all of the code in the code file. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md index 4c5ac4ee24c..e67d4aca2b4 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code is a valid use of the conditional operator? ## --answers-- -A +`int value = amount >= 10? 10: 20;` --- -B +`int value = amount >= 10: 10? 20;` --- -C - ---- - -D - ---- - -E +`int value = amount >= 10? 10| 20;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md index b64e24bd5bb..7010ecea866 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is it appropriate to use a `switch-case` construct rather than a `if-elseif-else` construct? ## --answers-- -A +A `switch-case` construct is appropriate when more than 2-3 `else if` code blocks are required. --- -B +A `switch-case` construct is appropriate when the number of `case` patterns is small. --- -C +A `switch-case` construct is appropriate when the selection statement is inside a loop. ---- - -D - ---- - -E ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md index 19f195bfec2..96748c33695 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following `for` statements is correct? ## --answers-- -A +`for (int x = 20: x < 80: x++)` --- -B +`for (int j = 0; j == 80; j + 1)` --- -C - ---- - -D - ---- - -E +`for (int counter = 20; counter < 80; counter++)` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md index 8461147396f..af2e262ec68 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the choices below is not a valid operator in C#? ## --answers-- -A +`%%` --- -B +`&&` --- -C - ---- - -D - ---- - -E +`||` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md index 4f0c1ac0764..4c251639fb3 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is an object? ## --answers-- -A +A memory address. --- -B +A stateless class. --- -C - ---- - -D - ---- - -E +An instance of a class. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 9ad399d706b..3a17a7eed28 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer is working with two other developers to update a collection of applications. The developers will use code comments during the update process. Which of the following describes an appropriate use of code comments? ## --answers-- -A +When updates are made, the developers use line and block comments to identify each individual code update. --- -B +When updates are made, the developers leave all existing code comments intact. New comments are added to indicate when old comments no longer apply. --- -C - ---- - -D - ---- - -E +When updates are made, the developers summarize changes using block comments. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md index 8d1b02b3939..8e40b4c5df8 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following is a bad reason to use a code comment? ## --answers-- -A +To describe the high-level intent of the code. --- -B +To temporarily comment out a line of code while evaluating a feature in a different way. --- -C - ---- - -D - ---- - -E +To explain how a new C# keyword works. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 8a5e109a717..b9f4f9a7d59 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer writes an application that uses a `foreach` loop to iterate through an array containing 20 elements. After the application is complete, the developer learns that the array must be updated to include 40 elements. The application needs to examine all 40 array elements. Which of the following items describes the required code update? ## --answers-- -A +Create a second `foreach` loop that iterates through the additional items. --- -B +No changes are required to the `foreach` loop. --- -C - ---- - -D - ---- - -E +Place the original `foreach` loop inside the code block of a second `foreach` loop that iterates twice. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md index 15109e52e38..8de7fffca20 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following choices provides the best description of an Integrated Development Environment (IDE)? ## --answers-- -A +Visual Studio Code is an Integrated Development Environment. --- -B +An Integrated Development Environment is tool that makes it easier to write code. --- -C - ---- - -D - ---- - -E +An IDE is a suite of tools that supports the full software development lifecycle. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md index cb37d1e585a..1e1c1d7d48e 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following foreach statements is syntactically correct? ## --answers-- -A +`foreach (int value of values)` --- -B +`foreach (int value with values)` --- -C +`foreach (int value in values)` ---- - -D - ---- - -E ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md index bad15aec6c9..615be34010e 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer wants to create a method that returns a value in an array. Which of the following options would be a good choice for a method signature? ## --answers-- -A +`string GetValueAtIndex(string[] array, int index)` --- -B +`bool GetValueAtIndex(string[] array, int index)` --- -C - ---- - -D - ---- - -E +`int GetValueAtIndex(int index)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md index e358f171e11..4d272be5f91 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options correctly returns a `string` value? ## --answers-- -A +`return "";` --- -B +`return 'a';` --- -C - ---- - -D - ---- - -E +`return 5;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md index e35ee6ebf0e..e7a5b53ef84 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Given the method signature, `void Print(string name, string number = "", bool member = false)`, which of the following options correctly uses named and optional arguments? ## --answers-- -A +`Print("Tony", member: true);` --- -B +`Print(number: "555", member: false)` --- -C - ---- - -D - ---- - -E +`Print("Tony", false)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md index 72f335df163..29c9b5de27f 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md @@ -16,29 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of defining an optional parameter in a method? ## --answers-- -A +To cause a method to perform a different task. --- -B +To overload a method. --- -C - ---- - -D - ---- - -E +To simplify the required parameters when a parameter isn't significant to the result. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md index 79768c58db3..a3c6bd2fb43 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following correctly declares a method? ## --answers-- -A +`DisplayNumbers();` --- -B +`void DisplayNumbers{};` --- -C - ---- - -D - ---- - -E +`void DisplayNumbers() { }` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md index 36bc1153d8a..8bc70a1afb7 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options can be used set a breakpoint in Visual Studio Code? ## --answers-- -A +Left-click in the column to the left of a line number in the code editor. Correct. A breakpoint can be set by positioning the mouse pointer in the column to the left of a line number and then left-clicking. --- -B +Select Toggle Breakpoint on the Edit menu. --- -C - ---- - -D - ---- - -E +Right-click in the middle of a line of code, and then select Toggle Breakpoint. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md index f7c2bd80f6c..fca77377f58 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When should a method throw an exception? ## --answers-- -A +A method should throw an exception when the method can complete its intended purpose. --- -B +A method should throw an exception when the method can't complete its intended purpose. --- -C - ---- - -D - ---- - -E +A method should throw an exception when an exception type matches the intended purpose of the method. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese-traditional/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 b/curriculum/challenges/chinese-traditional/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 index de7ead91e1a..21cbf8fbc0c 100644 --- a/curriculum/challenges/chinese-traditional/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 +++ b/curriculum/challenges/chinese-traditional/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 @@ -16,28 +16,16 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArgumentOutOfRangeException` exception thrown? ## --answers-- -A +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. -B - ---- - -C - ---- - -D - ---- - -E +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-- -4 +2 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md index bafbea0109a..9b7fa2379a5 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArrayTypeMismatchException` exception thrown? ## --answers-- -A +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to store a value of one type in an array of another type. --- -B +An `ArrayTypeMismatchException` exception is thrown when attempting to access a member on a type whose value is null. --- -C - ---- - -D - ---- - -E +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to index an array outside the bounds of the array. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md index d4a7379f578..94bd7e29624 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which section of the RUN AND DEBUG view is used to track the current point of execution within the running application? ## --answers-- -A +The VARIABLES section. --- -B +The CALL STACK section. --- -C - ---- - -D - ---- - -E +The WATCH section. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md index cabc3e7c7c7..f5cb371e48b 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the relationship between the type of exception and the information it contains? ## --answers-- -A +The type of exception determines the information it contains. --- -B +The type of exception and the information it contains are unrelated. --- -C - ---- - -D - ---- - -E +The information contained in an exception determines the type of exception. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md index 16eebc36ba9..3335e54f834 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +To sort a string array, why is it be important to use the `String.Trim()` method on each array element before sorting? ## --answers-- -A +Only string arrays with elements trimmed with `String.Trim()` can sort --- -B +`String.Trim()` removes leading white space that would sort before numbers and letters. --- -C - ---- - -D - ---- - -E +The array sort is noticeably faster using `String.Trim()` on each element. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md index c851b57cf57..8d715dd3fb6 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A piece of code must store whole numeric values between negative and positive `1,000,000`. Which data type should you choose? ## --answers-- -A +float --- -B +double --- -C - ---- - -D - ---- - -E +int ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md index 03bba10b761..10a0098944b 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What type of action is being performed when changing a `float` into an `int`? ## --answers-- -A +A narrowing conversion. --- -B +A widening conversion. --- -C - ---- - -D - ---- - -E +An illegal conversion. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md index 91df983720c..5514c317320 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the C# code `Console.WriteLine("C110".PadLeft(6, '0'));`, which is the expected output? ## --answers-- -A +`C11000` --- -B +`C110000000` --- -C - ---- - -D - ---- - -E +`00C110` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md index 4b1775fdb0a..515199832a2 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the code `decimal.TryParse(numberString, out myConvert))` when the type of `numberString` is a String. Which best describes the value type for `myConvert` when the `TryParse()` is successful? ## --answers-- -A +A string representing numeric digits. --- -B +A Boolean value. --- -C - ---- - -D - ---- - -E +A decimal ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md index 9c21fc6b655..0373b33abc7 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method finds the next index of either the `-` char, the `=` char, or the `_` char? ## --answers-- -A +`IndexOfAny()` --- -B +`Remove()` --- -C - ---- - -D - ---- - -E +`IndexOf()` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md index 3e95f452201..f117e7ee2e5 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method changes the order of items in an `string` array? ## --answers-- -A +`myArray.Resize()` --- -B +`myArray.Clear()` --- -C - ---- - -D - ---- - -E +`Array.Sort()` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md index 0b8a90caa77..de2cf0636e2 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is wrong with the following code? `int sophiaSum; Console.WriteLine("Sophia: " + sophiaSum);` ## --answers-- -A +`sophiaSum` is not initialized before use --- -B +`sophiaSum` is not implicitly typed to a string --- -C - ---- - -D - ---- - -E +`sophiaSum` should use the var keyword ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md index 7ce788fdbf9..e60bdbdee43 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Suppose `decimal gradePointAverage = 3.99872831;`. What is the value of `(int) gradePointAverage`? ## --answers-- -A +3.99 --- -B +4 --- -C - ---- - -D - ---- - -E +3 ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md index b2648681c40..ad414c61f37 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the value of the following result? `int result = 3 + 1 * 5 / 2;` ## --answers-- -A +10 --- -B +5 --- -C +6 --- -D - ---- - -E +5.5 ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md index 719992ac231..77b499bbe1c 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code correctly uses string interpolation assuming that the variable `value` is a string? ## --answers-- -A +'`Console.WriteLine(@"My value: {value}");'`' --- -B +'`Console.WriteLine($"My value: {value}");`' --- -C - ---- - -D - ---- - -E +'`Console.WriteLine(@"My value: [value]");`' ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md index c3e7bda42b3..a61a39ad190 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code creates a variable correctly? ## --answers-- -A +`int x = 12.3m;` --- -B +`decimal x = 12.3m;` --- -C - ---- - -D - ---- - -E +`bool x = 'False';` ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md index 42c2aa4d689..bc5f85082fb 100644 --- a/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md +++ b/curriculum/challenges/chinese-traditional/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the difference between `Console.Write` and `Console.WriteLine`? ## --answers-- -A +`Console.Write` prints the output on a new line. --- -B +`Console.WriteLine` prints the output on a new line. --- -C +`Console.WriteLine` appends a new line after the output. --- -D - ---- - -E +There is no difference. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/03-front-end-development-libraries/react/introducing-inline-styles.md b/curriculum/challenges/chinese/03-front-end-development-libraries/react/introducing-inline-styles.md index cabf2a91247..17cfd7eea9b 100644 --- a/curriculum/challenges/chinese/03-front-end-development-libraries/react/introducing-inline-styles.md +++ b/curriculum/challenges/chinese/03-front-end-development-libraries/react/introducing-inline-styles.md @@ -30,7 +30,7 @@ JSX 元素使用 `style` 属性,但是鉴于 JSX 的编译方式,不能将 在代码编辑器中给 `div` 添加一个 `style` 属性,将文本颜色设置为红色,字体大小设置为 `72px`。 -请注意,可以选择将字体大小设置为数字,省略单位 `px`,或者将其写为 `72px`。 +Note that you can optionally set the font size to be a number, omitting the units `px`, or write it as `"72px"`. # --hints-- 组件应该渲染一个 `div` 元素。 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md index 6d931df8429..376d4e9725a 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to iterate through an array of items to find one that matches a certain criteria. Which is the best iteration statement for this purpose? ## --answers-- -A +`foreach` --- -B +`for` --- -C - ---- - -D - ---- - -E +`while` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md index ac7f7d0fda9..447f1269b0f 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of the `break` keyword? ## --answers-- -A +The `break` keyword tells the runtime to continue evaluating other cases in the `switch` construct. --- -B +The `break` keyword tells the runtime to stop evaluating other cases in the `switch` construct. --- -C - ---- - -D - ---- - -E +The `break` keyword tells the runtime to exit the application. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md index 4041cdae752..113287cb526 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to create an iteration statement. Under what condition is a `while` statement a better choice than a `do` statement? ## --answers-- -A +When the expression values evaluated by the iteration statement are unknown prior to the iteration code block. --- -B +When the expression values evaluated by the iteration statement are known prior to the iteration code block. --- -C - ---- - -D - ---- - -E +When the developer creates nested `do` or `while` loops. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md index a12724520f7..bbc9278d006 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following describes the affect of a `using` statement? ## --answers-- -A +Affects only the first code block in the code file. --- -B +Affects only the current code block in the code file. --- -C - ---- - -D - ---- - -E +Affects all of the code in the code file. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md index 4c5ac4ee24c..e67d4aca2b4 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code is a valid use of the conditional operator? ## --answers-- -A +`int value = amount >= 10? 10: 20;` --- -B +`int value = amount >= 10: 10? 20;` --- -C - ---- - -D - ---- - -E +`int value = amount >= 10? 10| 20;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md index b64e24bd5bb..7010ecea866 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is it appropriate to use a `switch-case` construct rather than a `if-elseif-else` construct? ## --answers-- -A +A `switch-case` construct is appropriate when more than 2-3 `else if` code blocks are required. --- -B +A `switch-case` construct is appropriate when the number of `case` patterns is small. --- -C +A `switch-case` construct is appropriate when the selection statement is inside a loop. ---- - -D - ---- - -E ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md index 19f195bfec2..96748c33695 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following `for` statements is correct? ## --answers-- -A +`for (int x = 20: x < 80: x++)` --- -B +`for (int j = 0; j == 80; j + 1)` --- -C - ---- - -D - ---- - -E +`for (int counter = 20; counter < 80; counter++)` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md index 8461147396f..af2e262ec68 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the choices below is not a valid operator in C#? ## --answers-- -A +`%%` --- -B +`&&` --- -C - ---- - -D - ---- - -E +`||` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md index 4f0c1ac0764..4c251639fb3 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is an object? ## --answers-- -A +A memory address. --- -B +A stateless class. --- -C - ---- - -D - ---- - -E +An instance of a class. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 9ad399d706b..3a17a7eed28 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer is working with two other developers to update a collection of applications. The developers will use code comments during the update process. Which of the following describes an appropriate use of code comments? ## --answers-- -A +When updates are made, the developers use line and block comments to identify each individual code update. --- -B +When updates are made, the developers leave all existing code comments intact. New comments are added to indicate when old comments no longer apply. --- -C - ---- - -D - ---- - -E +When updates are made, the developers summarize changes using block comments. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md index 8d1b02b3939..8e40b4c5df8 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following is a bad reason to use a code comment? ## --answers-- -A +To describe the high-level intent of the code. --- -B +To temporarily comment out a line of code while evaluating a feature in a different way. --- -C - ---- - -D - ---- - -E +To explain how a new C# keyword works. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 8a5e109a717..b9f4f9a7d59 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer writes an application that uses a `foreach` loop to iterate through an array containing 20 elements. After the application is complete, the developer learns that the array must be updated to include 40 elements. The application needs to examine all 40 array elements. Which of the following items describes the required code update? ## --answers-- -A +Create a second `foreach` loop that iterates through the additional items. --- -B +No changes are required to the `foreach` loop. --- -C - ---- - -D - ---- - -E +Place the original `foreach` loop inside the code block of a second `foreach` loop that iterates twice. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md index 15109e52e38..8de7fffca20 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following choices provides the best description of an Integrated Development Environment (IDE)? ## --answers-- -A +Visual Studio Code is an Integrated Development Environment. --- -B +An Integrated Development Environment is tool that makes it easier to write code. --- -C - ---- - -D - ---- - -E +An IDE is a suite of tools that supports the full software development lifecycle. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md index cb37d1e585a..1e1c1d7d48e 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following foreach statements is syntactically correct? ## --answers-- -A +`foreach (int value of values)` --- -B +`foreach (int value with values)` --- -C +`foreach (int value in values)` ---- - -D - ---- - -E ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md index bad15aec6c9..615be34010e 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer wants to create a method that returns a value in an array. Which of the following options would be a good choice for a method signature? ## --answers-- -A +`string GetValueAtIndex(string[] array, int index)` --- -B +`bool GetValueAtIndex(string[] array, int index)` --- -C - ---- - -D - ---- - -E +`int GetValueAtIndex(int index)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md index e358f171e11..4d272be5f91 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options correctly returns a `string` value? ## --answers-- -A +`return "";` --- -B +`return 'a';` --- -C - ---- - -D - ---- - -E +`return 5;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md index e35ee6ebf0e..e7a5b53ef84 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Given the method signature, `void Print(string name, string number = "", bool member = false)`, which of the following options correctly uses named and optional arguments? ## --answers-- -A +`Print("Tony", member: true);` --- -B +`Print(number: "555", member: false)` --- -C - ---- - -D - ---- - -E +`Print("Tony", false)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md index 72f335df163..29c9b5de27f 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md @@ -16,29 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of defining an optional parameter in a method? ## --answers-- -A +To cause a method to perform a different task. --- -B +To overload a method. --- -C - ---- - -D - ---- - -E +To simplify the required parameters when a parameter isn't significant to the result. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md index 79768c58db3..a3c6bd2fb43 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following correctly declares a method? ## --answers-- -A +`DisplayNumbers();` --- -B +`void DisplayNumbers{};` --- -C - ---- - -D - ---- - -E +`void DisplayNumbers() { }` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md index 36bc1153d8a..8bc70a1afb7 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options can be used set a breakpoint in Visual Studio Code? ## --answers-- -A +Left-click in the column to the left of a line number in the code editor. Correct. A breakpoint can be set by positioning the mouse pointer in the column to the left of a line number and then left-clicking. --- -B +Select Toggle Breakpoint on the Edit menu. --- -C - ---- - -D - ---- - -E +Right-click in the middle of a line of code, and then select Toggle Breakpoint. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md index f7c2bd80f6c..fca77377f58 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When should a method throw an exception? ## --answers-- -A +A method should throw an exception when the method can complete its intended purpose. --- -B +A method should throw an exception when the method can't complete its intended purpose. --- -C - ---- - -D - ---- - -E +A method should throw an exception when an exception type matches the intended purpose of the method. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese/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 b/curriculum/challenges/chinese/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 index de7ead91e1a..21cbf8fbc0c 100644 --- a/curriculum/challenges/chinese/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 +++ b/curriculum/challenges/chinese/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 @@ -16,28 +16,16 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArgumentOutOfRangeException` exception thrown? ## --answers-- -A +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. -B - ---- - -C - ---- - -D - ---- - -E +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-- -4 +2 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md index bafbea0109a..9b7fa2379a5 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArrayTypeMismatchException` exception thrown? ## --answers-- -A +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to store a value of one type in an array of another type. --- -B +An `ArrayTypeMismatchException` exception is thrown when attempting to access a member on a type whose value is null. --- -C - ---- - -D - ---- - -E +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to index an array outside the bounds of the array. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md index d4a7379f578..94bd7e29624 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which section of the RUN AND DEBUG view is used to track the current point of execution within the running application? ## --answers-- -A +The VARIABLES section. --- -B +The CALL STACK section. --- -C - ---- - -D - ---- - -E +The WATCH section. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md index cabc3e7c7c7..f5cb371e48b 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the relationship between the type of exception and the information it contains? ## --answers-- -A +The type of exception determines the information it contains. --- -B +The type of exception and the information it contains are unrelated. --- -C - ---- - -D - ---- - -E +The information contained in an exception determines the type of exception. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md index 16eebc36ba9..3335e54f834 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +To sort a string array, why is it be important to use the `String.Trim()` method on each array element before sorting? ## --answers-- -A +Only string arrays with elements trimmed with `String.Trim()` can sort --- -B +`String.Trim()` removes leading white space that would sort before numbers and letters. --- -C - ---- - -D - ---- - -E +The array sort is noticeably faster using `String.Trim()` on each element. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md index c851b57cf57..8d715dd3fb6 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A piece of code must store whole numeric values between negative and positive `1,000,000`. Which data type should you choose? ## --answers-- -A +float --- -B +double --- -C - ---- - -D - ---- - -E +int ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md index 03bba10b761..10a0098944b 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What type of action is being performed when changing a `float` into an `int`? ## --answers-- -A +A narrowing conversion. --- -B +A widening conversion. --- -C - ---- - -D - ---- - -E +An illegal conversion. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md index 91df983720c..5514c317320 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the C# code `Console.WriteLine("C110".PadLeft(6, '0'));`, which is the expected output? ## --answers-- -A +`C11000` --- -B +`C110000000` --- -C - ---- - -D - ---- - -E +`00C110` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md index 4b1775fdb0a..515199832a2 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the code `decimal.TryParse(numberString, out myConvert))` when the type of `numberString` is a String. Which best describes the value type for `myConvert` when the `TryParse()` is successful? ## --answers-- -A +A string representing numeric digits. --- -B +A Boolean value. --- -C - ---- - -D - ---- - -E +A decimal ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md index 9c21fc6b655..0373b33abc7 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method finds the next index of either the `-` char, the `=` char, or the `_` char? ## --answers-- -A +`IndexOfAny()` --- -B +`Remove()` --- -C - ---- - -D - ---- - -E +`IndexOf()` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md index 3e95f452201..f117e7ee2e5 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method changes the order of items in an `string` array? ## --answers-- -A +`myArray.Resize()` --- -B +`myArray.Clear()` --- -C - ---- - -D - ---- - -E +`Array.Sort()` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md index 0b8a90caa77..de2cf0636e2 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is wrong with the following code? `int sophiaSum; Console.WriteLine("Sophia: " + sophiaSum);` ## --answers-- -A +`sophiaSum` is not initialized before use --- -B +`sophiaSum` is not implicitly typed to a string --- -C - ---- - -D - ---- - -E +`sophiaSum` should use the var keyword ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md index 7ce788fdbf9..e60bdbdee43 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Suppose `decimal gradePointAverage = 3.99872831;`. What is the value of `(int) gradePointAverage`? ## --answers-- -A +3.99 --- -B +4 --- -C - ---- - -D - ---- - -E +3 ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md index b2648681c40..ad414c61f37 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the value of the following result? `int result = 3 + 1 * 5 / 2;` ## --answers-- -A +10 --- -B +5 --- -C +6 --- -D - ---- - -E +5.5 ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md index 719992ac231..77b499bbe1c 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code correctly uses string interpolation assuming that the variable `value` is a string? ## --answers-- -A +'`Console.WriteLine(@"My value: {value}");'`' --- -B +'`Console.WriteLine($"My value: {value}");`' --- -C - ---- - -D - ---- - -E +'`Console.WriteLine(@"My value: [value]");`' ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md index c3e7bda42b3..a61a39ad190 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code creates a variable correctly? ## --answers-- -A +`int x = 12.3m;` --- -B +`decimal x = 12.3m;` --- -C - ---- - -D - ---- - -E +`bool x = 'False';` ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md index 42c2aa4d689..bc5f85082fb 100644 --- a/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md +++ b/curriculum/challenges/chinese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the difference between `Console.Write` and `Console.WriteLine`? ## --answers-- -A +`Console.Write` prints the output on a new line. --- -B +`Console.WriteLine` prints the output on a new line. --- -C +`Console.WriteLine` appends a new line after the output. --- -D - ---- - -E +There is no difference. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/03-front-end-development-libraries/react/introducing-inline-styles.md b/curriculum/challenges/espanol/03-front-end-development-libraries/react/introducing-inline-styles.md index 32de7ccc214..e726803c522 100644 --- a/curriculum/challenges/espanol/03-front-end-development-libraries/react/introducing-inline-styles.md +++ b/curriculum/challenges/espanol/03-front-end-development-libraries/react/introducing-inline-styles.md @@ -30,7 +30,7 @@ Los elementos JSX usan el atributo `style`, pero debido a la forma en que JSX es Agrega un atributo `style` al `div` en el editor de código para darle al texto un color rojo y un tamaño de fuente de `72px`. -Ten en cuenta que puedes establecer opcionalmente el tamaño de la fuente para que sea un número, omitiendo las unidades `px`, o escribirlo como `72px`. +Note that you can optionally set the font size to be a number, omitting the units `px`, or write it as `"72px"`. # --hints-- El componente debe renderizar un elemento `div`. diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md index 6d931df8429..376d4e9725a 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to iterate through an array of items to find one that matches a certain criteria. Which is the best iteration statement for this purpose? ## --answers-- -A +`foreach` --- -B +`for` --- -C - ---- - -D - ---- - -E +`while` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md index ac7f7d0fda9..447f1269b0f 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of the `break` keyword? ## --answers-- -A +The `break` keyword tells the runtime to continue evaluating other cases in the `switch` construct. --- -B +The `break` keyword tells the runtime to stop evaluating other cases in the `switch` construct. --- -C - ---- - -D - ---- - -E +The `break` keyword tells the runtime to exit the application. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md index 4041cdae752..113287cb526 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to create an iteration statement. Under what condition is a `while` statement a better choice than a `do` statement? ## --answers-- -A +When the expression values evaluated by the iteration statement are unknown prior to the iteration code block. --- -B +When the expression values evaluated by the iteration statement are known prior to the iteration code block. --- -C - ---- - -D - ---- - -E +When the developer creates nested `do` or `while` loops. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md index a12724520f7..bbc9278d006 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following describes the affect of a `using` statement? ## --answers-- -A +Affects only the first code block in the code file. --- -B +Affects only the current code block in the code file. --- -C - ---- - -D - ---- - -E +Affects all of the code in the code file. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md index 4c5ac4ee24c..e67d4aca2b4 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code is a valid use of the conditional operator? ## --answers-- -A +`int value = amount >= 10? 10: 20;` --- -B +`int value = amount >= 10: 10? 20;` --- -C - ---- - -D - ---- - -E +`int value = amount >= 10? 10| 20;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md index b64e24bd5bb..7010ecea866 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is it appropriate to use a `switch-case` construct rather than a `if-elseif-else` construct? ## --answers-- -A +A `switch-case` construct is appropriate when more than 2-3 `else if` code blocks are required. --- -B +A `switch-case` construct is appropriate when the number of `case` patterns is small. --- -C +A `switch-case` construct is appropriate when the selection statement is inside a loop. ---- - -D - ---- - -E ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md index 19f195bfec2..96748c33695 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following `for` statements is correct? ## --answers-- -A +`for (int x = 20: x < 80: x++)` --- -B +`for (int j = 0; j == 80; j + 1)` --- -C - ---- - -D - ---- - -E +`for (int counter = 20; counter < 80; counter++)` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md index 8461147396f..af2e262ec68 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the choices below is not a valid operator in C#? ## --answers-- -A +`%%` --- -B +`&&` --- -C - ---- - -D - ---- - -E +`||` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md index 4f0c1ac0764..4c251639fb3 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is an object? ## --answers-- -A +A memory address. --- -B +A stateless class. --- -C - ---- - -D - ---- - -E +An instance of a class. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 9ad399d706b..3a17a7eed28 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer is working with two other developers to update a collection of applications. The developers will use code comments during the update process. Which of the following describes an appropriate use of code comments? ## --answers-- -A +When updates are made, the developers use line and block comments to identify each individual code update. --- -B +When updates are made, the developers leave all existing code comments intact. New comments are added to indicate when old comments no longer apply. --- -C - ---- - -D - ---- - -E +When updates are made, the developers summarize changes using block comments. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md index 8d1b02b3939..8e40b4c5df8 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following is a bad reason to use a code comment? ## --answers-- -A +To describe the high-level intent of the code. --- -B +To temporarily comment out a line of code while evaluating a feature in a different way. --- -C - ---- - -D - ---- - -E +To explain how a new C# keyword works. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 8a5e109a717..b9f4f9a7d59 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer writes an application that uses a `foreach` loop to iterate through an array containing 20 elements. After the application is complete, the developer learns that the array must be updated to include 40 elements. The application needs to examine all 40 array elements. Which of the following items describes the required code update? ## --answers-- -A +Create a second `foreach` loop that iterates through the additional items. --- -B +No changes are required to the `foreach` loop. --- -C - ---- - -D - ---- - -E +Place the original `foreach` loop inside the code block of a second `foreach` loop that iterates twice. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md index 15109e52e38..8de7fffca20 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following choices provides the best description of an Integrated Development Environment (IDE)? ## --answers-- -A +Visual Studio Code is an Integrated Development Environment. --- -B +An Integrated Development Environment is tool that makes it easier to write code. --- -C - ---- - -D - ---- - -E +An IDE is a suite of tools that supports the full software development lifecycle. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md index cb37d1e585a..1e1c1d7d48e 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following foreach statements is syntactically correct? ## --answers-- -A +`foreach (int value of values)` --- -B +`foreach (int value with values)` --- -C +`foreach (int value in values)` ---- - -D - ---- - -E ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md index bad15aec6c9..615be34010e 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer wants to create a method that returns a value in an array. Which of the following options would be a good choice for a method signature? ## --answers-- -A +`string GetValueAtIndex(string[] array, int index)` --- -B +`bool GetValueAtIndex(string[] array, int index)` --- -C - ---- - -D - ---- - -E +`int GetValueAtIndex(int index)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md index e358f171e11..4d272be5f91 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options correctly returns a `string` value? ## --answers-- -A +`return "";` --- -B +`return 'a';` --- -C - ---- - -D - ---- - -E +`return 5;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md index e35ee6ebf0e..e7a5b53ef84 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Given the method signature, `void Print(string name, string number = "", bool member = false)`, which of the following options correctly uses named and optional arguments? ## --answers-- -A +`Print("Tony", member: true);` --- -B +`Print(number: "555", member: false)` --- -C - ---- - -D - ---- - -E +`Print("Tony", false)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md index 72f335df163..29c9b5de27f 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md @@ -16,29 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of defining an optional parameter in a method? ## --answers-- -A +To cause a method to perform a different task. --- -B +To overload a method. --- -C - ---- - -D - ---- - -E +To simplify the required parameters when a parameter isn't significant to the result. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md index 79768c58db3..a3c6bd2fb43 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following correctly declares a method? ## --answers-- -A +`DisplayNumbers();` --- -B +`void DisplayNumbers{};` --- -C - ---- - -D - ---- - -E +`void DisplayNumbers() { }` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md index 36bc1153d8a..8bc70a1afb7 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options can be used set a breakpoint in Visual Studio Code? ## --answers-- -A +Left-click in the column to the left of a line number in the code editor. Correct. A breakpoint can be set by positioning the mouse pointer in the column to the left of a line number and then left-clicking. --- -B +Select Toggle Breakpoint on the Edit menu. --- -C - ---- - -D - ---- - -E +Right-click in the middle of a line of code, and then select Toggle Breakpoint. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md index f7c2bd80f6c..fca77377f58 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When should a method throw an exception? ## --answers-- -A +A method should throw an exception when the method can complete its intended purpose. --- -B +A method should throw an exception when the method can't complete its intended purpose. --- -C - ---- - -D - ---- - -E +A method should throw an exception when an exception type matches the intended purpose of the method. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/espanol/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 b/curriculum/challenges/espanol/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 index de7ead91e1a..21cbf8fbc0c 100644 --- a/curriculum/challenges/espanol/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 +++ b/curriculum/challenges/espanol/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 @@ -16,28 +16,16 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArgumentOutOfRangeException` exception thrown? ## --answers-- -A +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. -B - ---- - -C - ---- - -D - ---- - -E +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-- -4 +2 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md index bafbea0109a..9b7fa2379a5 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArrayTypeMismatchException` exception thrown? ## --answers-- -A +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to store a value of one type in an array of another type. --- -B +An `ArrayTypeMismatchException` exception is thrown when attempting to access a member on a type whose value is null. --- -C - ---- - -D - ---- - -E +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to index an array outside the bounds of the array. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md index d4a7379f578..94bd7e29624 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which section of the RUN AND DEBUG view is used to track the current point of execution within the running application? ## --answers-- -A +The VARIABLES section. --- -B +The CALL STACK section. --- -C - ---- - -D - ---- - -E +The WATCH section. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md index cabc3e7c7c7..f5cb371e48b 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the relationship between the type of exception and the information it contains? ## --answers-- -A +The type of exception determines the information it contains. --- -B +The type of exception and the information it contains are unrelated. --- -C - ---- - -D - ---- - -E +The information contained in an exception determines the type of exception. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md index 16eebc36ba9..3335e54f834 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +To sort a string array, why is it be important to use the `String.Trim()` method on each array element before sorting? ## --answers-- -A +Only string arrays with elements trimmed with `String.Trim()` can sort --- -B +`String.Trim()` removes leading white space that would sort before numbers and letters. --- -C - ---- - -D - ---- - -E +The array sort is noticeably faster using `String.Trim()` on each element. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md index c851b57cf57..8d715dd3fb6 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A piece of code must store whole numeric values between negative and positive `1,000,000`. Which data type should you choose? ## --answers-- -A +float --- -B +double --- -C - ---- - -D - ---- - -E +int ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md index 03bba10b761..10a0098944b 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What type of action is being performed when changing a `float` into an `int`? ## --answers-- -A +A narrowing conversion. --- -B +A widening conversion. --- -C - ---- - -D - ---- - -E +An illegal conversion. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md index 91df983720c..5514c317320 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the C# code `Console.WriteLine("C110".PadLeft(6, '0'));`, which is the expected output? ## --answers-- -A +`C11000` --- -B +`C110000000` --- -C - ---- - -D - ---- - -E +`00C110` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md index 4b1775fdb0a..515199832a2 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the code `decimal.TryParse(numberString, out myConvert))` when the type of `numberString` is a String. Which best describes the value type for `myConvert` when the `TryParse()` is successful? ## --answers-- -A +A string representing numeric digits. --- -B +A Boolean value. --- -C - ---- - -D - ---- - -E +A decimal ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md index 9c21fc6b655..0373b33abc7 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method finds the next index of either the `-` char, the `=` char, or the `_` char? ## --answers-- -A +`IndexOfAny()` --- -B +`Remove()` --- -C - ---- - -D - ---- - -E +`IndexOf()` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md index 3e95f452201..f117e7ee2e5 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method changes the order of items in an `string` array? ## --answers-- -A +`myArray.Resize()` --- -B +`myArray.Clear()` --- -C - ---- - -D - ---- - -E +`Array.Sort()` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md index 0b8a90caa77..de2cf0636e2 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is wrong with the following code? `int sophiaSum; Console.WriteLine("Sophia: " + sophiaSum);` ## --answers-- -A +`sophiaSum` is not initialized before use --- -B +`sophiaSum` is not implicitly typed to a string --- -C - ---- - -D - ---- - -E +`sophiaSum` should use the var keyword ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md index 7ce788fdbf9..e60bdbdee43 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Suppose `decimal gradePointAverage = 3.99872831;`. What is the value of `(int) gradePointAverage`? ## --answers-- -A +3.99 --- -B +4 --- -C - ---- - -D - ---- - -E +3 ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md index b2648681c40..ad414c61f37 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the value of the following result? `int result = 3 + 1 * 5 / 2;` ## --answers-- -A +10 --- -B +5 --- -C +6 --- -D - ---- - -E +5.5 ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md index 719992ac231..77b499bbe1c 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code correctly uses string interpolation assuming that the variable `value` is a string? ## --answers-- -A +'`Console.WriteLine(@"My value: {value}");'`' --- -B +'`Console.WriteLine($"My value: {value}");`' --- -C - ---- - -D - ---- - -E +'`Console.WriteLine(@"My value: [value]");`' ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md index c3e7bda42b3..a61a39ad190 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code creates a variable correctly? ## --answers-- -A +`int x = 12.3m;` --- -B +`decimal x = 12.3m;` --- -C - ---- - -D - ---- - -E +`bool x = 'False';` ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md index 42c2aa4d689..bc5f85082fb 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the difference between `Console.Write` and `Console.WriteLine`? ## --answers-- -A +`Console.Write` prints the output on a new line. --- -B +`Console.WriteLine` prints the output on a new line. --- -C +`Console.WriteLine` appends a new line after the output. --- -D - ---- - -E +There is no difference. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/03-front-end-development-libraries/react/introducing-inline-styles.md b/curriculum/challenges/german/03-front-end-development-libraries/react/introducing-inline-styles.md index fe20d77da26..80021ec89fe 100644 --- a/curriculum/challenges/german/03-front-end-development-libraries/react/introducing-inline-styles.md +++ b/curriculum/challenges/german/03-front-end-development-libraries/react/introducing-inline-styles.md @@ -30,7 +30,7 @@ Hast du bemerkt, dass wir die Eigenschaft `fontSize` in CamelCase schreiben? Das Füge im Code-Editor ein `style`-Attribut zum `div` hinzu, um dem Text eine rote Farbe und eine Schriftgröße von `72px` zu geben. -Beachte, dass du die Schriftgröße optional als Zahl angeben kannst, indem du die Einheit `px` weglässt, oder sie als `72px` schreibst. +Note that you can optionally set the font size to be a number, omitting the units `px`, or write it as `"72px"`. # --hints-- Die Komponente sollte ein `div`-Element darstellen. diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/6140df547f09402144e40b92.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/6140df547f09402144e40b92.md index 08da6b3aad9..4b3f4097253 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/6140df547f09402144e40b92.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-animation-by-building-a-ferris-wheel/6140df547f09402144e40b92.md @@ -19,7 +19,7 @@ Dein `.wheel`-Selektor sollte eine `animation-name`-Eigenschaft auf `wheel` gese assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.animationName === 'wheel'); ``` -Your `.wheel` selector should have an `animation-duration` property set to `10s`. +Dein `.wheel`-Selektor sollte eine `animation-duration`-Eigenschaft von `10s` haben. ```js assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.animationDuration === '10s'); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61695c4aad56f95497c19583.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61695c4aad56f95497c19583.md index e657ceb7595..93fcf8c6262 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61695c4aad56f95497c19583.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61695c4aad56f95497c19583.md @@ -35,7 +35,7 @@ const title = document.querySelector('title'); assert.equal(title?.text?.trim()?.toLowerCase(), 'colored markers') ``` -Remember, casing and spelling matter for the title text. +Denke daran, dass Schreibweise und Rechtschreibung für den Titel wichtig sind. ```js const title = document.querySelector('title'); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61764c602bee6974e7790f35.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61764c602bee6974e7790f35.md index 69ed6709615..5cc4b3994ad 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61764c602bee6974e7790f35.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61764c602bee6974e7790f35.md @@ -7,7 +7,7 @@ dashedName: step-16 # --description-- -Um den Markierungen verschiedene Farben zu geben, musst du jeder Markierung eine eindeutige Klasse hinzufügen. Mehrere Klassen können zu einem Element hinzugefügt werden, indem man diese in dem `class`-Attribut auflistet und sie mit einem Leerzeichen trennt. For example, the following adds both the `animal` and `dog` classes to a `div` element. +Um den Markierungen verschiedene Farben zu geben, musst du jeder Markierung eine eindeutige Klasse hinzufügen. Mehrere Klassen können zu einem Element hinzugefügt werden, indem man diese in dem `class`-Attribut auflistet und sie mit einem Leerzeichen trennt. Dies fügt also zum Beispiel `animal`- und `dog`-Klassen zu einem `div`-Element hinzu. ```html
diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/619b72a0db211f1c29afb906.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/619b72a0db211f1c29afb906.md index f3613d89fa5..e587e1dcebe 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/619b72a0db211f1c29afb906.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/619b72a0db211f1c29afb906.md @@ -11,7 +11,7 @@ Aktualisiere die `.one`-CSS-Regel, um die neue `red`-Klasse auszuwählen. # --hints-- -Your code should no longer have a `.one` class selector. +Dein Code sollte keinen `.one`-Klassenselektor haben. ```js assert(!new __helpers.CSSHelp(document).getStyle('.one')); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61a489b8579e87364b2d2cdb.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61a489b8579e87364b2d2cdb.md index a444d6c52d5..8af9245fc95 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61a489b8579e87364b2d2cdb.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61a489b8579e87364b2d2cdb.md @@ -17,7 +17,7 @@ Eine Sache, die man sich merken sollte, ist, dass die `linear-gradient` Funktion # --hints-- -Your `.red` CSS rule should have a `background` property with the value `rgb(255, 0, 0)`. +Deine `.red`-CSS-Regel sollte eine `background`-Eigenschaft mit dem Wert `rgb(255, 0, 0)` haben. ```js assert.match(__helpers.removeWhiteSpace(code), /\.red\{.*?background:rgb\(255,0,0\)/); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61a5d6701ee08953ca375243.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61a5d6701ee08953ca375243.md index c6f5bb2283a..2cd32c217af 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61a5d6701ee08953ca375243.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-colors-by-building-a-set-of-colored-markers/61a5d6701ee08953ca375243.md @@ -11,7 +11,7 @@ As the second color argument, pass in the `hsl` function with the values `223` f # --hints-- -Your `.blue` CSS rule should have a `background` property set to `linear-gradient(hsl(186, 76%, 16%), hsl(223, 90%, 60%))`. +Deine `.blue`-CSS-Regel sollte eine `background`-Eigenschaft von `linear-gradient(hsl(186, 76%, 16%), hsl(223, 90%, 60%))` haben. ```js assert.include(['linear-gradient(rgb(10,66,72),rgb(61,113,245))', 'rgba(0,0,0,0)linear-gradient(rgb(10,66,72),rgb(61,113,245))repeatscroll0%0%'], new __helpers.CSSHelp(document).getStyle('.blue')?.getPropVal('background', true)); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619665c9abd72906f3ad30f9.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619665c9abd72906f3ad30f9.md index f6013a6809e..d6c6f50bc7a 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619665c9abd72906f3ad30f9.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619665c9abd72906f3ad30f9.md @@ -37,32 +37,32 @@ Dein `html`-Element sollte ein abschließendes Tag haben. assert(code.match(/<\/html\s*>/gi)); ``` -Your code should have a `head` element within the `html` element. +Dein Code sollte innerhalb des `html`-Elements ein `head`-Element haben. ```js assert.equal(document.querySelectorAll('head')?.length, 1); ``` -Your code should have a `body` element within the `html` element. +Dein Code sollte innerhalb des `html`-Elements ein `body`-Element haben. ```js assert.equal(document.querySelectorAll('body')?.length, 1); ``` -Your `head` element should come before your `body` element. +Dein `head`-Element sollte vor deinem `body`-Element stehen. ```js assert.equal(document.querySelector('body')?.previousElementSibling?.tagName, 'HEAD'); ``` -You should have two `meta` elements. +Du solltest zwei `meta`-Elemente haben. ```js const meta = document.querySelectorAll('meta'); assert.equal(meta?.length, 2); ``` -One `meta` element should have a `name` set to `viewport`, and `content` set to `width=device-width, initial-scale=1.0`. +Ein `meta`-Element sollte `name` auf `viewport` gesetzt haben und `content` sollte auf `width=device-width, initial-scale=1.0` gesetzt sein. ```js const meta = [...document.querySelectorAll('meta')]; @@ -78,7 +78,7 @@ const target = meta?.find(m => !m?.getAttribute('name') && !m?.getAttribute('con assert.exists(target); ``` -Your code should have a `title` element. +Dein Code sollte ein `title`-Element haben. ```js const title = document.querySelector('title'); @@ -92,19 +92,19 @@ const title = document.querySelector('title'); assert.isAtLeast(title?.textContent?.length, 1); ``` -Your code should have a `link` element. +Dein Code sollte ein `link`-Element haben. ```js assert.exists(document.querySelector('link')); ``` -Your `link` element should be within your `head` element. +Dein `link`-Element sollte sich innerhalb deines `head`-Elements befinden. ```js assert(code.match(/[\w\W\s]*[\w\W\s]*<\/head>/i)); ``` -Your `link` element should have a `rel` attribute with the value `stylesheet`. +Dein `link`-Element sollte ein `rel`-Attribut mit dem Wert `stylesheet` haben. ```js const link_element = document.querySelector('link'); @@ -112,7 +112,7 @@ const rel = link_element.getAttribute("rel"); assert.equal(rel, "stylesheet"); ``` -Your `link` element should have an `href` attribute with the value `styles.css`. +Dein `link`-Element sollte ein `href`-Attribut mit dem Wert `styles.css` haben. ```js const link = document.querySelector('link'); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d019488f98c06acbbb71a.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d019488f98c06acbbb71a.md index a7050534e03..37c97cdf201 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d019488f98c06acbbb71a.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d019488f98c06acbbb71a.md @@ -7,7 +7,7 @@ dashedName: step-48 # --description-- -Currently, the two `.face` elements are on top of each other. +Derzeit liegen die beiden `.face`-Elemente übereinander. Behebe dies, indem du eine `class` von `left` zum ersten `.face`-Element und eine `class` von `right` zum zweiten `.face`-Element hinzufügst. diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d0503e03a790a4179d463.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d0503e03a790a4179d463.md index 0d6c8d17087..782815536e5 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d0503e03a790a4179d463.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d0503e03a790a4179d463.md @@ -7,7 +7,7 @@ dashedName: step-53 # --description-- -Position the `.chin` element such that it is `25%` from the top, and `5%` from the left of its parent. Gib dann den oberen Ecken einen Radius von `70%` und den unteren Ecken einen Radius von `100%`. +Positioniere das `.chin`-Element so, dass es `25%` von oben und `5%` links von seinem übergeordneten Element liegt. Gib dann den oberen Ecken einen Radius von `70%` und den unteren Ecken einen Radius von `100%`. # --hints-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d15d955d9d418c4487bbc.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d15d955d9d418c4487bbc.md index 10fc20a77ab..b151fda6c90 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d15d955d9d418c4487bbc.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d15d955d9d418c4487bbc.md @@ -7,7 +7,7 @@ dashedName: step-73 # --description-- -Within `.shirt`, after the `div` element, add a `p` element with the following content: `I CSS` +Füge nach dem `div`-Element und innerhalb `.shirt` ein `p`-Element mit folgendem Inhalt hinzu: `I CSS` # --hints-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d1deb8b04811b8839ffe4.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d1deb8b04811b8839ffe4.md index 3fd403ae811..e60a69e0b62 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d1deb8b04811b8839ffe4.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d1deb8b04811b8839ffe4.md @@ -7,7 +7,7 @@ dashedName: step-77 # --description-- -Positioniere das `.shirt`-Element `165px` von oben und `127.5px` links von seinem übergeordneten Element. Then, increase its stacking order such that it appears above the `.penguin-body` element. +Positioniere das `.shirt`-Element `165px` von oben und `127.5px` links von seinem übergeordneten Element. Erhöhe dann die Stapelreihenfolge so, dass sie über dem `.penguin-body`-Element erscheint. # --hints-- diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2b7a84e78b246f2d17a2.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2b7a84e78b246f2d17a2.md index bd00a57fbed..7bd056345e1 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2b7a84e78b246f2d17a2.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-transforms-by-building-a-penguin/619d2b7a84e78b246f2d17a2.md @@ -29,7 +29,7 @@ You should give `.arm.left` a `left` of `--fcc-expected--`, but found `--fcc-act assert.equal(new __helpers.CSSHelp(document).getStyle('.arm.left')?.left, '5%'); ``` -You should use the `.arm.right` selector. +Du solltest den `.arm.right`-Selektor verwenden. ```js assert.match(code, /\.arm\.right\s*\{/); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98f1.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98f1.md index 6de9574b6ca..55fe6e51a73 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98f1.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e98f1.md @@ -31,13 +31,13 @@ assert.isEmpty(new __helpers.CSSHelp(document).getStyle('.bb1a')?.background); assert.equal(new __helpers.CSSHelp(document).getStyle('.bb1-window')?.getPropVal('background', true), 'linear-gradient(var(--building-color1),var(--window-color1))'); ``` -You should not move the `background-color` property from `.bb1a`. +Du solltest nicht die `background-color`-Eigenschaft von `.bb1a` verschieben. ```js assert.notEmpty(new __helpers.CSSHelp(document).getStyle('.bb1a')?.backgroundColor); ``` -You should not move the `width` property from `.bb1a`. +Du solltest nicht die `width`-Eigenschaft von `.bb1a` verschieben. ```js assert.notEmpty(new __helpers.CSSHelp(document).getStyle('.bb1a')?.width); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e990b.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e990b.md index ff42eb459ee..c469ecb8837 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e990b.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-css-variables-by-building-a-city-skyline/5d822fd413a79914d39e990b.md @@ -7,17 +7,17 @@ dashedName: step-67 # --description-- -Add the new `building-wrap` class to the `.bb1` and `.bb4` elements. Dies wird die zentrierenden Eigenschaften auf die Bauelemente anwenden, die sie benötigen. +Füge die neue `building-wrap`-Klasse zu den `.bb1`- und `.bb4`-Elementen hinzu. Dies wird die zentrierenden Eigenschaften auf die Bauelemente anwenden, die sie benötigen. # --hints-- -You should add `building-wrap` to the `.bb1` element. +Du solltest `building-wrap` zum `.bb1`-Element hinzufügen. ```js assert.exists(document.querySelector("div.bb1.building-wrap")); ``` -You should add `building-wrap` to the `.bb4` element. +Du solltest `building-wrap` zum `.bb4`-Element hinzufügen. ```js assert.exists(document.querySelector("div.bb4.building-wrap")); diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24073f86c76b9248c6ebb.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24073f86c76b9248c6ebb.md index 5062db2d793..27f08e699c5 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24073f86c76b9248c6ebb.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5dc24073f86c76b9248c6ebb.md @@ -7,7 +7,7 @@ dashedName: step-8 # --description-- -HTML attributes sind spezielle Wörter, die innerhalb des öffnenden Tags eines Elements verwendet werden, um das Verhalten des Elements zu steuern. The `src` attribute in an `img` element specifies the image's URL (where the image is located). +HTML attributes sind spezielle Wörter, die innerhalb des öffnenden Tags eines Elements verwendet werden, um das Verhalten des Elements zu steuern. Das `src`-Attribut in einem `img`-Element gibt die URL des Bildes an (wo sich das Bild befindet). Hier ist ein Beispiel für ein `img`-Element mit einem `src`-Attribut, das auf das freeCodeCamp-Logo verweist: diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md index fe3784642bd..cddaf27e8e4 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d2.md @@ -9,19 +9,19 @@ dashedName: step-27 Der Code für eine geordnete Liste (`ol`) ist einer ungeordneten Liste ähnlich, nur dass die Listenelemente in einer geordneten Liste nummeriert werden, wenn sie angezeigt werden. -After the second `section` element's last `h3` element, add an ordered list with these three list items: +Füge nach dem letzten `h3`-Element des zweiten `section`-Elements eine geordnete Liste mit diesen drei Elementen hinzu: `flea treatment` `thunder` `other cats` # --hints-- -Your `ol` element should have an opening tag. Öffnende Tags haben diese Syntax: ``. +Dein `ol`-Element sollte ein öffnendes Tag haben. Öffnende Tags haben diese Syntax: ``. ```js assert(document.querySelector('ol')); ``` -Your `ol` element should have a closing tag. Closing tags have a `/` just after the `<` character. +Dein `ol`-Element sollte ein schließendes Tag haben. Schließende Tags haben ein `/` genau nach dem `<`-Zeichen. ```js assert(code.match(/<\/ol>/)); @@ -33,7 +33,7 @@ The `ol` element should be above the second `section` element's closing tag. Sie assert($('main > section')[1].lastElementChild.nodeName === 'OL'); ``` -The three `li` elements should be nested inside the `ol` element. +Die drei `li`-Elemente sollten in dem `ol`-Element eingebettet sein. ```js assert( @@ -43,7 +43,7 @@ assert( ); ``` -You should have three `li` elements with the text `flea treatment`, `thunder` and `other cats` in any order. +Du solltest drei `li`-Elemente mit dem Text `flea treatment`, `thunder` und `other cats` in beliebiger Reihenfolge haben. ```js assert.deepStrictEqual( diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md index 5e462f3a457..75664740b87 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d5.md @@ -13,7 +13,7 @@ Füge innerhalb des dritten `section`-Elements ein `h2`-Element mit dem Text hin # --hints-- -Unable to find the third `section` element. You may have accidentally deleted it or the opening tag or closing tag. +Das dritte `section`-Element kann nicht gefunden werden. You may have accidentally deleted it or the opening tag or closing tag. ```js assert( @@ -31,7 +31,7 @@ assert( ); ``` -You should only add one `h2` element. Please remove any extras. +Du solltest nur ein `h2`-Element hinzufügen. Please remove any extras. ```js assert(document.querySelectorAll('h2').length === 3); @@ -44,7 +44,7 @@ const thirdSection = document.querySelectorAll('section')[2]; assert(thirdSection.lastElementChild.nodeName === 'H2'); ``` -Your `h2` element's text should be `Cat Form`. +Der Text deines `h2`-Elements sollte `Cat Form` lauten. ```js const thirdSection = document.querySelectorAll('section')[2]; diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d7.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d7.md index 44fa7c1aeb0..de32aa3a6d8 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d7.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d7.md @@ -9,11 +9,11 @@ dashedName: step-36 The `action` attribute indicates where form data should be sent. Zum Beispiel teilt `
` dem Browser mit, dass die Formulardaten an den Pfad `/submit-url` gesendet werden sollten. -Add an `action` attribute with the value `https://freecatphotoapp.com/submit-cat-photo` to the `form` element. +Füge ein `action`-Attribut mit dem Wert `https://freecatphotoapp.com/submit-cat-photo` zum `form`-Element hinzu. # --hints-- -Your `form` element should have an opening tag and closing tag in the correct order. You may be missing one or both of the required tags, or have them in the wrong order. +Your `form` element should have an opening tag and closing tag in the correct order. Es kann sein, dass eine oder beide der erforderlichen Tags fehlen oder in der falschen Reihenfolge sind. ```js const noSpaces = code.replace(/\s/g, ''); @@ -24,26 +24,26 @@ assert( ); ``` -Your `form` element nested in the last `section` element should be below the `h2` element. You have the `h2` element and the `form` element in the wrong order. +Dein `form`-Element, das im letzten `section`-Element eingebettet wurde, sollte unter deinem `h2`-Element liegen. Du hast das `h2`-Element und das `form`-Element in der falschen Reihenfolge. ```js assert(document.querySelector('form').previousElementSibling.nodeName === 'H2'); ``` -Your `form` element should have no content. Remove any HTML elements or text between the `form` element's tags. +Dein `form`-Element sollte keinen Inhalt haben. Entferne jedes HTML-Element oder jeglichen Text zwischen den Tags des `form`-Elements. ```js assert($('form')[0].innerHTML.trim().length === 0); ``` -Your `form` element does not have an `action` attribute. Überprüfe, ob ein Leerzeichen nach dem Namen des öffnenden Tags und/oder Leerzeichen vor allen Attributnamen vorhanden sind. +Dein `form`-Element hat kein `action`-Attribut. Überprüfe, ob ein Leerzeichen nach dem Namen des öffnenden Tags und/oder Leerzeichen vor allen Attributnamen vorhanden sind. ```js const form = document.querySelector('form'); assert(form.hasAttribute('action')); ``` -Your `form` element should have an `action` attribute with the value `https://freecatphotoapp.com/submit-cat-photo`. +Dein `form`-Element sollte ein `action`-Attribut mit dem Wert `https://freecatphotoapp.com/submit-cat-photo` haben. ```js const form = document.querySelector('form'); @@ -54,7 +54,7 @@ assert( ); ``` -Although you have set the `action` attribute to the correct URL, it is recommended to always surround the value of an attribute with quotation marks. +Obwohl du das `action`-Attribut auf die richtige URL gesetzt hast, wird empfohlen, den Wert eines Attributs immer zwischen Anführungszeichen anzugeben. ```js assert( diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md index 3617eda3973..40992e99631 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804d8.md @@ -24,13 +24,13 @@ assert( ); ``` -Your `form` element's opening tag should only have an `action` attribute. Entferne alles andere, was du möglicherweise eingegeben hast. +Das öffnende Tag deines `form`-Elements sollte nur ein `action`-Attribut haben. Entferne alles andere, was du möglicherweise eingegeben hast. ```js assert([...document.querySelector('form').attributes].length < 2); ``` -You should create an `input` element. Überprüfe die Syntax. +Du solltest ein `input`-Element erstellen. Überprüfe die Syntax. ```js assert(document.querySelector('input')); @@ -42,13 +42,13 @@ Your `input` element should have an opening tag, but not a closing tag. assert(document.querySelector('input') && !code.match(/<\/input\>/g)); ``` -Your `input` element should be nested within the `form` element. +Dein `input`-Element sollte innerhalb deines `form`-Elements eingebettet sein. ```js assert(document.querySelector('form > input')); ``` -Your `form` should only contain the `input` element. Remove any HTML elements or text between the `form` element's tags. +Deine `form` sollte nur das `input`-Element enthalten. Remove any HTML elements or text between the `form` element's tags. ```js assert( diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md index 07ce382a0de..bffb10f9b61 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804da.md @@ -31,7 +31,7 @@ Your `button` element's text should be `Submit`. Du hast entweder den Text wegge assert(document.querySelector('button').innerText.toLowerCase() === 'submit'); ``` -Your `button` element should be below the `input` element. Sie sind in falscher Reihenfolge. +Dein `button`-Element sollte unter dem `input`-Element stehen. Sie sind in falscher Reihenfolge. ```js const collection = [...document.querySelectorAll('input, button')].map( diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804dc.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804dc.md index ad620edfeff..ccc6f30abc6 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804dc.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804dc.md @@ -29,7 +29,7 @@ Dein `input`-Element sollte ein öffnendes Tag haben, aber kein schließendes Ta assert($('form > input') && !code.match(/<\/input\>/g)); ``` -You should only have added one `input` element for your radio button. Remove any extras. +Du solltest nur ein `input`-Element für deinen Radio-Button hinzugefügt haben. Entferne alles Zusätzliche. ```js assert($('form > input').length === 2); @@ -51,7 +51,7 @@ Dein neues `input`-Element hat kein `type`-Attribut. Überprüfe, ob es ein Leer assert($('input')[0].hasAttribute('type')); ``` -Dein neues `input`-Element sollte nur ein `type`-Attribut haben. Remove any extras. +Dein neues `input`-Element sollte nur ein `type`-Attribut haben. Entferne alles Zusätzliche. ```js assert($('input')[0] @@ -77,14 +77,14 @@ Obwohl du das `type`-Attribut des neuen `input`-Elements auf `radio` gesetzt has assert(!/\<\s*input\s+type\s*=\s*radio/i.test(code)); ``` -The `radio` button's `Indoor` text should be located after it instead of before it. +Der `Indoor`-Text des `radio`-Buttons sollte danach und nicht davor stehen. ```js const radioInputElem = $('input')[0]; assert(!radioInputElem.previousSibling.nodeValue.match(/Indoor/i)); ``` -The text `Indoor` should be located directly to the right of your `radio` button. Du hast entweder den Text weggelassen oder einen Tippfehler gemacht. +Der Text `Indoor` sollte sich direkt rechts neben deinem `radio`-Button befinden. Du hast entweder den Text weggelassen oder einen Tippfehler gemacht. ```js const radioInputElem = $('input')[0]; diff --git a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804df.md b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804df.md index e917b32735d..9b87da24a31 100644 --- a/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804df.md +++ b/curriculum/challenges/german/14-responsive-web-design-22/learn-html-by-building-a-cat-photo-app/5ef9b03c81a63668521804df.md @@ -22,19 +22,19 @@ assert( ); ``` -Your radio button should have an `id` attribute. Überprüfe, ob ein Leerzeichen nach dem Namen des öffnenden Tags und/oder Leerzeichen vor allen Attributnamen vorhanden sind. +Dein Radio-Button sollte ein `id`-Attribut haben. Überprüfe, ob ein Leerzeichen nach dem Namen des öffnenden Tags und/oder Leerzeichen vor allen Attributnamen vorhanden sind. ```js assert($('input')[0].hasAttribute('id')); ``` -Your radio button should have a `type` attribute. Überprüfe, dass ein Leerzeichen nach dem Namen des öffnendes Tags und/oder Leerzeichen vor allen Attributnamen vorhanden sind. +Dein Radio-Button sollte ein `type`-Attribut haben. Überprüfe, dass ein Leerzeichen nach dem Namen des öffnendes Tags und/oder Leerzeichen vor allen Attributnamen vorhanden sind. ```js assert($('input')[0].hasAttribute('type')); ``` -Your radio button should have an `id` attribute with the value `indoor`. Du hast entweder den Wert weggelasssen oder einen Tippfehler gemacht. Denke daran, dass Attributwerte zwischen Anführungszeichen stehen sollten. +Dein Radio-Button sollte ein `id`-Attribut mit dem Wert `indoor` haben. Du hast entweder den Wert weggelasssen oder einen Tippfehler gemacht. Denke daran, dass Attributwerte zwischen Anführungszeichen stehen sollten. ```js assert($('input')[0].id.match(/^indoor$/)); diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md index 6d931df8429..376d4e9725a 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to iterate through an array of items to find one that matches a certain criteria. Which is the best iteration statement for this purpose? ## --answers-- -A +`foreach` --- -B +`for` --- -C - ---- - -D - ---- - -E +`while` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md index ac7f7d0fda9..447f1269b0f 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of the `break` keyword? ## --answers-- -A +The `break` keyword tells the runtime to continue evaluating other cases in the `switch` construct. --- -B +The `break` keyword tells the runtime to stop evaluating other cases in the `switch` construct. --- -C - ---- - -D - ---- - -E +The `break` keyword tells the runtime to exit the application. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md index 4041cdae752..113287cb526 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to create an iteration statement. Under what condition is a `while` statement a better choice than a `do` statement? ## --answers-- -A +When the expression values evaluated by the iteration statement are unknown prior to the iteration code block. --- -B +When the expression values evaluated by the iteration statement are known prior to the iteration code block. --- -C - ---- - -D - ---- - -E +When the developer creates nested `do` or `while` loops. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md index a12724520f7..bbc9278d006 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following describes the affect of a `using` statement? ## --answers-- -A +Affects only the first code block in the code file. --- -B +Affects only the current code block in the code file. --- -C - ---- - -D - ---- - -E +Affects all of the code in the code file. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md index 4c5ac4ee24c..e67d4aca2b4 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code is a valid use of the conditional operator? ## --answers-- -A +`int value = amount >= 10? 10: 20;` --- -B +`int value = amount >= 10: 10? 20;` --- -C - ---- - -D - ---- - -E +`int value = amount >= 10? 10| 20;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md index b64e24bd5bb..7010ecea866 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is it appropriate to use a `switch-case` construct rather than a `if-elseif-else` construct? ## --answers-- -A +A `switch-case` construct is appropriate when more than 2-3 `else if` code blocks are required. --- -B +A `switch-case` construct is appropriate when the number of `case` patterns is small. --- -C +A `switch-case` construct is appropriate when the selection statement is inside a loop. ---- - -D - ---- - -E ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md index 19f195bfec2..96748c33695 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following `for` statements is correct? ## --answers-- -A +`for (int x = 20: x < 80: x++)` --- -B +`for (int j = 0; j == 80; j + 1)` --- -C - ---- - -D - ---- - -E +`for (int counter = 20; counter < 80; counter++)` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md index 8461147396f..af2e262ec68 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the choices below is not a valid operator in C#? ## --answers-- -A +`%%` --- -B +`&&` --- -C - ---- - -D - ---- - -E +`||` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md index 4f0c1ac0764..4c251639fb3 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is an object? ## --answers-- -A +A memory address. --- -B +A stateless class. --- -C - ---- - -D - ---- - -E +An instance of a class. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 9ad399d706b..3a17a7eed28 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer is working with two other developers to update a collection of applications. The developers will use code comments during the update process. Which of the following describes an appropriate use of code comments? ## --answers-- -A +When updates are made, the developers use line and block comments to identify each individual code update. --- -B +When updates are made, the developers leave all existing code comments intact. New comments are added to indicate when old comments no longer apply. --- -C - ---- - -D - ---- - -E +When updates are made, the developers summarize changes using block comments. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md index 8d1b02b3939..8e40b4c5df8 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following is a bad reason to use a code comment? ## --answers-- -A +To describe the high-level intent of the code. --- -B +To temporarily comment out a line of code while evaluating a feature in a different way. --- -C - ---- - -D - ---- - -E +To explain how a new C# keyword works. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 8a5e109a717..b9f4f9a7d59 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer writes an application that uses a `foreach` loop to iterate through an array containing 20 elements. After the application is complete, the developer learns that the array must be updated to include 40 elements. The application needs to examine all 40 array elements. Which of the following items describes the required code update? ## --answers-- -A +Create a second `foreach` loop that iterates through the additional items. --- -B +No changes are required to the `foreach` loop. --- -C - ---- - -D - ---- - -E +Place the original `foreach` loop inside the code block of a second `foreach` loop that iterates twice. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md index 15109e52e38..8de7fffca20 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following choices provides the best description of an Integrated Development Environment (IDE)? ## --answers-- -A +Visual Studio Code is an Integrated Development Environment. --- -B +An Integrated Development Environment is tool that makes it easier to write code. --- -C - ---- - -D - ---- - -E +An IDE is a suite of tools that supports the full software development lifecycle. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md index cb37d1e585a..1e1c1d7d48e 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following foreach statements is syntactically correct? ## --answers-- -A +`foreach (int value of values)` --- -B +`foreach (int value with values)` --- -C +`foreach (int value in values)` ---- - -D - ---- - -E ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md index bad15aec6c9..615be34010e 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer wants to create a method that returns a value in an array. Which of the following options would be a good choice for a method signature? ## --answers-- -A +`string GetValueAtIndex(string[] array, int index)` --- -B +`bool GetValueAtIndex(string[] array, int index)` --- -C - ---- - -D - ---- - -E +`int GetValueAtIndex(int index)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md index e358f171e11..4d272be5f91 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options correctly returns a `string` value? ## --answers-- -A +`return "";` --- -B +`return 'a';` --- -C - ---- - -D - ---- - -E +`return 5;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md index e35ee6ebf0e..e7a5b53ef84 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Given the method signature, `void Print(string name, string number = "", bool member = false)`, which of the following options correctly uses named and optional arguments? ## --answers-- -A +`Print("Tony", member: true);` --- -B +`Print(number: "555", member: false)` --- -C - ---- - -D - ---- - -E +`Print("Tony", false)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md index 72f335df163..29c9b5de27f 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md @@ -16,29 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of defining an optional parameter in a method? ## --answers-- -A +To cause a method to perform a different task. --- -B +To overload a method. --- -C - ---- - -D - ---- - -E +To simplify the required parameters when a parameter isn't significant to the result. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md index 79768c58db3..a3c6bd2fb43 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following correctly declares a method? ## --answers-- -A +`DisplayNumbers();` --- -B +`void DisplayNumbers{};` --- -C - ---- - -D - ---- - -E +`void DisplayNumbers() { }` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md index 36bc1153d8a..8bc70a1afb7 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options can be used set a breakpoint in Visual Studio Code? ## --answers-- -A +Left-click in the column to the left of a line number in the code editor. Correct. A breakpoint can be set by positioning the mouse pointer in the column to the left of a line number and then left-clicking. --- -B +Select Toggle Breakpoint on the Edit menu. --- -C - ---- - -D - ---- - -E +Right-click in the middle of a line of code, and then select Toggle Breakpoint. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md index f7c2bd80f6c..fca77377f58 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When should a method throw an exception? ## --answers-- -A +A method should throw an exception when the method can complete its intended purpose. --- -B +A method should throw an exception when the method can't complete its intended purpose. --- -C - ---- - -D - ---- - -E +A method should throw an exception when an exception type matches the intended purpose of the method. ## --video-solution-- -4 +2 diff --git a/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 b/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 index de7ead91e1a..21cbf8fbc0c 100644 --- a/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 +++ b/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 @@ -16,28 +16,16 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArgumentOutOfRangeException` exception thrown? ## --answers-- -A +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. -B - ---- - -C - ---- - -D - ---- - -E +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-- -4 +2 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md index bafbea0109a..9b7fa2379a5 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArrayTypeMismatchException` exception thrown? ## --answers-- -A +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to store a value of one type in an array of another type. --- -B +An `ArrayTypeMismatchException` exception is thrown when attempting to access a member on a type whose value is null. --- -C - ---- - -D - ---- - -E +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to index an array outside the bounds of the array. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md index d4a7379f578..94bd7e29624 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which section of the RUN AND DEBUG view is used to track the current point of execution within the running application? ## --answers-- -A +The VARIABLES section. --- -B +The CALL STACK section. --- -C - ---- - -D - ---- - -E +The WATCH section. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md index cabc3e7c7c7..f5cb371e48b 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the relationship between the type of exception and the information it contains? ## --answers-- -A +The type of exception determines the information it contains. --- -B +The type of exception and the information it contains are unrelated. --- -C - ---- - -D - ---- - -E +The information contained in an exception determines the type of exception. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md index 16eebc36ba9..3335e54f834 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +To sort a string array, why is it be important to use the `String.Trim()` method on each array element before sorting? ## --answers-- -A +Only string arrays with elements trimmed with `String.Trim()` can sort --- -B +`String.Trim()` removes leading white space that would sort before numbers and letters. --- -C - ---- - -D - ---- - -E +The array sort is noticeably faster using `String.Trim()` on each element. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md index c851b57cf57..8d715dd3fb6 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A piece of code must store whole numeric values between negative and positive `1,000,000`. Which data type should you choose? ## --answers-- -A +float --- -B +double --- -C - ---- - -D - ---- - -E +int ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md index 03bba10b761..10a0098944b 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What type of action is being performed when changing a `float` into an `int`? ## --answers-- -A +A narrowing conversion. --- -B +A widening conversion. --- -C - ---- - -D - ---- - -E +An illegal conversion. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md index 91df983720c..5514c317320 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the C# code `Console.WriteLine("C110".PadLeft(6, '0'));`, which is the expected output? ## --answers-- -A +`C11000` --- -B +`C110000000` --- -C - ---- - -D - ---- - -E +`00C110` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md index 4b1775fdb0a..515199832a2 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the code `decimal.TryParse(numberString, out myConvert))` when the type of `numberString` is a String. Which best describes the value type for `myConvert` when the `TryParse()` is successful? ## --answers-- -A +A string representing numeric digits. --- -B +A Boolean value. --- -C - ---- - -D - ---- - -E +A decimal ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md index 9c21fc6b655..0373b33abc7 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method finds the next index of either the `-` char, the `=` char, or the `_` char? ## --answers-- -A +`IndexOfAny()` --- -B +`Remove()` --- -C - ---- - -D - ---- - -E +`IndexOf()` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md index 3e95f452201..f117e7ee2e5 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method changes the order of items in an `string` array? ## --answers-- -A +`myArray.Resize()` --- -B +`myArray.Clear()` --- -C - ---- - -D - ---- - -E +`Array.Sort()` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md index 0b8a90caa77..de2cf0636e2 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is wrong with the following code? `int sophiaSum; Console.WriteLine("Sophia: " + sophiaSum);` ## --answers-- -A +`sophiaSum` is not initialized before use --- -B +`sophiaSum` is not implicitly typed to a string --- -C - ---- - -D - ---- - -E +`sophiaSum` should use the var keyword ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md index 7ce788fdbf9..e60bdbdee43 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Suppose `decimal gradePointAverage = 3.99872831;`. What is the value of `(int) gradePointAverage`? ## --answers-- -A +3.99 --- -B +4 --- -C - ---- - -D - ---- - -E +3 ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md index b2648681c40..ad414c61f37 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the value of the following result? `int result = 3 + 1 * 5 / 2;` ## --answers-- -A +10 --- -B +5 --- -C +6 --- -D - ---- - -E +5.5 ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md index 719992ac231..77b499bbe1c 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code correctly uses string interpolation assuming that the variable `value` is a string? ## --answers-- -A +'`Console.WriteLine(@"My value: {value}");'`' --- -B +'`Console.WriteLine($"My value: {value}");`' --- -C - ---- - -D - ---- - -E +'`Console.WriteLine(@"My value: [value]");`' ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md index c3e7bda42b3..a61a39ad190 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code creates a variable correctly? ## --answers-- -A +`int x = 12.3m;` --- -B +`decimal x = 12.3m;` --- -C - ---- - -D - ---- - -E +`bool x = 'False';` ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md index 42c2aa4d689..bc5f85082fb 100644 --- a/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md +++ b/curriculum/challenges/german/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the difference between `Console.Write` and `Console.WriteLine`? ## --answers-- -A +`Console.Write` prints the output on a new line. --- -B +`Console.WriteLine` prints the output on a new line. --- -C +`Console.WriteLine` appends a new line after the output. --- -D - ---- - -E +There is no difference. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/03-front-end-development-libraries/react/introducing-inline-styles.md b/curriculum/challenges/italian/03-front-end-development-libraries/react/introducing-inline-styles.md index 1a17b9f0193..600a017034b 100644 --- a/curriculum/challenges/italian/03-front-end-development-libraries/react/introducing-inline-styles.md +++ b/curriculum/challenges/italian/03-front-end-development-libraries/react/introducing-inline-styles.md @@ -30,7 +30,7 @@ Vedi come abbiamo usato camelCase nella proprietà `fontSize`? Questo perché Re Aggiungi un attributo `style` al `div`nell'editor di codice per dare al testo un colore rosso e una dimensione del carattere di `72px`. -Nota che è possibile impostare facoltativamente la dimensione del carattere come un numero, omettendo le unità `px` o scrivendole come `72px`. +Note that you can optionally set the font size to be a number, omitting the units `px`, or write it as `"72px"`. # --hints-- Il componente dovrebbe mostrare un elemento `div`. diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md index 6d931df8429..376d4e9725a 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to iterate through an array of items to find one that matches a certain criteria. Which is the best iteration statement for this purpose? ## --answers-- -A +`foreach` --- -B +`for` --- -C - ---- - -D - ---- - -E +`while` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md index ac7f7d0fda9..447f1269b0f 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of the `break` keyword? ## --answers-- -A +The `break` keyword tells the runtime to continue evaluating other cases in the `switch` construct. --- -B +The `break` keyword tells the runtime to stop evaluating other cases in the `switch` construct. --- -C - ---- - -D - ---- - -E +The `break` keyword tells the runtime to exit the application. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md index 4041cdae752..113287cb526 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to create an iteration statement. Under what condition is a `while` statement a better choice than a `do` statement? ## --answers-- -A +When the expression values evaluated by the iteration statement are unknown prior to the iteration code block. --- -B +When the expression values evaluated by the iteration statement are known prior to the iteration code block. --- -C - ---- - -D - ---- - -E +When the developer creates nested `do` or `while` loops. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md index a12724520f7..bbc9278d006 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following describes the affect of a `using` statement? ## --answers-- -A +Affects only the first code block in the code file. --- -B +Affects only the current code block in the code file. --- -C - ---- - -D - ---- - -E +Affects all of the code in the code file. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md index 4c5ac4ee24c..e67d4aca2b4 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code is a valid use of the conditional operator? ## --answers-- -A +`int value = amount >= 10? 10: 20;` --- -B +`int value = amount >= 10: 10? 20;` --- -C - ---- - -D - ---- - -E +`int value = amount >= 10? 10| 20;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md index b64e24bd5bb..7010ecea866 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is it appropriate to use a `switch-case` construct rather than a `if-elseif-else` construct? ## --answers-- -A +A `switch-case` construct is appropriate when more than 2-3 `else if` code blocks are required. --- -B +A `switch-case` construct is appropriate when the number of `case` patterns is small. --- -C +A `switch-case` construct is appropriate when the selection statement is inside a loop. ---- - -D - ---- - -E ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md index 19f195bfec2..96748c33695 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following `for` statements is correct? ## --answers-- -A +`for (int x = 20: x < 80: x++)` --- -B +`for (int j = 0; j == 80; j + 1)` --- -C - ---- - -D - ---- - -E +`for (int counter = 20; counter < 80; counter++)` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md index 8461147396f..af2e262ec68 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the choices below is not a valid operator in C#? ## --answers-- -A +`%%` --- -B +`&&` --- -C - ---- - -D - ---- - -E +`||` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md index 4f0c1ac0764..4c251639fb3 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is an object? ## --answers-- -A +A memory address. --- -B +A stateless class. --- -C - ---- - -D - ---- - -E +An instance of a class. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 9ad399d706b..3a17a7eed28 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer is working with two other developers to update a collection of applications. The developers will use code comments during the update process. Which of the following describes an appropriate use of code comments? ## --answers-- -A +When updates are made, the developers use line and block comments to identify each individual code update. --- -B +When updates are made, the developers leave all existing code comments intact. New comments are added to indicate when old comments no longer apply. --- -C - ---- - -D - ---- - -E +When updates are made, the developers summarize changes using block comments. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md index 8d1b02b3939..8e40b4c5df8 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following is a bad reason to use a code comment? ## --answers-- -A +To describe the high-level intent of the code. --- -B +To temporarily comment out a line of code while evaluating a feature in a different way. --- -C - ---- - -D - ---- - -E +To explain how a new C# keyword works. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 8a5e109a717..b9f4f9a7d59 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer writes an application that uses a `foreach` loop to iterate through an array containing 20 elements. After the application is complete, the developer learns that the array must be updated to include 40 elements. The application needs to examine all 40 array elements. Which of the following items describes the required code update? ## --answers-- -A +Create a second `foreach` loop that iterates through the additional items. --- -B +No changes are required to the `foreach` loop. --- -C - ---- - -D - ---- - -E +Place the original `foreach` loop inside the code block of a second `foreach` loop that iterates twice. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md index 15109e52e38..8de7fffca20 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following choices provides the best description of an Integrated Development Environment (IDE)? ## --answers-- -A +Visual Studio Code is an Integrated Development Environment. --- -B +An Integrated Development Environment is tool that makes it easier to write code. --- -C - ---- - -D - ---- - -E +An IDE is a suite of tools that supports the full software development lifecycle. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md index cb37d1e585a..1e1c1d7d48e 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following foreach statements is syntactically correct? ## --answers-- -A +`foreach (int value of values)` --- -B +`foreach (int value with values)` --- -C +`foreach (int value in values)` ---- - -D - ---- - -E ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md index bad15aec6c9..615be34010e 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer wants to create a method that returns a value in an array. Which of the following options would be a good choice for a method signature? ## --answers-- -A +`string GetValueAtIndex(string[] array, int index)` --- -B +`bool GetValueAtIndex(string[] array, int index)` --- -C - ---- - -D - ---- - -E +`int GetValueAtIndex(int index)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md index e358f171e11..4d272be5f91 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options correctly returns a `string` value? ## --answers-- -A +`return "";` --- -B +`return 'a';` --- -C - ---- - -D - ---- - -E +`return 5;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md index e35ee6ebf0e..e7a5b53ef84 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Given the method signature, `void Print(string name, string number = "", bool member = false)`, which of the following options correctly uses named and optional arguments? ## --answers-- -A +`Print("Tony", member: true);` --- -B +`Print(number: "555", member: false)` --- -C - ---- - -D - ---- - -E +`Print("Tony", false)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md index 72f335df163..29c9b5de27f 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md @@ -16,29 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of defining an optional parameter in a method? ## --answers-- -A +To cause a method to perform a different task. --- -B +To overload a method. --- -C - ---- - -D - ---- - -E +To simplify the required parameters when a parameter isn't significant to the result. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md index 79768c58db3..a3c6bd2fb43 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following correctly declares a method? ## --answers-- -A +`DisplayNumbers();` --- -B +`void DisplayNumbers{};` --- -C - ---- - -D - ---- - -E +`void DisplayNumbers() { }` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md index 36bc1153d8a..8bc70a1afb7 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options can be used set a breakpoint in Visual Studio Code? ## --answers-- -A +Left-click in the column to the left of a line number in the code editor. Correct. A breakpoint can be set by positioning the mouse pointer in the column to the left of a line number and then left-clicking. --- -B +Select Toggle Breakpoint on the Edit menu. --- -C - ---- - -D - ---- - -E +Right-click in the middle of a line of code, and then select Toggle Breakpoint. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md index f7c2bd80f6c..fca77377f58 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When should a method throw an exception? ## --answers-- -A +A method should throw an exception when the method can complete its intended purpose. --- -B +A method should throw an exception when the method can't complete its intended purpose. --- -C - ---- - -D - ---- - -E +A method should throw an exception when an exception type matches the intended purpose of the method. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/italian/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 b/curriculum/challenges/italian/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 index de7ead91e1a..21cbf8fbc0c 100644 --- a/curriculum/challenges/italian/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 +++ b/curriculum/challenges/italian/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 @@ -16,28 +16,16 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArgumentOutOfRangeException` exception thrown? ## --answers-- -A +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. -B - ---- - -C - ---- - -D - ---- - -E +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-- -4 +2 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md index bafbea0109a..9b7fa2379a5 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArrayTypeMismatchException` exception thrown? ## --answers-- -A +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to store a value of one type in an array of another type. --- -B +An `ArrayTypeMismatchException` exception is thrown when attempting to access a member on a type whose value is null. --- -C - ---- - -D - ---- - -E +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to index an array outside the bounds of the array. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md index d4a7379f578..94bd7e29624 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which section of the RUN AND DEBUG view is used to track the current point of execution within the running application? ## --answers-- -A +The VARIABLES section. --- -B +The CALL STACK section. --- -C - ---- - -D - ---- - -E +The WATCH section. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md index cabc3e7c7c7..f5cb371e48b 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the relationship between the type of exception and the information it contains? ## --answers-- -A +The type of exception determines the information it contains. --- -B +The type of exception and the information it contains are unrelated. --- -C - ---- - -D - ---- - -E +The information contained in an exception determines the type of exception. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md index 16eebc36ba9..3335e54f834 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +To sort a string array, why is it be important to use the `String.Trim()` method on each array element before sorting? ## --answers-- -A +Only string arrays with elements trimmed with `String.Trim()` can sort --- -B +`String.Trim()` removes leading white space that would sort before numbers and letters. --- -C - ---- - -D - ---- - -E +The array sort is noticeably faster using `String.Trim()` on each element. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md index c851b57cf57..8d715dd3fb6 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A piece of code must store whole numeric values between negative and positive `1,000,000`. Which data type should you choose? ## --answers-- -A +float --- -B +double --- -C - ---- - -D - ---- - -E +int ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md index 03bba10b761..10a0098944b 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What type of action is being performed when changing a `float` into an `int`? ## --answers-- -A +A narrowing conversion. --- -B +A widening conversion. --- -C - ---- - -D - ---- - -E +An illegal conversion. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md index 91df983720c..5514c317320 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the C# code `Console.WriteLine("C110".PadLeft(6, '0'));`, which is the expected output? ## --answers-- -A +`C11000` --- -B +`C110000000` --- -C - ---- - -D - ---- - -E +`00C110` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md index 4b1775fdb0a..515199832a2 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the code `decimal.TryParse(numberString, out myConvert))` when the type of `numberString` is a String. Which best describes the value type for `myConvert` when the `TryParse()` is successful? ## --answers-- -A +A string representing numeric digits. --- -B +A Boolean value. --- -C - ---- - -D - ---- - -E +A decimal ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md index 9c21fc6b655..0373b33abc7 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method finds the next index of either the `-` char, the `=` char, or the `_` char? ## --answers-- -A +`IndexOfAny()` --- -B +`Remove()` --- -C - ---- - -D - ---- - -E +`IndexOf()` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md index 3e95f452201..f117e7ee2e5 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method changes the order of items in an `string` array? ## --answers-- -A +`myArray.Resize()` --- -B +`myArray.Clear()` --- -C - ---- - -D - ---- - -E +`Array.Sort()` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md index 0b8a90caa77..de2cf0636e2 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is wrong with the following code? `int sophiaSum; Console.WriteLine("Sophia: " + sophiaSum);` ## --answers-- -A +`sophiaSum` is not initialized before use --- -B +`sophiaSum` is not implicitly typed to a string --- -C - ---- - -D - ---- - -E +`sophiaSum` should use the var keyword ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md index 7ce788fdbf9..e60bdbdee43 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Suppose `decimal gradePointAverage = 3.99872831;`. What is the value of `(int) gradePointAverage`? ## --answers-- -A +3.99 --- -B +4 --- -C - ---- - -D - ---- - -E +3 ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md index b2648681c40..ad414c61f37 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the value of the following result? `int result = 3 + 1 * 5 / 2;` ## --answers-- -A +10 --- -B +5 --- -C +6 --- -D - ---- - -E +5.5 ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md index 719992ac231..77b499bbe1c 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code correctly uses string interpolation assuming that the variable `value` is a string? ## --answers-- -A +'`Console.WriteLine(@"My value: {value}");'`' --- -B +'`Console.WriteLine($"My value: {value}");`' --- -C - ---- - -D - ---- - -E +'`Console.WriteLine(@"My value: [value]");`' ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md index c3e7bda42b3..a61a39ad190 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code creates a variable correctly? ## --answers-- -A +`int x = 12.3m;` --- -B +`decimal x = 12.3m;` --- -C - ---- - -D - ---- - -E +`bool x = 'False';` ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md index 42c2aa4d689..bc5f85082fb 100644 --- a/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md +++ b/curriculum/challenges/italian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the difference between `Console.Write` and `Console.WriteLine`? ## --answers-- -A +`Console.Write` prints the output on a new line. --- -B +`Console.WriteLine` prints the output on a new line. --- -C +`Console.WriteLine` appends a new line after the output. --- -D - ---- - -E +There is no difference. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/03-front-end-development-libraries/react/introducing-inline-styles.md b/curriculum/challenges/japanese/03-front-end-development-libraries/react/introducing-inline-styles.md index b383c635811..5834ebe0e3b 100644 --- a/curriculum/challenges/japanese/03-front-end-development-libraries/react/introducing-inline-styles.md +++ b/curriculum/challenges/japanese/03-front-end-development-libraries/react/introducing-inline-styles.md @@ -30,7 +30,7 @@ JSX 要素では `style` 属性を使用しますが、JSX のトランスパイ コードエディターで、`div` に `style` 属性を追加し、テキストに赤色を付けて、フォントサイズを `72px` にしてください。 -フォントサイズは数値でも設定できます。単位 `px` を省略するか、`72px` と記述してください。 +Note that you can optionally set the font size to be a number, omitting the units `px`, or write it as `"72px"`. # --hints-- コンポーネントで `div` 要素をレンダーします。 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md index 6d931df8429..376d4e9725a 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to iterate through an array of items to find one that matches a certain criteria. Which is the best iteration statement for this purpose? ## --answers-- -A +`foreach` --- -B +`for` --- -C - ---- - -D - ---- - -E +`while` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md index ac7f7d0fda9..447f1269b0f 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of the `break` keyword? ## --answers-- -A +The `break` keyword tells the runtime to continue evaluating other cases in the `switch` construct. --- -B +The `break` keyword tells the runtime to stop evaluating other cases in the `switch` construct. --- -C - ---- - -D - ---- - -E +The `break` keyword tells the runtime to exit the application. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md index 4041cdae752..113287cb526 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to create an iteration statement. Under what condition is a `while` statement a better choice than a `do` statement? ## --answers-- -A +When the expression values evaluated by the iteration statement are unknown prior to the iteration code block. --- -B +When the expression values evaluated by the iteration statement are known prior to the iteration code block. --- -C - ---- - -D - ---- - -E +When the developer creates nested `do` or `while` loops. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md index a12724520f7..bbc9278d006 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following describes the affect of a `using` statement? ## --answers-- -A +Affects only the first code block in the code file. --- -B +Affects only the current code block in the code file. --- -C - ---- - -D - ---- - -E +Affects all of the code in the code file. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md index 4c5ac4ee24c..e67d4aca2b4 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code is a valid use of the conditional operator? ## --answers-- -A +`int value = amount >= 10? 10: 20;` --- -B +`int value = amount >= 10: 10? 20;` --- -C - ---- - -D - ---- - -E +`int value = amount >= 10? 10| 20;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md index b64e24bd5bb..7010ecea866 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is it appropriate to use a `switch-case` construct rather than a `if-elseif-else` construct? ## --answers-- -A +A `switch-case` construct is appropriate when more than 2-3 `else if` code blocks are required. --- -B +A `switch-case` construct is appropriate when the number of `case` patterns is small. --- -C +A `switch-case` construct is appropriate when the selection statement is inside a loop. ---- - -D - ---- - -E ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md index 19f195bfec2..96748c33695 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following `for` statements is correct? ## --answers-- -A +`for (int x = 20: x < 80: x++)` --- -B +`for (int j = 0; j == 80; j + 1)` --- -C - ---- - -D - ---- - -E +`for (int counter = 20; counter < 80; counter++)` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md index 8461147396f..af2e262ec68 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the choices below is not a valid operator in C#? ## --answers-- -A +`%%` --- -B +`&&` --- -C - ---- - -D - ---- - -E +`||` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md index 4f0c1ac0764..4c251639fb3 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is an object? ## --answers-- -A +A memory address. --- -B +A stateless class. --- -C - ---- - -D - ---- - -E +An instance of a class. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 9ad399d706b..3a17a7eed28 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer is working with two other developers to update a collection of applications. The developers will use code comments during the update process. Which of the following describes an appropriate use of code comments? ## --answers-- -A +When updates are made, the developers use line and block comments to identify each individual code update. --- -B +When updates are made, the developers leave all existing code comments intact. New comments are added to indicate when old comments no longer apply. --- -C - ---- - -D - ---- - -E +When updates are made, the developers summarize changes using block comments. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md index 8d1b02b3939..8e40b4c5df8 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following is a bad reason to use a code comment? ## --answers-- -A +To describe the high-level intent of the code. --- -B +To temporarily comment out a line of code while evaluating a feature in a different way. --- -C - ---- - -D - ---- - -E +To explain how a new C# keyword works. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 8a5e109a717..b9f4f9a7d59 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer writes an application that uses a `foreach` loop to iterate through an array containing 20 elements. After the application is complete, the developer learns that the array must be updated to include 40 elements. The application needs to examine all 40 array elements. Which of the following items describes the required code update? ## --answers-- -A +Create a second `foreach` loop that iterates through the additional items. --- -B +No changes are required to the `foreach` loop. --- -C - ---- - -D - ---- - -E +Place the original `foreach` loop inside the code block of a second `foreach` loop that iterates twice. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md index 15109e52e38..8de7fffca20 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following choices provides the best description of an Integrated Development Environment (IDE)? ## --answers-- -A +Visual Studio Code is an Integrated Development Environment. --- -B +An Integrated Development Environment is tool that makes it easier to write code. --- -C - ---- - -D - ---- - -E +An IDE is a suite of tools that supports the full software development lifecycle. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md index cb37d1e585a..1e1c1d7d48e 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following foreach statements is syntactically correct? ## --answers-- -A +`foreach (int value of values)` --- -B +`foreach (int value with values)` --- -C +`foreach (int value in values)` ---- - -D - ---- - -E ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md index bad15aec6c9..615be34010e 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer wants to create a method that returns a value in an array. Which of the following options would be a good choice for a method signature? ## --answers-- -A +`string GetValueAtIndex(string[] array, int index)` --- -B +`bool GetValueAtIndex(string[] array, int index)` --- -C - ---- - -D - ---- - -E +`int GetValueAtIndex(int index)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md index e358f171e11..4d272be5f91 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options correctly returns a `string` value? ## --answers-- -A +`return "";` --- -B +`return 'a';` --- -C - ---- - -D - ---- - -E +`return 5;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md index e35ee6ebf0e..e7a5b53ef84 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Given the method signature, `void Print(string name, string number = "", bool member = false)`, which of the following options correctly uses named and optional arguments? ## --answers-- -A +`Print("Tony", member: true);` --- -B +`Print(number: "555", member: false)` --- -C - ---- - -D - ---- - -E +`Print("Tony", false)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md index 72f335df163..29c9b5de27f 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md @@ -16,29 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of defining an optional parameter in a method? ## --answers-- -A +To cause a method to perform a different task. --- -B +To overload a method. --- -C - ---- - -D - ---- - -E +To simplify the required parameters when a parameter isn't significant to the result. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md index 79768c58db3..a3c6bd2fb43 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following correctly declares a method? ## --answers-- -A +`DisplayNumbers();` --- -B +`void DisplayNumbers{};` --- -C - ---- - -D - ---- - -E +`void DisplayNumbers() { }` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md index 36bc1153d8a..8bc70a1afb7 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options can be used set a breakpoint in Visual Studio Code? ## --answers-- -A +Left-click in the column to the left of a line number in the code editor. Correct. A breakpoint can be set by positioning the mouse pointer in the column to the left of a line number and then left-clicking. --- -B +Select Toggle Breakpoint on the Edit menu. --- -C - ---- - -D - ---- - -E +Right-click in the middle of a line of code, and then select Toggle Breakpoint. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md index f7c2bd80f6c..fca77377f58 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When should a method throw an exception? ## --answers-- -A +A method should throw an exception when the method can complete its intended purpose. --- -B +A method should throw an exception when the method can't complete its intended purpose. --- -C - ---- - -D - ---- - -E +A method should throw an exception when an exception type matches the intended purpose of the method. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/japanese/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 b/curriculum/challenges/japanese/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 index de7ead91e1a..21cbf8fbc0c 100644 --- a/curriculum/challenges/japanese/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 +++ b/curriculum/challenges/japanese/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 @@ -16,28 +16,16 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArgumentOutOfRangeException` exception thrown? ## --answers-- -A +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. -B - ---- - -C - ---- - -D - ---- - -E +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-- -4 +2 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md index bafbea0109a..9b7fa2379a5 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArrayTypeMismatchException` exception thrown? ## --answers-- -A +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to store a value of one type in an array of another type. --- -B +An `ArrayTypeMismatchException` exception is thrown when attempting to access a member on a type whose value is null. --- -C - ---- - -D - ---- - -E +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to index an array outside the bounds of the array. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md index d4a7379f578..94bd7e29624 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which section of the RUN AND DEBUG view is used to track the current point of execution within the running application? ## --answers-- -A +The VARIABLES section. --- -B +The CALL STACK section. --- -C - ---- - -D - ---- - -E +The WATCH section. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md index cabc3e7c7c7..f5cb371e48b 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the relationship between the type of exception and the information it contains? ## --answers-- -A +The type of exception determines the information it contains. --- -B +The type of exception and the information it contains are unrelated. --- -C - ---- - -D - ---- - -E +The information contained in an exception determines the type of exception. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md index 16eebc36ba9..3335e54f834 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +To sort a string array, why is it be important to use the `String.Trim()` method on each array element before sorting? ## --answers-- -A +Only string arrays with elements trimmed with `String.Trim()` can sort --- -B +`String.Trim()` removes leading white space that would sort before numbers and letters. --- -C - ---- - -D - ---- - -E +The array sort is noticeably faster using `String.Trim()` on each element. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md index c851b57cf57..8d715dd3fb6 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A piece of code must store whole numeric values between negative and positive `1,000,000`. Which data type should you choose? ## --answers-- -A +float --- -B +double --- -C - ---- - -D - ---- - -E +int ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md index 03bba10b761..10a0098944b 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What type of action is being performed when changing a `float` into an `int`? ## --answers-- -A +A narrowing conversion. --- -B +A widening conversion. --- -C - ---- - -D - ---- - -E +An illegal conversion. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md index 91df983720c..5514c317320 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the C# code `Console.WriteLine("C110".PadLeft(6, '0'));`, which is the expected output? ## --answers-- -A +`C11000` --- -B +`C110000000` --- -C - ---- - -D - ---- - -E +`00C110` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md index 4b1775fdb0a..515199832a2 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the code `decimal.TryParse(numberString, out myConvert))` when the type of `numberString` is a String. Which best describes the value type for `myConvert` when the `TryParse()` is successful? ## --answers-- -A +A string representing numeric digits. --- -B +A Boolean value. --- -C - ---- - -D - ---- - -E +A decimal ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md index 9c21fc6b655..0373b33abc7 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method finds the next index of either the `-` char, the `=` char, or the `_` char? ## --answers-- -A +`IndexOfAny()` --- -B +`Remove()` --- -C - ---- - -D - ---- - -E +`IndexOf()` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md index 3e95f452201..f117e7ee2e5 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method changes the order of items in an `string` array? ## --answers-- -A +`myArray.Resize()` --- -B +`myArray.Clear()` --- -C - ---- - -D - ---- - -E +`Array.Sort()` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md index 0b8a90caa77..de2cf0636e2 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is wrong with the following code? `int sophiaSum; Console.WriteLine("Sophia: " + sophiaSum);` ## --answers-- -A +`sophiaSum` is not initialized before use --- -B +`sophiaSum` is not implicitly typed to a string --- -C - ---- - -D - ---- - -E +`sophiaSum` should use the var keyword ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md index 7ce788fdbf9..e60bdbdee43 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Suppose `decimal gradePointAverage = 3.99872831;`. What is the value of `(int) gradePointAverage`? ## --answers-- -A +3.99 --- -B +4 --- -C - ---- - -D - ---- - -E +3 ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md index b2648681c40..ad414c61f37 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the value of the following result? `int result = 3 + 1 * 5 / 2;` ## --answers-- -A +10 --- -B +5 --- -C +6 --- -D - ---- - -E +5.5 ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md index 719992ac231..77b499bbe1c 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code correctly uses string interpolation assuming that the variable `value` is a string? ## --answers-- -A +'`Console.WriteLine(@"My value: {value}");'`' --- -B +'`Console.WriteLine($"My value: {value}");`' --- -C - ---- - -D - ---- - -E +'`Console.WriteLine(@"My value: [value]");`' ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md index c3e7bda42b3..a61a39ad190 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code creates a variable correctly? ## --answers-- -A +`int x = 12.3m;` --- -B +`decimal x = 12.3m;` --- -C - ---- - -D - ---- - -E +`bool x = 'False';` ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md index 42c2aa4d689..bc5f85082fb 100644 --- a/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md +++ b/curriculum/challenges/japanese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the difference between `Console.Write` and `Console.WriteLine`? ## --answers-- -A +`Console.Write` prints the output on a new line. --- -B +`Console.WriteLine` prints the output on a new line. --- -C +`Console.WriteLine` appends a new line after the output. --- -D - ---- - -E +There is no difference. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/03-front-end-development-libraries/react/introducing-inline-styles.md b/curriculum/challenges/portuguese/03-front-end-development-libraries/react/introducing-inline-styles.md index 27b175b7c49..b63c28ec66b 100644 --- a/curriculum/challenges/portuguese/03-front-end-development-libraries/react/introducing-inline-styles.md +++ b/curriculum/challenges/portuguese/03-front-end-development-libraries/react/introducing-inline-styles.md @@ -30,7 +30,7 @@ Percebeu como colocamos em camelCase a propriedade `fontSize`? Isso é porque o Adicione um atributo `style` para o `div` no editor de código para dar ao texto a cor vermelha e tamanho da fonte de `72px`. -Note que você pode opcionalmente definir o tamanho da fonte como um número. omitindo as unidades `px`, ou escreva-o como `72px`. +Note that you can optionally set the font size to be a number, omitting the units `px`, or write it as `"72px"`. # --hints-- O componente deve renderizar um elemento `div`. diff --git a/curriculum/challenges/portuguese/03-front-end-development-libraries/react/pass-an-array-as-props.md b/curriculum/challenges/portuguese/03-front-end-development-libraries/react/pass-an-array-as-props.md index 58bcc555fff..1c9c4fd69d6 100644 --- a/curriculum/challenges/portuguese/03-front-end-development-libraries/react/pass-an-array-as-props.md +++ b/curriculum/challenges/portuguese/03-front-end-development-libraries/react/pass-an-array-as-props.md @@ -22,15 +22,15 @@ O componente filho então tem acesso às propriedades `colors` do array. Método const ChildComponent = (props) =>

{props.colors.join(', ')}

``` -This will join all `colors` array items into a comma separated string and produce: `

green, blue, red

`. Later, we will learn about other common methods to render arrays of data in React. +Isso unirá os itens do array `colors` em uma string separada por vírgulas e produzirá: `

green, blue, red

`. Mais tarde, aprenderemos sobre outros métodos comuns de se renderizar arrays de dados em React. # --instructions-- -There are `List` and `ToDo` components in the code editor. When rendering each `List` from the `ToDo` component, pass in a `tasks` property assigned to an array of to-do tasks, for example `["walk dog", "workout"]`. Then access this `tasks` array in the `List` component, showing its value within the `p` element. Use `join(", ")` to display the `props.tasks` array in the `p` element as a comma-separated list. Today's list should have at least 2 tasks and tomorrow's should have at least 3 tasks. +Existem os componentes `List` e `ToDo` no editor de código. Ao renderizar cada `List` do componente `ToDo`, passe em uma propriedade `tasks` atribuída a um array de tarefas a fazer, por exemplo `["walk dog", "workout"]`. Em seguida, acesse o array `tasks` no componente `List`, mostrando seu valor dentro do elemento `p`. Use `join(", ")` para exibir o array `props.tasks` no elemento `p` como uma lista separada por vírgulas. A lista de hoje deveria ter pelo menos 2 tarefas e a de amanhã deveria ter pelo menos 3 tarefas. # --hints-- -The `ToDo` component should return a single outer `div`. +O componente `ToDo` deve retornar um único `div` externo. ```js assert( @@ -41,7 +41,7 @@ assert( ); ``` -The third child of the `ToDo` component should be an instance of the `List` component. +O terceiro filho do componente `ToDo` deve ser uma instância do componente `List`. ```js assert( @@ -52,7 +52,7 @@ assert( ); ``` -The fifth child of the `ToDo` component should be an instance of the `List` component. +O quinto filho do componente `ToDo` deve ser uma instância do componente `List`. ```js assert( @@ -63,7 +63,7 @@ assert( ); ``` -Both instances of the `List` component should have a property called `tasks` and `tasks` should be of type array. +Ambas as instâncias do componente `List` devem ter uma propriedade chamada `tasks` e `tasks` devem ser do tipo array. ```js assert( @@ -77,7 +77,7 @@ assert( ); ``` -The first `List` component representing the tasks for today should have 2 or more items. +O primeiro componente `List` que representa as tarefas para hoje deve ter 2 ou mais itens. ```js assert( @@ -88,7 +88,7 @@ assert( ); ``` -The second `List` component representing the tasks for tomorrow should have 3 or more items. +O segundo componente `List` que representa as tarefas para amanhã deve ter 3 ou mais itens. ```js assert( @@ -99,7 +99,7 @@ assert( ); ``` -The `List` component should render the value from the `tasks` prop in the `p` tag. +O componente `List` deve renderizar o valor da propriedade `tasks` na tag `p`. ```js assert( diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md index a14da720b25..a76af24b9a1 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +A developer needs to iterate through an array of items to find one that matches a certain criteria. Which is the best iteration statement for this purpose? ## --answers-- -A +`foreach` --- -B +`for` --- -C - ---- - -D - ---- - -E +`while` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md index c5fa08ec070..63b319ad3c9 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +What is the purpose of the `break` keyword? ## --answers-- -A +The `break` keyword tells the runtime to continue evaluating other cases in the `switch` construct. --- -B +The `break` keyword tells the runtime to stop evaluating other cases in the `switch` construct. --- -C - ---- - -D - ---- - -E +The `break` keyword tells the runtime to exit the application. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md index b58771821d9..1d8fff126ff 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +A developer needs to create an iteration statement. Under what condition is a `while` statement a better choice than a `do` statement? ## --answers-- -A +When the expression values evaluated by the iteration statement are unknown prior to the iteration code block. --- -B +When the expression values evaluated by the iteration statement are known prior to the iteration code block. --- -C - ---- - -D - ---- - -E +When the developer creates nested `do` or `while` loops. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md index 294943a9e32..a9710c5fedf 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which of the following describes the affect of a `using` statement? ## --answers-- -A +Affects only the first code block in the code file. --- -B +Affects only the current code block in the code file. --- -C - ---- - -D - ---- - -E +Affects all of the code in the code file. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md index 21ded3c67fa..d5492b24870 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which of the following lines of code is a valid use of the conditional operator? ## --answers-- -A +`int value = amount >= 10? 10: 20;` --- -B +`int value = amount >= 10: 10? 20;` --- -C - ---- - -D - ---- - -E +`int value = amount >= 10? 10| 20;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md index 5e60325c4e3..0ee8707742a 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,21 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +When is it appropriate to use a `switch-case` construct rather than a `if-elseif-else` construct? ## --answers-- -A +A `switch-case` construct is appropriate when more than 2-3 `else if` code blocks are required. --- -B +A `switch-case` construct is appropriate when the number of `case` patterns is small. --- -C +A `switch-case` construct is appropriate when the selection statement is inside a loop. ---- - -D - ---- - -E ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md index 9c7744f1eeb..469e5ac6190 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which of the following `for` statements is correct? ## --answers-- -A +`for (int x = 20: x < 80: x++)` --- -B +`for (int j = 0; j == 80; j + 1)` --- -C - ---- - -D - ---- - -E +`for (int counter = 20; counter < 80; counter++)` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md index 45530d7345a..1e6ecb55abc 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which of the choices below is not a valid operator in C#? ## --answers-- -A +`%%` --- -B +`&&` --- -C - ---- - -D - ---- - -E +`||` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md index e622ffd096a..62ed1993498 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +What is an object? ## --answers-- -A +A memory address. --- -B +A stateless class. --- -C - ---- - -D - ---- - -E +An instance of a class. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 98bc6857b13..4b223085844 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +A developer is working with two other developers to update a collection of applications. The developers will use code comments during the update process. Which of the following describes an appropriate use of code comments? ## --answers-- -A +When updates are made, the developers use line and block comments to identify each individual code update. --- -B +When updates are made, the developers leave all existing code comments intact. New comments are added to indicate when old comments no longer apply. --- -C - ---- - -D - ---- - -E +When updates are made, the developers summarize changes using block comments. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md index 474d05e106e..bc45e8f8002 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which of the following is a bad reason to use a code comment? ## --answers-- -A +To describe the high-level intent of the code. --- -B +To temporarily comment out a line of code while evaluating a feature in a different way. --- -C - ---- - -D - ---- - -E +To explain how a new C# keyword works. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 82ea436e0e6..a3ed3999ca8 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +A developer writes an application that uses a `foreach` loop to iterate through an array containing 20 elements. After the application is complete, the developer learns that the array must be updated to include 40 elements. The application needs to examine all 40 array elements. Which of the following items describes the required code update? ## --answers-- -A +Create a second `foreach` loop that iterates through the additional items. --- -B +No changes are required to the `foreach` loop. --- -C - ---- - -D - ---- - -E +Place the original `foreach` loop inside the code block of a second `foreach` loop that iterates twice. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md index fdd2d27efd0..7f64fce461c 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which of the following choices provides the best description of an Integrated Development Environment (IDE)? ## --answers-- -A +Visual Studio Code is an Integrated Development Environment. --- -B +An Integrated Development Environment is tool that makes it easier to write code. --- -C - ---- - -D - ---- - -E +An IDE is a suite of tools that supports the full software development lifecycle. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md index 201c2eb96d7..3f9462bdea3 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md @@ -16,28 +16,21 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which of the following foreach statements is syntactically correct? ## --answers-- -A +`foreach (int value of values)` --- -B +`foreach (int value with values)` --- -C +`foreach (int value in values)` ---- - -D - ---- - -E ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md index f90aa46f64d..36250a25e7d 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +A developer wants to create a method that returns a value in an array. Which of the following options would be a good choice for a method signature? ## --answers-- -A +`string GetValueAtIndex(string[] array, int index)` --- -B +`bool GetValueAtIndex(string[] array, int index)` --- -C - ---- - -D - ---- - -E +`int GetValueAtIndex(int index)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md index 612ad8e8483..bc7121dc4fa 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which of the following options correctly returns a `string` value? ## --answers-- -A +`return "";` --- -B +`return 'a';` --- -C - ---- - -D - ---- - -E +`return 5;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md index c86aac73ddb..61f40b07dcd 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Given the method signature, `void Print(string name, string number = "", bool member = false)`, which of the following options correctly uses named and optional arguments? ## --answers-- -A +`Print("Tony", member: true);` --- -B +`Print(number: "555", member: false)` --- -C - ---- - -D - ---- - -E +`Print("Tony", false)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md index 084abd885a9..1dd257c036e 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md @@ -16,29 +16,21 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +What is the purpose of defining an optional parameter in a method? ## --answers-- -A +To cause a method to perform a different task. --- -B +To overload a method. --- -C - ---- - -D - ---- - -E +To simplify the required parameters when a parameter isn't significant to the result. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md index 00de106abd3..40d52ced4a9 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which of the following correctly declares a method? ## --answers-- -A +`DisplayNumbers();` --- -B +`void DisplayNumbers{};` --- -C - ---- - -D - ---- - -E +`void DisplayNumbers() { }` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md index 06e80827810..d82f9050c0b 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which of the following options can be used set a breakpoint in Visual Studio Code? ## --answers-- -A +Left-click in the column to the left of a line number in the code editor. Correct. A breakpoint can be set by positioning the mouse pointer in the column to the left of a line number and then left-clicking. --- -B +Select Toggle Breakpoint on the Edit menu. --- -C - ---- - -D - ---- - -E +Right-click in the middle of a line of code, and then select Toggle Breakpoint. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md index d2cb7fe8345..4fd0b4f465d 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +When should a method throw an exception? ## --answers-- -A +A method should throw an exception when the method can complete its intended purpose. --- -B +A method should throw an exception when the method can't complete its intended purpose. --- -C - ---- - -D - ---- - -E +A method should throw an exception when an exception type matches the intended purpose of the method. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/portuguese/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 b/curriculum/challenges/portuguese/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 index 9e813802a61..d63cae1b1bd 100644 --- a/curriculum/challenges/portuguese/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 +++ b/curriculum/challenges/portuguese/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 @@ -16,28 +16,16 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +When is an `ArgumentOutOfRangeException` exception thrown? ## --answers-- -A +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. -B - ---- - -C - ---- - -D - ---- - -E +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-- -4 +2 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md index a9ab645e7e3..1b8541015b7 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +When is an `ArrayTypeMismatchException` exception thrown? ## --answers-- -A +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to store a value of one type in an array of another type. --- -B +An `ArrayTypeMismatchException` exception is thrown when attempting to access a member on a type whose value is null. --- -C - ---- - -D - ---- - -E +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to index an array outside the bounds of the array. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md index 1c26fe40b17..eed7fc7edad 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which section of the RUN AND DEBUG view is used to track the current point of execution within the running application? ## --answers-- -A +The VARIABLES section. --- -B +The CALL STACK section. --- -C - ---- - -D - ---- - -E +The WATCH section. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md index 52970d631a5..07c78bf91c1 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +What is the relationship between the type of exception and the information it contains? ## --answers-- -A +The type of exception determines the information it contains. --- -B +The type of exception and the information it contains are unrelated. --- -C - ---- - -D - ---- - -E +The information contained in an exception determines the type of exception. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md index b30933d1339..ca016d5278c 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +To sort a string array, why is it be important to use the `String.Trim()` method on each array element before sorting? ## --answers-- -A +Only string arrays with elements trimmed with `String.Trim()` can sort --- -B +`String.Trim()` removes leading white space that would sort before numbers and letters. --- -C - ---- - -D - ---- - -E +The array sort is noticeably faster using `String.Trim()` on each element. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md index 31c8b783862..57d58f3e75b 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +A piece of code must store whole numeric values between negative and positive `1,000,000`. Which data type should you choose? ## --answers-- -A +float --- -B +double --- -C - ---- - -D - ---- - -E +int ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md index c3efd0a92ee..cd1976d4496 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +What type of action is being performed when changing a `float` into an `int`? ## --answers-- -A +A narrowing conversion. --- -B +A widening conversion. --- -C - ---- - -D - ---- - -E +An illegal conversion. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md index 97c10bc9460..c34f3d93f47 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +For the C# code `Console.WriteLine("C110".PadLeft(6, '0'));`, which is the expected output? ## --answers-- -A +`C11000` --- -B +`C110000000` --- -C - ---- - -D - ---- - -E +`00C110` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md index d5cc42df953..96dffe63c5b 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +For the code `decimal.TryParse(numberString, out myConvert))` when the type of `numberString` is a String. Which best describes the value type for `myConvert` when the `TryParse()` is successful? ## --answers-- -A +A string representing numeric digits. --- -B +A Boolean value. --- -C - ---- - -D - ---- - -E +A decimal ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md index 917c70efb25..3037c53eea2 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which method finds the next index of either the `-` char, the `=` char, or the `_` char? ## --answers-- -A +`IndexOfAny()` --- -B +`Remove()` --- -C - ---- - -D - ---- - -E +`IndexOf()` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md index ea9f1fadc49..c24ffbc3060 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which method changes the order of items in an `string` array? ## --answers-- -A +`myArray.Resize()` --- -B +`myArray.Clear()` --- -C - ---- - -D - ---- - -E +`Array.Sort()` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md index 031b3678681..6fb7fdc2928 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +What is wrong with the following code? `int sophiaSum; Console.WriteLine("Sophia: " + sophiaSum);` ## --answers-- -A +`sophiaSum` is not initialized before use --- -B +`sophiaSum` is not implicitly typed to a string --- -C - ---- - -D - ---- - -E +`sophiaSum` should use the var keyword ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md index eb3ee477577..ee6cda863dd 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Suppose `decimal gradePointAverage = 3.99872831;`. What is the value of `(int) gradePointAverage`? ## --answers-- -A +3.99 --- -B +4 --- -C - ---- - -D - ---- - -E +3 ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md index 22f4fa83c07..b15e06f2768 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md @@ -16,28 +16,24 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +What is the value of the following result? `int result = 3 + 1 * 5 / 2;` ## --answers-- -A +10 --- -B +5 --- -C +6 --- -D - ---- - -E +5.5 ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md index 4f3367d8ffd..25e4cbacde5 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which of the following lines of code correctly uses string interpolation assuming that the variable `value` is a string? ## --answers-- -A +'`Console.WriteLine(@"My value: {value}");'`' --- -B +'`Console.WriteLine($"My value: {value}");`' --- -C - ---- - -D - ---- - -E +'`Console.WriteLine(@"My value: [value]");`' ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md index 28965e683cc..c52b1861390 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md @@ -16,28 +16,20 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +Which of the following lines of code creates a variable correctly? ## --answers-- -A +`int x = 12.3m;` --- -B +`decimal x = 12.3m;` --- -C - ---- - -D - ---- - -E +`bool x = 'False';` ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md index f7264ebbd3c..bf60986c948 100644 --- a/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md +++ b/curriculum/challenges/portuguese/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md @@ -16,28 +16,24 @@ Este desafio será parcialmente concluído na plataforma de aprendizagem da Micr ## --text-- -O que é o C#? +What is the difference between `Console.Write` and `Console.WriteLine`? ## --answers-- -A +`Console.Write` prints the output on a new line. --- -B +`Console.WriteLine` prints the output on a new line. --- -C +`Console.WriteLine` appends a new line after the output. --- -D - ---- - -E +There is no difference. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/03-front-end-development-libraries/react/introducing-inline-styles.md b/curriculum/challenges/swahili/03-front-end-development-libraries/react/introducing-inline-styles.md index ffd86fd7d63..067d47f8243 100644 --- a/curriculum/challenges/swahili/03-front-end-development-libraries/react/introducing-inline-styles.md +++ b/curriculum/challenges/swahili/03-front-end-development-libraries/react/introducing-inline-styles.md @@ -30,7 +30,7 @@ Notice how we camelCase the `fontSize` property? This is because React will not Add a `style` attribute to the `div` in the code editor to give the text a color of red and font size of `72px`. -Note that you can optionally set the font size to be a number, omitting the units `px`, or write it as `72px`. +Note that you can optionally set the font size to be a number, omitting the units `px`, or write it as `"72px"`. # --hints-- The component should render a `div` element. diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md index 6d931df8429..376d4e9725a 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to iterate through an array of items to find one that matches a certain criteria. Which is the best iteration statement for this purpose? ## --answers-- -A +`foreach` --- -B +`for` --- -C - ---- - -D - ---- - -E +`while` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md index ac7f7d0fda9..447f1269b0f 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of the `break` keyword? ## --answers-- -A +The `break` keyword tells the runtime to continue evaluating other cases in the `switch` construct. --- -B +The `break` keyword tells the runtime to stop evaluating other cases in the `switch` construct. --- -C - ---- - -D - ---- - -E +The `break` keyword tells the runtime to exit the application. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md index 4041cdae752..113287cb526 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to create an iteration statement. Under what condition is a `while` statement a better choice than a `do` statement? ## --answers-- -A +When the expression values evaluated by the iteration statement are unknown prior to the iteration code block. --- -B +When the expression values evaluated by the iteration statement are known prior to the iteration code block. --- -C - ---- - -D - ---- - -E +When the developer creates nested `do` or `while` loops. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md index a12724520f7..bbc9278d006 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following describes the affect of a `using` statement? ## --answers-- -A +Affects only the first code block in the code file. --- -B +Affects only the current code block in the code file. --- -C - ---- - -D - ---- - -E +Affects all of the code in the code file. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md index 4c5ac4ee24c..e67d4aca2b4 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code is a valid use of the conditional operator? ## --answers-- -A +`int value = amount >= 10? 10: 20;` --- -B +`int value = amount >= 10: 10? 20;` --- -C - ---- - -D - ---- - -E +`int value = amount >= 10? 10| 20;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md index b64e24bd5bb..7010ecea866 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is it appropriate to use a `switch-case` construct rather than a `if-elseif-else` construct? ## --answers-- -A +A `switch-case` construct is appropriate when more than 2-3 `else if` code blocks are required. --- -B +A `switch-case` construct is appropriate when the number of `case` patterns is small. --- -C +A `switch-case` construct is appropriate when the selection statement is inside a loop. ---- - -D - ---- - -E ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md index 19f195bfec2..96748c33695 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following `for` statements is correct? ## --answers-- -A +`for (int x = 20: x < 80: x++)` --- -B +`for (int j = 0; j == 80; j + 1)` --- -C - ---- - -D - ---- - -E +`for (int counter = 20; counter < 80; counter++)` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md index 8461147396f..af2e262ec68 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the choices below is not a valid operator in C#? ## --answers-- -A +`%%` --- -B +`&&` --- -C - ---- - -D - ---- - -E +`||` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md index 4f0c1ac0764..4c251639fb3 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is an object? ## --answers-- -A +A memory address. --- -B +A stateless class. --- -C - ---- - -D - ---- - -E +An instance of a class. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 9ad399d706b..3a17a7eed28 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer is working with two other developers to update a collection of applications. The developers will use code comments during the update process. Which of the following describes an appropriate use of code comments? ## --answers-- -A +When updates are made, the developers use line and block comments to identify each individual code update. --- -B +When updates are made, the developers leave all existing code comments intact. New comments are added to indicate when old comments no longer apply. --- -C - ---- - -D - ---- - -E +When updates are made, the developers summarize changes using block comments. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md index 8d1b02b3939..8e40b4c5df8 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following is a bad reason to use a code comment? ## --answers-- -A +To describe the high-level intent of the code. --- -B +To temporarily comment out a line of code while evaluating a feature in a different way. --- -C - ---- - -D - ---- - -E +To explain how a new C# keyword works. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 8a5e109a717..b9f4f9a7d59 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer writes an application that uses a `foreach` loop to iterate through an array containing 20 elements. After the application is complete, the developer learns that the array must be updated to include 40 elements. The application needs to examine all 40 array elements. Which of the following items describes the required code update? ## --answers-- -A +Create a second `foreach` loop that iterates through the additional items. --- -B +No changes are required to the `foreach` loop. --- -C - ---- - -D - ---- - -E +Place the original `foreach` loop inside the code block of a second `foreach` loop that iterates twice. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md index 15109e52e38..8de7fffca20 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following choices provides the best description of an Integrated Development Environment (IDE)? ## --answers-- -A +Visual Studio Code is an Integrated Development Environment. --- -B +An Integrated Development Environment is tool that makes it easier to write code. --- -C - ---- - -D - ---- - -E +An IDE is a suite of tools that supports the full software development lifecycle. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md index cb37d1e585a..1e1c1d7d48e 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following foreach statements is syntactically correct? ## --answers-- -A +`foreach (int value of values)` --- -B +`foreach (int value with values)` --- -C +`foreach (int value in values)` ---- - -D - ---- - -E ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md index bad15aec6c9..615be34010e 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer wants to create a method that returns a value in an array. Which of the following options would be a good choice for a method signature? ## --answers-- -A +`string GetValueAtIndex(string[] array, int index)` --- -B +`bool GetValueAtIndex(string[] array, int index)` --- -C - ---- - -D - ---- - -E +`int GetValueAtIndex(int index)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md index e358f171e11..4d272be5f91 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options correctly returns a `string` value? ## --answers-- -A +`return "";` --- -B +`return 'a';` --- -C - ---- - -D - ---- - -E +`return 5;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md index e35ee6ebf0e..e7a5b53ef84 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Given the method signature, `void Print(string name, string number = "", bool member = false)`, which of the following options correctly uses named and optional arguments? ## --answers-- -A +`Print("Tony", member: true);` --- -B +`Print(number: "555", member: false)` --- -C - ---- - -D - ---- - -E +`Print("Tony", false)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md index 72f335df163..29c9b5de27f 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md @@ -16,29 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of defining an optional parameter in a method? ## --answers-- -A +To cause a method to perform a different task. --- -B +To overload a method. --- -C - ---- - -D - ---- - -E +To simplify the required parameters when a parameter isn't significant to the result. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md index 79768c58db3..a3c6bd2fb43 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following correctly declares a method? ## --answers-- -A +`DisplayNumbers();` --- -B +`void DisplayNumbers{};` --- -C - ---- - -D - ---- - -E +`void DisplayNumbers() { }` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md index 36bc1153d8a..8bc70a1afb7 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options can be used set a breakpoint in Visual Studio Code? ## --answers-- -A +Left-click in the column to the left of a line number in the code editor. Correct. A breakpoint can be set by positioning the mouse pointer in the column to the left of a line number and then left-clicking. --- -B +Select Toggle Breakpoint on the Edit menu. --- -C - ---- - -D - ---- - -E +Right-click in the middle of a line of code, and then select Toggle Breakpoint. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md index f7c2bd80f6c..fca77377f58 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When should a method throw an exception? ## --answers-- -A +A method should throw an exception when the method can complete its intended purpose. --- -B +A method should throw an exception when the method can't complete its intended purpose. --- -C - ---- - -D - ---- - -E +A method should throw an exception when an exception type matches the intended purpose of the method. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/swahili/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 b/curriculum/challenges/swahili/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 index de7ead91e1a..21cbf8fbc0c 100644 --- a/curriculum/challenges/swahili/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 +++ b/curriculum/challenges/swahili/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 @@ -16,28 +16,16 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArgumentOutOfRangeException` exception thrown? ## --answers-- -A +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. -B - ---- - -C - ---- - -D - ---- - -E +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-- -4 +2 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md index bafbea0109a..9b7fa2379a5 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArrayTypeMismatchException` exception thrown? ## --answers-- -A +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to store a value of one type in an array of another type. --- -B +An `ArrayTypeMismatchException` exception is thrown when attempting to access a member on a type whose value is null. --- -C - ---- - -D - ---- - -E +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to index an array outside the bounds of the array. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md index d4a7379f578..94bd7e29624 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which section of the RUN AND DEBUG view is used to track the current point of execution within the running application? ## --answers-- -A +The VARIABLES section. --- -B +The CALL STACK section. --- -C - ---- - -D - ---- - -E +The WATCH section. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md index cabc3e7c7c7..f5cb371e48b 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the relationship between the type of exception and the information it contains? ## --answers-- -A +The type of exception determines the information it contains. --- -B +The type of exception and the information it contains are unrelated. --- -C - ---- - -D - ---- - -E +The information contained in an exception determines the type of exception. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md index 16eebc36ba9..3335e54f834 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +To sort a string array, why is it be important to use the `String.Trim()` method on each array element before sorting? ## --answers-- -A +Only string arrays with elements trimmed with `String.Trim()` can sort --- -B +`String.Trim()` removes leading white space that would sort before numbers and letters. --- -C - ---- - -D - ---- - -E +The array sort is noticeably faster using `String.Trim()` on each element. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md index c851b57cf57..8d715dd3fb6 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A piece of code must store whole numeric values between negative and positive `1,000,000`. Which data type should you choose? ## --answers-- -A +float --- -B +double --- -C - ---- - -D - ---- - -E +int ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md index 03bba10b761..10a0098944b 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What type of action is being performed when changing a `float` into an `int`? ## --answers-- -A +A narrowing conversion. --- -B +A widening conversion. --- -C - ---- - -D - ---- - -E +An illegal conversion. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md index 91df983720c..5514c317320 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the C# code `Console.WriteLine("C110".PadLeft(6, '0'));`, which is the expected output? ## --answers-- -A +`C11000` --- -B +`C110000000` --- -C - ---- - -D - ---- - -E +`00C110` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md index 4b1775fdb0a..515199832a2 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the code `decimal.TryParse(numberString, out myConvert))` when the type of `numberString` is a String. Which best describes the value type for `myConvert` when the `TryParse()` is successful? ## --answers-- -A +A string representing numeric digits. --- -B +A Boolean value. --- -C - ---- - -D - ---- - -E +A decimal ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md index 9c21fc6b655..0373b33abc7 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method finds the next index of either the `-` char, the `=` char, or the `_` char? ## --answers-- -A +`IndexOfAny()` --- -B +`Remove()` --- -C - ---- - -D - ---- - -E +`IndexOf()` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md index 3e95f452201..f117e7ee2e5 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method changes the order of items in an `string` array? ## --answers-- -A +`myArray.Resize()` --- -B +`myArray.Clear()` --- -C - ---- - -D - ---- - -E +`Array.Sort()` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md index 0b8a90caa77..de2cf0636e2 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is wrong with the following code? `int sophiaSum; Console.WriteLine("Sophia: " + sophiaSum);` ## --answers-- -A +`sophiaSum` is not initialized before use --- -B +`sophiaSum` is not implicitly typed to a string --- -C - ---- - -D - ---- - -E +`sophiaSum` should use the var keyword ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md index 7ce788fdbf9..e60bdbdee43 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Suppose `decimal gradePointAverage = 3.99872831;`. What is the value of `(int) gradePointAverage`? ## --answers-- -A +3.99 --- -B +4 --- -C - ---- - -D - ---- - -E +3 ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md index b2648681c40..ad414c61f37 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the value of the following result? `int result = 3 + 1 * 5 / 2;` ## --answers-- -A +10 --- -B +5 --- -C +6 --- -D - ---- - -E +5.5 ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md index 719992ac231..77b499bbe1c 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code correctly uses string interpolation assuming that the variable `value` is a string? ## --answers-- -A +'`Console.WriteLine(@"My value: {value}");'`' --- -B +'`Console.WriteLine($"My value: {value}");`' --- -C - ---- - -D - ---- - -E +'`Console.WriteLine(@"My value: [value]");`' ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md index c3e7bda42b3..a61a39ad190 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code creates a variable correctly? ## --answers-- -A +`int x = 12.3m;` --- -B +`decimal x = 12.3m;` --- -C - ---- - -D - ---- - -E +`bool x = 'False';` ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md index 42c2aa4d689..bc5f85082fb 100644 --- a/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md +++ b/curriculum/challenges/swahili/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the difference between `Console.Write` and `Console.WriteLine`? ## --answers-- -A +`Console.Write` prints the output on a new line. --- -B +`Console.WriteLine` prints the output on a new line. --- -C +`Console.WriteLine` appends a new line after the output. --- -D - ---- - -E +There is no difference. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/03-front-end-development-libraries/react/introducing-inline-styles.md b/curriculum/challenges/ukrainian/03-front-end-development-libraries/react/introducing-inline-styles.md index 78d00886ae2..0f13babe6c8 100644 --- a/curriculum/challenges/ukrainian/03-front-end-development-libraries/react/introducing-inline-styles.md +++ b/curriculum/challenges/ukrainian/03-front-end-development-libraries/react/introducing-inline-styles.md @@ -30,7 +30,7 @@ dashedName: introducing-inline-styles Додайте атрибут `style` до `div` в редактор коду, щоб надати тексту червоного кольору а шрифту розміру `72px`. -Зверніть увагу, ви можете за необхідністю встановити розмір шрифту як номер, пропускаючи одиниці виміру `px`, або записати це як `72px`. +Note that you can optionally set the font size to be a number, omitting the units `px`, or write it as `"72px"`. # --hints-- Компонент повинен відображати елемент `div`. diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md index 6d931df8429..376d4e9725a 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/add-looping-logic-to-your-code-using-the-do-while-and-while-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to iterate through an array of items to find one that matches a certain criteria. Which is the best iteration statement for this purpose? ## --answers-- -A +`foreach` --- -B +`for` --- -C - ---- - -D - ---- - -E +`while` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md index ac7f7d0fda9..447f1269b0f 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/branch-the-flow-of-code-using-the-switch-case-construct-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of the `break` keyword? ## --answers-- -A +The `break` keyword tells the runtime to continue evaluating other cases in the `switch` construct. --- -B +The `break` keyword tells the runtime to stop evaluating other cases in the `switch` construct. --- -C - ---- - -D - ---- - -E +The `break` keyword tells the runtime to exit the application. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md index 4041cdae752..113287cb526 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/challenge-project-develop-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer needs to create an iteration statement. Under what condition is a `while` statement a better choice than a `do` statement? ## --answers-- -A +When the expression values evaluated by the iteration statement are unknown prior to the iteration code block. --- -B +When the expression values evaluated by the iteration statement are known prior to the iteration code block. --- -C - ---- - -D - ---- - -E +When the developer creates nested `do` or `while` loops. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md index a12724520f7..bbc9278d006 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/control-variable-scope-and-logic-using-code-blocks-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following describes the affect of a `using` statement? ## --answers-- -A +Affects only the first code block in the code file. --- -B +Affects only the current code block in the code file. --- -C - ---- - -D - ---- - -E +Affects all of the code in the code file. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md index 4c5ac4ee24c..e67d4aca2b4 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/evaluate-boolean-expressions-to-make-decisions-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code is a valid use of the conditional operator? ## --answers-- -A +`int value = amount >= 10? 10: 20;` --- -B +`int value = amount >= 10: 10? 20;` --- -C - ---- - -D - ---- - -E +`int value = amount >= 10? 10| 20;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md index b64e24bd5bb..7010ecea866 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/guided-project-develop-conditional-branching-and-looping-structures-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is it appropriate to use a `switch-case` construct rather than a `if-elseif-else` construct? ## --answers-- -A +A `switch-case` construct is appropriate when more than 2-3 `else if` code blocks are required. --- -B +A `switch-case` construct is appropriate when the number of `case` patterns is small. --- -C +A `switch-case` construct is appropriate when the selection statement is inside a loop. ---- - -D - ---- - -E ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md index 19f195bfec2..96748c33695 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/add-logic-to-c-sharp-console-applications/iterate-through-a-code-block-using-the-for-statement-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following `for` statements is correct? ## --answers-- -A +`for (int x = 20: x < 80: x++)` --- -B +`for (int j = 0; j == 80; j + 1)` --- -C - ---- - -D - ---- - -E +`for (int counter = 20; counter < 80; counter++)` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md index 8461147396f..af2e262ec68 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/add-decision-logic-to-your-code-using-if-else-and-else-if-statements-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the choices below is not a valid operator in C#? ## --answers-- -A +`%%` --- -B +`&&` --- -C - ---- - -D - ---- - -E +`||` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md index 4f0c1ac0764..4c251639fb3 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/call-methods-from-the-dot-net-class-library-using-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is an object? ## --answers-- -A +A memory address. --- -B +A stateless class. --- -C - ---- - -D - ---- - -E +An instance of a class. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 9ad399d706b..3a17a7eed28 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/challenge-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer is working with two other developers to update a collection of applications. The developers will use code comments during the update process. Which of the following describes an appropriate use of code comments? ## --answers-- -A +When updates are made, the developers use line and block comments to identify each individual code update. --- -B +When updates are made, the developers leave all existing code comments intact. New comments are added to indicate when old comments no longer apply. --- -C - ---- - -D - ---- - -E +When updates are made, the developers summarize changes using block comments. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md index 8d1b02b3939..8e40b4c5df8 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/create-readable-code-with-conventions-whitespace-and-comments-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following is a bad reason to use a code comment? ## --answers-- -A +To describe the high-level intent of the code. --- -B +To temporarily comment out a line of code while evaluating a feature in a different way. --- -C - ---- - -D - ---- - -E +To explain how a new C# keyword works. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md index 8a5e109a717..b9f4f9a7d59 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/guided-project-develop-foreach-and-if-elseif-else-structures-to-process-array-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer writes an application that uses a `foreach` loop to iterate through an array containing 20 elements. After the application is complete, the developer learns that the array must be updated to include 40 elements. The application needs to examine all 40 array elements. Which of the following items describes the required code update? ## --answers-- -A +Create a second `foreach` loop that iterates through the additional items. --- -B +No changes are required to the `foreach` loop. --- -C - ---- - -D - ---- - -E +Place the original `foreach` loop inside the code block of a second `foreach` loop that iterates twice. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md index 15109e52e38..8de7fffca20 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/install-and-configure-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following choices provides the best description of an Integrated Development Environment (IDE)? ## --answers-- -A +Visual Studio Code is an Integrated Development Environment. --- -B +An Integrated Development Environment is tool that makes it easier to write code. --- -C - ---- - -D - ---- - -E +An IDE is a suite of tools that supports the full software development lifecycle. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md index cb37d1e585a..1e1c1d7d48e 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-and-run-simple-c-sharp-console-applications/store-and-iterate-through-sequences-of-data-using-arrays-and-the-foreach-statement-in-c-sharp.md @@ -16,28 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following foreach statements is syntactically correct? ## --answers-- -A +`foreach (int value of values)` --- -B +`foreach (int value with values)` --- -C +`foreach (int value in values)` ---- - -D - ---- - -E ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md index bad15aec6c9..615be34010e 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/challenge-project-create-a-mini-game.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A developer wants to create a method that returns a value in an array. Which of the following options would be a good choice for a method signature? ## --answers-- -A +`string GetValueAtIndex(string[] array, int index)` --- -B +`bool GetValueAtIndex(string[] array, int index)` --- -C - ---- - -D - ---- - -E +`int GetValueAtIndex(int index)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md index e358f171e11..4d272be5f91 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-that-return-values.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options correctly returns a `string` value? ## --answers-- -A +`return "";` --- -B +`return 'a';` --- -C - ---- - -D - ---- - -E +`return 5;` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md index e35ee6ebf0e..e7a5b53ef84 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/create-c-sharp-methods-with-parameters.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Given the method signature, `void Print(string name, string number = "", bool member = false)`, which of the following options correctly uses named and optional arguments? ## --answers-- -A +`Print("Tony", member: true);` --- -B +`Print(number: "555", member: false)` --- -C - ---- - -D - ---- - -E +`Print("Tony", false)` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md index 72f335df163..29c9b5de27f 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/guided-project-plan-a-petting-zoo-visit.md @@ -16,29 +16,21 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the purpose of defining an optional parameter in a method? ## --answers-- -A +To cause a method to perform a different task. --- -B +To overload a method. --- -C - ---- - -D - ---- - -E +To simplify the required parameters when a parameter isn't significant to the result. ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md index 79768c58db3..a3c6bd2fb43 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/create-methods-in-c-sharp-console-applications/write-your-first-c-sharp-method.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following correctly declares a method? ## --answers-- -A +`DisplayNumbers();` --- -B +`void DisplayNumbers{};` --- -C - ---- - -D - ---- - -E +`void DisplayNumbers() { }` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md index 36bc1153d8a..8bc70a1afb7 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/challenge-project-debug-a-c-sharp-console-application-using-visual-studio-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following options can be used set a breakpoint in Visual Studio Code? ## --answers-- -A +Left-click in the column to the left of a line number in the code editor. Correct. A breakpoint can be set by positioning the mouse pointer in the column to the left of a line number and then left-clicking. --- -B +Select Toggle Breakpoint on the Edit menu. --- -C - ---- - -D - ---- - -E +Right-click in the middle of a line of code, and then select Toggle Breakpoint. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md index f7c2bd80f6c..fca77377f58 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/create-and-throw-exceptions-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When should a method throw an exception? ## --answers-- -A +A method should throw an exception when the method can complete its intended purpose. --- -B +A method should throw an exception when the method can't complete its intended purpose. --- -C - ---- - -D - ---- - -E +A method should throw an exception when an exception type matches the intended purpose of the method. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/ukrainian/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 b/curriculum/challenges/ukrainian/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 index de7ead91e1a..21cbf8fbc0c 100644 --- a/curriculum/challenges/ukrainian/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 +++ b/curriculum/challenges/ukrainian/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 @@ -16,28 +16,16 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArgumentOutOfRangeException` exception thrown? ## --answers-- -A +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. -B - ---- - -C - ---- - -D - ---- - -E +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-- -4 +2 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md index bafbea0109a..9b7fa2379a5 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +When is an `ArrayTypeMismatchException` exception thrown? ## --answers-- -A +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to store a value of one type in an array of another type. --- -B +An `ArrayTypeMismatchException` exception is thrown when attempting to access a member on a type whose value is null. --- -C - ---- - -D - ---- - -E +An `ArrayTypeMismatchException` exception is thrown when an attempt is made to index an array outside the bounds of the array. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md index d4a7379f578..94bd7e29624 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-the-visual-studio-code-debugging-tools-for-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which section of the RUN AND DEBUG view is used to track the current point of execution within the running application? ## --answers-- -A +The VARIABLES section. --- -B +The CALL STACK section. --- -C - ---- - -D - ---- - -E +The WATCH section. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md index cabc3e7c7c7..f5cb371e48b 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/review-the-principles-of-code-debugging-and-exception-handling.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the relationship between the type of exception and the information it contains? ## --answers-- -A +The type of exception determines the information it contains. --- -B +The type of exception and the information it contains are unrelated. --- -C - ---- - -D - ---- - -E +The information contained in an exception determines the type of exception. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md index 16eebc36ba9..3335e54f834 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/challenge-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +To sort a string array, why is it be important to use the `String.Trim()` method on each array element before sorting? ## --answers-- -A +Only string arrays with elements trimmed with `String.Trim()` can sort --- -B +`String.Trim()` removes leading white space that would sort before numbers and letters. --- -C - ---- - -D - ---- - -E +The array sort is noticeably faster using `String.Trim()` on each element. ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md index c851b57cf57..8d715dd3fb6 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/choose-the-correct-data-type-in-your-c-sharp-code.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +A piece of code must store whole numeric values between negative and positive `1,000,000`. Which data type should you choose? ## --answers-- -A +float --- -B +double --- -C - ---- - -D - ---- - -E +int ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md index 03bba10b761..10a0098944b 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/convert-data-types-using-casting-and-conversion-techniques-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What type of action is being performed when changing a `float` into an `int`? ## --answers-- -A +A narrowing conversion. --- -B +A widening conversion. --- -C - ---- - -D - ---- - -E +An illegal conversion. ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md index 91df983720c..5514c317320 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/format-alphanumeric-data-for-presentation-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the C# code `Console.WriteLine("C110".PadLeft(6, '0'));`, which is the expected output? ## --answers-- -A +`C11000` --- -B +`C110000000` --- -C - ---- - -D - ---- - -E +`00C110` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md index 4b1775fdb0a..515199832a2 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/guided-project-work-with-variable-data-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +For the code `decimal.TryParse(numberString, out myConvert))` when the type of `numberString` is a String. Which best describes the value type for `myConvert` when the `TryParse()` is successful? ## --answers-- -A +A string representing numeric digits. --- -B +A Boolean value. --- -C - ---- - -D - ---- - -E +A decimal ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md index 9c21fc6b655..0373b33abc7 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method finds the next index of either the `-` char, the `=` char, or the `_` char? ## --answers-- -A +`IndexOfAny()` --- -B +`Remove()` --- -C - ---- - -D - ---- - -E +`IndexOf()` ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md index 3e95f452201..f117e7ee2e5 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/perform-operations-on-arrays-using-helpers-methods-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which method changes the order of items in an `string` array? ## --answers-- -A +`myArray.Resize()` --- -B +`myArray.Clear()` --- -C - ---- - -D - ---- - -E +`Array.Sort()` ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md index 0b8a90caa77..de2cf0636e2 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-and-print-student-grades.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is wrong with the following code? `int sophiaSum; Console.WriteLine("Sophia: " + sophiaSum);` ## --answers-- -A +`sophiaSum` is not initialized before use --- -B +`sophiaSum` is not implicitly typed to a string --- -C - ---- - -D - ---- - -E +`sophiaSum` should use the var keyword ## --video-solution-- -4 +1 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md index 7ce788fdbf9..e60bdbdee43 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/guided-project-calculate-final-gpa.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Suppose `decimal gradePointAverage = 3.99872831;`. What is the value of `(int) gradePointAverage`? ## --answers-- -A +3.99 --- -B +4 --- -C - ---- - -D - ---- - -E +3 ## --video-solution-- -4 +3 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md index b2648681c40..ad414c61f37 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-operations-on-numbers-in-c-sharp.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the value of the following result? `int result = 3 + 1 * 5 / 2;` ## --answers-- -A +10 --- -B +5 --- -C +6 --- -D - ---- - -E +5.5 ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md index 719992ac231..77b499bbe1c 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/perform-basic-string-formatting-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code correctly uses string interpolation assuming that the variable `value` is a string? ## --answers-- -A +'`Console.WriteLine(@"My value: {value}");'`' --- -B +'`Console.WriteLine($"My value: {value}");`' --- -C - ---- - -D - ---- - -E +'`Console.WriteLine(@"My value: [value]");`' ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md index c3e7bda42b3..a61a39ad190 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/store-and-retrieve-data-using-literal-and-variable-values-in-c-sharp.md @@ -16,28 +16,20 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +Which of the following lines of code creates a variable correctly? ## --answers-- -A +`int x = 12.3m;` --- -B +`decimal x = 12.3m;` --- -C - ---- - -D - ---- - -E +`bool x = 'False';` ## --video-solution-- -4 +2 diff --git a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md index 42c2aa4d689..bc5f85082fb 100644 --- a/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md +++ b/curriculum/challenges/ukrainian/19-foundational-c-sharp-with-microsoft/write-your-first-code-using-c-sharp/write-your-first-c-sharp-code.md @@ -16,28 +16,24 @@ This challenge will be partially completed on Microsoft's learn platform. Follow ## --text-- -What is C#? +What is the difference between `Console.Write` and `Console.WriteLine`? ## --answers-- -A +`Console.Write` prints the output on a new line. --- -B +`Console.WriteLine` prints the output on a new line. --- -C +`Console.WriteLine` appends a new line after the output. --- -D - ---- - -E +There is no difference. ## --video-solution-- -4 +3