You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/2-review-github-copilot-code-improvement-features.yml
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/3-examine-github-copilot-fix-options.yml
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/4-review-code-refactoring-scenarios.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Review code refactoring scenarios and GitHub Copilot best practices
4
4
metadata:
5
5
title: Review code refactoring scenarios and GitHub Copilot best practices
6
6
description: "Review common code refactoring scenarios"
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/5-refactor-code-github-copilot-inline-chat.yml
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/6-refactor-code-github-copilot-chat-modes.yml
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/7-examine-github-copilot-code-review-features.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Examine the GitHub Copilot code review features
4
4
metadata:
5
5
title: Examine the GitHub Copilot code review features
6
6
description: "Examine the GitHub Copilot code review features"
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/8-exercise-refactor-existing-code-github-copilot.yml
Copy file name to clipboardExpand all lines: learn-pr/wwl-azure/implement-code-improvements-using-github-copilot-tools/9-knowledge-check.yml
+40-40Lines changed: 40 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ title: Module assessment
4
4
metadata:
5
5
title: Module assessment
6
6
description: "Knowledge check"
7
-
ms.date: 03/03/2026
7
+
ms.date: 04/16/2026
8
8
author: chrishowd
9
9
ms.author: cahowd
10
10
ms.topic: unit
@@ -47,58 +47,58 @@ quiz:
47
47
- content: "To add new features or enhancements to the code."
48
48
isCorrect: false
49
49
explanation: "Incorrect. Code refactoring isn't primarily about adding new features or enhancements, but about improving the internal structure of the code."
50
-
- content: "What factors can be considered when working on code quality improvements?"
50
+
- content: "What is the benefit of using `#codebase` when constructing a prompt in GitHub Copilot Chat?"
51
51
choices:
52
-
- content: "The number of lines of code in the program."
52
+
- content: "It limits the search to only the currently open file."
53
53
isCorrect: false
54
-
explanation: "Incorrect. The number of lines of code isn't a primary factor in determining code quality."
55
-
- content: "The time required to write code."
54
+
explanation: "Incorrect. `#codebase` isn't limited to a single file. It searches across your entire project."
55
+
- content: "It downloads external code samples from GitHub.com into the current project."
56
56
isCorrect: false
57
-
explanation: "Incorrect. The time required to write code doesn't directly impact code quality."
explanation: "Incorrect. `#codebase` doesn't download external code. It performs a search within your local workspace."
58
+
- content: "It lets GitHub Copilot automatically find relevant files across the codebase by performing a code search."
59
59
isCorrect: true
60
-
explanation: "Correct. These are all important factors to consider when working on code quality improvements."
61
-
- content: "What is the importance of context and intent when developing prompts for GitHub Copilot agents?"
60
+
explanation: "Correct. Using `#codebase` in a prompt lets GitHub Copilot search across your entire project to find the most relevant files and context for your request."
61
+
- content: "What is the primary benefit of using the Plan agent before handing a task off to the Agent in GitHub Copilot?"
62
62
choices:
63
-
- content: "They determine the color scheme used by GitHub Copilot."
63
+
- content: "The Plan agent runs terminal commands to prepare the workspace before the Agent begins making changes."
64
64
isCorrect: false
65
-
explanation: "Incorrect. Context and intent don't affect the color scheme of GitHub Copilot."
66
-
- content: "They control the volume of the audio output from GitHub Copilot."
67
-
isCorrect: false
68
-
explanation: "Incorrect. Context and intent don't control the volume of any audio output, as GitHub Copilot doesn't provide audio output."
69
-
- content: "They specify the scope that GitHub Copilot should examine and the goal to be achieved."
65
+
explanation: "Incorrect. The Plan agent doesn't run terminal commands. It analyzes your codebase and produces a structured implementation plan."
66
+
- content: "The Plan agent creates a structured, step-by-step implementation plan that you can review and confirm before any code changes are made."
70
67
isCorrect: true
71
-
explanation: "Correct. Context and intent help GitHub Copilot agents understand what part of the codebase to analyze and what outcome you want to achieve."
72
-
- content: "What does code reliability refer to in software development?"
68
+
explanation: "Correct. The Plan agent generates a detailed plan of what will be changed. You review it first, and only when it looks right do you hand it off to an implementation agent to execute."
69
+
- content: "The Plan agent automatically applies all suggested code changes and then presents a summary of what was done."
70
+
isCorrect: false
71
+
explanation: "Incorrect. The Plan agent creates a plan without making code changes. It's up to you to hand the plan off to an implementation agent when you're ready."
72
+
- content: "What is one key difference between 'Review selection' and 'Review changes' in GitHub Copilot code review?"
73
73
choices:
74
-
- content: "The use of modern CPU architectures by parallelizing tasks and performing I/O operations asynchronously."
explanation: "Incorrect. This is a method to improve code performance, not a definition of code reliability."
77
-
- content: "The likelihood that software will function correctly under specific conditions and for a certain period of time."
78
-
isCorrect: true
79
-
explanation: "Correct. Code reliability refers to the probability of a software system functioning without failure under specified conditions for a specified period of time."
80
-
- content: "The efficiency of a program or application."
76
+
explanation: "Incorrect. It's the other way around. Review changes supports custom coding guidelines; Review selection does not."
77
+
- content: "Review selection works only in the Source Control view; Review changes works in the code editor."
81
78
isCorrect: false
82
-
explanation: "Incorrect. This definition refers to code performance, not code reliability."
83
-
- content: "What is one way to improve code reliability?"
79
+
explanation: "Incorrect. Review selection works in the code editor where you highlight code. Review changes is accessed from the Source Control view."
80
+
- content: "Review selection is a standard feature available to all GitHub Copilot subscribers; Review changes is a premium feature with a per-person monthly quota."
81
+
isCorrect: true
82
+
explanation: "Correct. Review selection is available to all GitHub Copilot subscribers as a standard feature. Review changes is a premium feature available on Pro, Pro+, Business, and Enterprise plans, with a per-person monthly quota."
83
+
- content: "How does GitHub Copilot assist when a command fails to run in the terminal?"
84
84
choices:
85
-
- content: "By optimizing algorithms and data structures for the task at hand."
85
+
- content: "It automatically reruns the command with corrected syntax and displays the new output."
86
86
isCorrect: false
87
-
explanation: "Incorrect. This is a method to improve code performance, not code reliability."
88
-
- content: "By identifying potential issues in the code to prevent bugs and errors from occurring."
89
-
isCorrect: true
90
-
explanation: "Correct. Identifying potential issues in the code can help prevent bugs and errors from occurring, which improves code reliability."
91
-
- content: "By minimizing disk and network I/O operations or performing them asynchronously."
87
+
explanation: "Incorrect. GitHub Copilot doesn't automatically rerun commands. It offers a Quick Fix option for you to review and act on."
88
+
- content: "It opens a new terminal window and runs a built-in diagnostic test."
92
89
isCorrect: false
93
-
explanation: "Incorrect. This is a method to improve code performance, not code reliability."
94
-
- content: "What are some ways to improve exception handling in code to make it more secure?"
90
+
explanation: "Incorrect. GitHub Copilot doesn't open new terminal windows or run diagnostic tests automatically."
91
+
- content: "It displays a sparkle icon in the terminal gutter that offers a Quick Fix to explain what happened and suggest a resolution."
92
+
isCorrect: true
93
+
explanation: "Correct. When a command fails in the terminal, GitHub Copilot shows a sparkle icon in the gutter. Selecting it opens a Quick Fix that explains the error and suggests how to resolve it."
94
+
- content: "How can you instruct GitHub Copilot to focus on specific concerns when reviewing your code?"
95
95
choices:
96
-
- content: "Revealing sensitive information in exceptions, catching general exceptions only, and swallowing exceptions."
96
+
- content: "By selecting a specific programming language profile in Visual Studio Code settings."
97
97
isCorrect: false
98
-
explanation: "Incorrect. These practices don't improve exception handling. They can actually make the code less secure."
99
-
- content: "Avoid revealing sensitive information in exceptions, catch the most specific exceptions possible, and avoid swallowing exceptions."
100
-
isCorrect: true
101
-
explanation: "Correct. These practices can help improve exception handling in code and make it more secure."
102
-
- content: "Exposing detailed error information, catching only specific exceptions, and not rethrowing exceptions."
98
+
explanation: "Incorrect. There's no language profile setting in Visual Studio Code that controls the focus of GitHub Copilot code review."
99
+
- content: "By running the `/fix` slash command before requesting a review."
103
100
isCorrect: false
104
-
explanation: "Incorrect. Exposing detailed error information and not rethrowing exceptions can make the code less secure."
101
+
explanation: "Incorrect. The `/fix` command is for fixing coding issues, not for customizing code review behavior."
102
+
- content: "By adding custom instructions to a `.github/copilot-instructions.md` file or path-specific `.instructions.md` files in the repository."
103
+
isCorrect: true
104
+
explanation: "Correct. You can customize how GitHub Copilot reviews your code by specifying repository-wide guidelines in `.github/copilot-instructions.md`, or path-specific guidelines in `.github/instructions/**/*.instructions.md` files."
0 commit comments