Practice Assessment for GH-300: GitHub Copilot - Quiz

  • ABy being vague about the inputs, outputs, APIs, or frameworks they want to use.
  • BBy using chat participants, slash commands, chat variables, and being specific in your prompts.
  • CBy asking Copilot to perform large tasks at once.
  • DBy avoiding the use of code snippets in prompts.
  • AClarity - Focus on a single, well-defined task.
  • BVerbosity - Provide extensive and detailed descriptions.
  • CSpecificity - Use clear and explicit instructions.
  • DSurround - Utilize descriptive filenames and keep related files open.
  • ABased on the context of code in the editor.
  • BBased on the programming language used.
  • CBased on the length of the code written.
  • DBased on a random selection of popular coding patterns.
  • AGitHub Copilot Enterprise has code completions, while GitHub Copilot Business does not.
  • BGitHub Copilot Enterprise has chat in IDE and mobile, while GitHub Copilot Business does not.
  • CGitHub Copilot Enterprise has an extra layer of personalization, with organization utilizing their own codebase to train GitHub Copilot.
  • DGitHub Copilot Enterprise has an extra layer of security, with IP indemnity and enterprise-grade security, safety, and privacy.
  • AAccess the inline chat by clicking on the chat icon in the left sidebar of Visual Studio Code.
  • BUse Ctrl+i on Windows or Command+i on a Mac to open the inline chat.
  • CAccess the inline chat by using Alt+i on Windows or Option+i on a Mac.
  • DType "/chat" anywhere in your code to open the inline chat.
  • AThey are used to organize the code in the main application.
  • BThey are used to structure unit tests into setup (Arrange), execution (Act), and verification (Assert) phases.
  • CThey are used to compile and run the unit tests.
  • DThey are used to generate documentation for the tests.
  • ABy optimizing algorithms and data structures for the task at hand.
  • BBy identifying potential issues in the code to prevent bugs and errors from occurring.
  • CBy minimizing disk and network I/O operations or performing them asynchronously.
  • DBy using the latest programming language features and syntax.
  • ARevealing sensitive information in exceptions, catching general exceptions only, and swallowing exceptions.
  • BCatch the most specific exceptions possible, avoid revealing sensitive information in exceptions, and avoid swallowing exceptions.
  • CExposing detailed error information, catching only specific exceptions, and not rethrowing exceptions.
  • DUsing try-catch blocks for every line of code and logging all exceptions to a public server.
  • ABy suggesting potential refactoring updates based on the context of your codebase.
  • BBy providing a detailed analysis of the class's dependencies.
  • CBy automatically rewriting the entire class.
  • DBy generating unit tests for each method in the class.
  • AGenerate completions from a code line and from a code file.
  • BGenerate completions from a comment and from a code line.
  • CGenerate completions from a comment and from a prompt.
  • DGenerate completions from a function name and from a variable name.