11. Which Copilot Chat slash command generates unit tests for the selected code?A /tests, which writes tests for the selected code B /explain, which explains how the selected code works C /fix, which proposes a fix for problems in the code D /doc, which writes documentation comments for the code
12. In VS Code chat you want an answer that draws on the whole repository, not just the open file. What do you add?A @terminal, to ask about the integrated terminal B @workspace or #codebase in the prompt C #selection, to attach the highlighted code D /new, to scaffold a brand-new project
13. An admin must grant Copilot seats to 200 new hires automatically from the HR system. What should they use?A An export of the organization's audit log every morning B Content exclusion settings configured for the organization C The Copilot user management endpoints of the REST API D A Copilot Space shared with every new hire on day one
14. Security asks who changed a Copilot policy last week. Where do you look?A The Copilot Chat history of each administrator B The organization or enterprise audit log C The Copilot usage metrics dashboard for the org D The IDE logs on each developer's own machine
15. In the simplified suggestion architecture taught here, which sequence is conceptually correct?A The IDE builds the prompt, a proxy screens it, the model replies, filters run B The model responds, the IDE builds the prompt, then the proxy filters it C The suggestion is shown first and is filtered only after it is accepted D The proxy writes the prompt, the IDE filters it, then the model replies
16. What does Copilot mainly use as context for inline suggestions?A A live search across all public code on GitHub at request time B Code around the cursor, open tabs and related files in the project C Only the current line, so that suggestions stay fast and focused D The developer's browser history and recently visited documentation
17. Copilot keeps generating generic code for a parsing function. Which change helps most?A A specific comment of intent with an input/output example B Accepting the first suggestion, then fixing it by hand C Closing every other file so Copilot focuses on this one D A shorter, vaguer comment that gives Copilot more room
18. What is few-shot prompting?A Keeping every prompt under a few dozen tokens to save context B Asking the same question several times in a row for consistency C Including several demonstrations of the desired pattern in the prompt D Lowering the temperature to get more stable, repeatable answers
19. Copilot-generated tests all pass, but a known bug still ships. What most likely happened?A The tests asserted current, buggy behaviour instead of the specification B The tests should have been generated with /fix rather than with /tests C Copilot cannot write unit tests, so the generated tests were never run D The team needs Copilot Enterprise for test generation to be reliable
20. Which practice reflects responsible use of AI-generated code?A Review, test and scan it exactly as you would a colleague's code B Assume suggestions are licence-compliant because Copilot filters them C Skip security scanning for AI-generated code to keep pipelines fast D Commit it without review whenever it compiles and the tests pass