Q: You instruct GitHub Copilot Agent Mode to migrate a legacy JavaScript application to a modern framework. What actions would Agent Mode likely perform autonomously?
-
A
Provide inline code completions only for individual files without modifying dependencies or project structure.
-
B
Identify relevant files, update dependencies, refactor existing code across multiple files, and iteratively verify changes by running tests.
-
C
Generate new documentation explaining why the migration should occur, but leave the actual code implementation to the developer.
-
D
Prompt the developer for manual inputs at each step of code modification without autonomously running any tests.
B
Answer:
B
Explanation:
Identify relevant files, update dependencies, refactor existing code across multiple files, and iteratively verify changes by running tests.
Related Topic:
Share Above MCQ