Difficulty: Easy
Correct Answer: specification by example
Explanation:
Introduction / Context:
Automatic programming seeks to raise the level of abstraction so that users specify intent and the system synthesizes code. One practical strand is specification (or programming) by example, where users demonstrate input–output pairs or manipulations, and the system infers a program consistent with the examples and a bias or grammar.
Given Data / Assumptions:
Concept / Approach:
Specification by example (also called programming by demonstration) lets non-programmers teach systems through concrete tasks, which the synthesizer generalizes. Systems may use hypothesis search over domain-specific languages, constraint solving, or inductive logic programming to synthesize code consistent with examples and minimality criteria.
Step-by-Step Solution:
Verification / Alternative check:
Productivity tools (e.g., spreadsheet flash-fill–style systems, PBD editors) demonstrate real-world viability of example-driven synthesis, supporting the chosen option.
Why Other Options Are Wrong:
Common Pitfalls:
Equating any AI generation with code synthesis; overlooking the requirement that examples drive the derivation of executable procedures.
Final Answer:
specification by example
Discussion & Comments