Microsoft

GH-300 practice question 8

GitHub Copilot · free question 8 of 20

Question

What types of prompts or code snippets might be flagged by the GitHub Copilot toxicity filter? Each correct answer presents part of the solution. (Choose two.)
  • A. Hate speech or discriminatory language (e.g., racial slurs, offensive stereotypes) Correct
  • B. Sexually suggestive or explicit content Correct
  • C. Code that contains logical errors or produces unexpected results
  • D. Code comments containing strong opinions or criticisms

Explanation

Copilot's content filtering detects and blocks harmful content, including hate and unfairness (such as slurs and offensive stereotypes) and sexual content. Code with logical errors is a quality problem, not toxic content, so the filter does not flag it. Comments expressing strong opinions or criticism are not harmful content unless they cross into hateful or offensive language.

Practice the whole free set

Answer all 20 free GH-300 questions with instant feedback, or unlock all 116 questions with Learn and Exam modes.