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
{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