Recommended
Copilot Basics — Timed Test (3 questions)
No account needed. Answers and explanations arrive when you submit.
What this topic tests
The mix every Copilot Basics set is built to, and the questions published against it so far. Nothing here is hidden before you start.
| Level | Target share | Published |
|---|---|---|
| Easy | 40% | 2 |
| Medium | 40% | 1 |
| Hard | 20% | 0 |
| Total | 3 |
Copilot Basics — the theory
GitHub Copilot is an AI coding assistant that integrates directly into code editors, offering suggestions as you write code.
Core function. Copilot's primary feature is inline code completion — as a developer types, it suggests the next line, block, or function, based on the surrounding code and context. Developers can accept, modify, or ignore suggestions as they work.
Where it lives. Copilot integrates into popular code editors and IDEs as an extension, appearing directly in the editing experience rather than requiring a separate chat window for every interaction, though it also offers chat-based interaction (covered separately).
Context awareness. Copilot's suggestions are informed by the surrounding code in the current file and, depending on configuration, other relevant files in the project — allowing it to match existing patterns, naming conventions, and style rather than suggesting generic, disconnected code.
Access and plans. Copilot is available through various subscription plans, generally aimed at individual developers or organizations, with different tiers offering different usage limits and feature sets.
How suggestions appear and are accepted. Suggestions typically surface as greyed-out inline text ahead of the cursor, sometimes called ghost text, which becomes real code only when explicitly accepted via a keyboard shortcut. Suggestions can usually be dismissed, or cycled through when more than one candidate is available. The important consequence of this design is that nothing enters the codebase without a deliberate keystroke — the assistant proposes, and the developer decides.
Writing code that elicits good suggestions. Because suggestions are driven by context, the quality of what you get depends heavily on what you have already written. Descriptive function and variable names, a clear signature, and a short comment stating what a function is meant to do all give the model far more to work with than an empty file. Many developers find that writing the docstring or the type signature first, then letting the completion fill in the body, produces better results than typing the body directly and hoping.
Review every suggestion. A suggestion that compiles and looks idiomatic can still be wrong — subtly incorrect logic, a mishandled edge case, an outdated API, or a plausible-looking function that does not exist. Because suggestions arrive in the flow of typing, the risk is that they are accepted with less scrutiny than code copied from elsewhere would receive. Treating each suggestion as a proposal from an unfamiliar contributor, to be read before it is accepted, is the habit that separates productive use from accumulating quiet defects.
Understanding the limitations. Copilot has no ability to run the code it suggests, no knowledge of your runtime behavior, and no awareness of requirements that exist only in your head or in a ticket it cannot see. It is strongest on common, well-represented patterns — boilerplate, standard library usage, familiar algorithms, tests that mirror existing tests — and weakest on novel logic, unusual domain rules, and anything depending on very recent library changes. Knowing where the tool is strong lets you lean on it there and stay skeptical elsewhere.
Language and project coverage. Suggestion quality varies with how well represented a language, framework, or library is in the material the underlying models learned from. Widely used languages generally see stronger and more idiomatic suggestions than niche ones, and a well-established framework will typically produce better completions than an internal library the model has never encountered. Within your own project, the assistant's ability to match your conventions depends on how much of your code it can see as context.
Configuration and organizational controls. Copilot exposes settings covering where it is active, which file types it operates on, and how it treats the code that it uses as context. Organizations typically have additional policy controls over how the tool may be used across a team. Anyone using it on proprietary or regulated code should understand their organization's configuration rather than assuming defaults, because the relevant settings govern what leaves the editor.
The effect on learning and skill. An assistant that supplies plausible code on demand changes how developers encounter unfamiliar territory, and the effect cuts both ways. Used to move faster through material you already understand, it removes drudgery. Used to produce code in an area you do not understand, it can substitute for the struggle that builds understanding, leaving you maintaining code you could not have written and cannot properly evaluate. The distinction that matters is whether you could have written the suggestion yourself given time — if yes, accepting it is a genuine saving; if no, reading until you understand it is part of the work rather than an optional extra.
Fitting it into a working routine. The realistic benefit is a reduction in mechanical typing and lookup — filling in a repetitive block, drafting a test that mirrors an existing one, remembering an argument order — rather than the wholesale authoring of nontrivial features. Developers who get the most out of it keep ownership of the design and the structure, delegate the predictable parts, and read everything that lands in the file.
Understanding Copilot's core completion-based workflow is foundational to using it effectively as part of a regular coding routine.
Sample questions
Three questions from this topic, with the answer and the reasoning shown.
Q1EasyHow does Copilot typically integrate into a developer's workflow?
- As an extension directly inside a code editorCorrect
- Only through a standalone desktop application unrelated to any editor
- Exclusively through physical hardware devices
- Only via postal mail requests
Explanation
Copilot installs as an extension inside the editor you already use, and that placement is the entire design. GitHub's setup guide runs through VS Code, Visual Studio, the JetBrains IDEs, Vim and Neovim, Xcode and others, all under one instruction: "To use Copilot in your preferred coding environment, follow the steps for your chosen IDE." Once it is in place you "get code suggestions as you type in your IDE" — nothing to switch to, nothing to paste.
That placement is what makes it useful. A tool sitting beside your open file can read the file; a tool in a separate window has to be told everything first.
Copilot does reach other surfaces — the GitHub website, the command line, mobile, and a standalone desktop app. So the wrong answer here is not the mention of a desktop application, which genuinely exists; it is the word "only", which would rule out the editor extension most people use every day. The remaining two options describe delivery methods that have nothing to do with installing software at all.
Q2EasyWhat is GitHub Copilot's primary feature?
- Inline code completion as a developer typesCorrect
- Automated video editing
- Managing a team's calendar
- Compiling code into machine language
Explanation
GitHub describes Copilot as "an AI coding assistant that helps you write code faster and with less effort", and the feature carrying most of that load is inline completion. In the editor, "Copilot offers coding suggestions as you type. Start typing in the editor, and Copilot provides dimmed ghost text suggestions at your current cursor location." You take one with a keystroke, or keep typing and it withdraws.
The dimming matters more than it sounds. The suggestion is a proposal you read and accept, not an edit that happens to you — which is why reviewing it is your job and not an optional extra. Copilot has grown well beyond this since, with chat, code review and agents that open pull requests, but completion is the feature you meet first and use most.
One wrong answer marks a real boundary worth holding onto: Copilot proposes source code for a human to accept, and does not turn source code into a runnable program. That translation is still your compiler's work, entirely unchanged by Copilot being installed.
Q3MediumWhat informs the suggestions Copilot generates?
- The surrounding code in the current file and, depending on configuration, other project filesCorrect
- Random text with no relation to the current project
- Only the developer's operating system version
- The current date and time only
Explanation
Copilot is not working from your last keystroke alone. GitHub's guidance states that "in addition to your prompt, Copilot uses additional context, like the code in your current file and the chat history, to generate a response". The file you are sitting in is the main signal, and the code around your cursor counts as part of the prompt whether you meant it to or not.
It reaches past one file, and you control how far. The advice for inline suggestions is unusually concrete: open any relevant files and close irrelevant ones, because "Copilot will use the open files to understand your request". That is a lever you can pull today — a stale tab you forgot about is still feeding the model.
Configuration can narrow it as well. Content exclusion lets an administrator put files out of reach, and the documentation is explicit that "the content in affected files will not inform inline suggestions in other files".
So when the suggestions are poor, look at what you have open before blaming the model.
Practise all 3 questions
Every published question in Copilot Basics, with its answer and explanation.