Programming terminology: A sequence of instructions written in a computer language to achieve a desired result is called what?
-
AAlgorithm
-
BDecision table
-
CProgram
-
DAll of the above
-
ENone of the above
Answer
Correct Answer: Program
Explanation
Introduction / Context:Terms like algorithm and program are related but distinct. Clarity about their definitions helps in software design and documentation. The wording “in a computer language” is the crucial qualifier here.
Given Data / Assumptions:
- “Sequence of instructions” implies stepwise operations.
- “In a computer language” indicates actual code written for execution.
- Goal is producing a specific result.
Concept / Approach:
An algorithm is a language-agnostic procedure or recipe. Once expressed in a programming language so that a computer can execute it, it becomes a program. Decision tables are tabular representations for logic, not necessarily executable code by themselves.
Step-by-Step Solution:
Interpret the qualifier “in a computer language”.Map to the executable artifact: a program.Exclude algorithm (not necessarily coded) and decision table (a design aid).Verification / Alternative check:
Software engineering texts treat algorithms as the abstract logic and programs as their concrete implementations in code.
Why Other Options Are Wrong:
- Algorithm: Abstract method, not necessarily written in code.
- Decision table: Specification tool, not a code sequence.
- All of the above: Overbroad; only “program” matches the precise phrasing.
- None of the above: Incorrect since program fits.
Common Pitfalls:
Equating “algorithm” with any set of coded instructions; the term is broader and independent of implementation language.
Final Answer:
Program