nerdexam
Microsoft

GH-300 · Question #10

Identify the right use cases where GitHub Copilot Chat is most effective. (Each correct answer presents part of the solution. Choose two.)

The correct answer is B. Explain a legacy COBOL code and translate the code to another language like Python. C. Creation of a unit test scenario for newly developed Python code. Copilot Chat excels at: (B) Explaining legacy or unfamiliar code - it can parse and describe COBOL, FORTRAN, or other older languages and then translate the logic into a modern language like Python, making it invaluable for modernization projects. (C) Generating unit test…

Use GitHub Copilot for code development

Question

Identify the right use cases where GitHub Copilot Chat is most effective. (Each correct answer presents part of the solution. Choose two.)

Options

  • ACreate a technical requirement specification from the business requirement documentation
  • BExplain a legacy COBOL code and translate the code to another language like Python.
  • CCreation of a unit test scenario for newly developed Python code
  • DCreation of end-to-end performance testing scenarios for a web application

How the community answered

(33 responses)
  • A
    9% (3)
  • B
    73% (24)
  • D
    18% (6)

Explanation

Copilot Chat excels at: (B) Explaining legacy or unfamiliar code - it can parse and describe COBOL, FORTRAN, or other older languages and then translate the logic into a modern language like Python, making it invaluable for modernization projects. (C) Generating unit test scenarios - given a function or class, it can scaffold test cases covering normal paths, edge cases, and error conditions. Option A (business-to-technical requirements translation) is a higher-order analytical task that requires domain knowledge beyond code. Option D (end-to-end performance testing) involves infrastructure tooling, load generation, and metrics analysis that fall outside Copilot Chat's core competency.

Topics

#GitHub Copilot Chat#Code development#Code translation#Unit test generation

Community Discussion

No community discussion yet for this question.

Full GH-300 Practice