Fundamentals of GenAI

Which GenAI use case produces a draft function from a developer's natural-language requirements?

Show the answer

Correct answerD. Code generation

AWhy not this: Code classification assigns labels to code rather than writing a function.

BWhy not this: Code retrieval locates existing implementations rather than creating a draft function.

CWhy not this: Code summarization describes existing code rather than producing an implementation.

DWhy this is right: Code generation creates a draft implementation from a natural-language description.

Code generation creates source code from instructions or examples. Code retrieval finds existing code rather than producing a draft implementation from requirements.