引导式测验 · 中等 等级

AI 代码审查测验

查看 PR 上下文、GitHub 操作、文件排除、平衡审核设置以及评论和批准之间的区别。

相关引导路径人工智能代码审查
问题 1 的 8

人工智能代码审查工具通常分析什么?

预览每个问题8 问题

当您参加测验时,就会出现答案和解释。

  1. 人工智能代码审查工具通常分析什么?
    • 拉取请求差异加上相关的存储库上下文
    • 公司的工资记录
    • 开发商的日历
    • 营销文案
  2. 为什么人工智能审查工具会检索更改行之外的相关文件?
    • 放慢审稿速度
    • 因为更改的正确性通常取决于它不触及的代码
    • 因为差异总是空的
    • 删除未使用的文件
  3. How should a team treat AI code-review comments?
    • As confirmed defects that must all be applied
    • As a reason to merge automatically
    • As suggestions to verify against code, tests, and project requirements
    • As a replacement for security review
  4. What does GitHub say powers Copilot’s agentic code-review capabilities?
    • A browser-only linter
    • A mandatory local database
    • An external CI service required for all repositories
    • GitHub Actions
  5. What is GitHub Copilot code review’s default review type?
    • A comment review that does not count as an approval
    • An automatic approval
    • An automatic merge
    • A mandatory request-changes review
  6. What can GitHub content-exclusion settings do for Copilot review?
    • Delete those files from the repository
    • Prevent selected files or directories from being used as review context
    • Guarantee no model errors
    • Publish excluded source code
  7. What is GitHub Copilot code review’s “Balanced” effort level described to provide?
    • A guaranteed correct approval
    • Only formatting feedback
    • Deeper analysis of complex logic, security-sensitive code, and cross-service changes
    • A production deployment
  8. When can a Copilot code-review assessment satisfy merge requirements?
    • Whenever the assessment reports no issues
    • Whenever a pull request includes AI-generated comments
    • By default, even if branch protection requires human approval
    • Only when the repository separately enables an approving review; an assessment alone does not count