nerdexam
Amazon

AIF-C01 · Question #123

A company wants to use large language models (LLMs) to produce code from natural language code comments. Which LLM feature meets these requirements?

The correct answer is B. Text generation. The LLM feature that produces code from natural language descriptions is a specific application of text generation.

Submitted by yousef_jo· Mar 30, 2026LLM Capabilities and Applications

Question

A company wants to use large language models (LLMs) to produce code from natural language code comments. Which LLM feature meets these requirements?

Options

  • AText summarization
  • BText generation
  • CText completion
  • DText classification

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    88% (22)
  • C
    8% (2)

Why each option

The LLM feature that produces code from natural language descriptions is a specific application of text generation.

AText summarization

Text summarization involves condensing a longer piece of text into a shorter, coherent summary, which is not the process of generating code.

BText generationCorrect

Text generation is the broad capability of large language models to produce coherent and relevant text based on a given input prompt. Generating code from natural language descriptions falls under this category, as the model is creating new textual content (code) guided by the input (comments).

CText completion

Text completion is typically about finishing an incomplete sentence or phrase; however, generating entire code blocks from natural language comments is better described by the broader term 'text generation' as it involves creating new structured content.

DText classification

Text classification involves categorizing text into predefined classes or labels, which is unrelated to producing code.

Concept tested: LLM capabilities, code generation, text generation

Source: https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#code-models

Topics

#LLM features#code generation#natural language processing#text generation

Community Discussion

No community discussion yet for this question.

Full AIF-C01 Practice