Difficulty: Easy
Correct Answer: All of the above
Explanation:
Introduction / Context:
At every level—from assembly to high-level languages—programs are composed of common instruction categories. Recognizing these categories clarifies how data moves into a program, how it is transformed, and how control flow changes as conditions vary.
Given Data / Assumptions:
Concept / Approach:
Classic instruction sets and language constructs mirror these needs: read statements or I/O calls (input), operators and math libraries (arithmetic), and if/else or compare-and-branch operations (conditional branching). Any nontrivial program uses all three categories to be useful—accepting data, processing it, and making decisions.
Step-by-Step Solution:
List categories required for a general-purpose program.Confirm each option corresponds to a fundamental category.Choose the inclusive option “All of the above.”
Verification / Alternative check:
Programming language references and CPU ISA manuals include I/O primitives, ALU operations, and branch/jump instructions, confirming the universality of these categories.
Why Other Options Are Wrong:
Each single item is correct but incomplete; only the combined option fully represents a typical instruction mix. “None” is incorrect because these categories undeniably exist.
Common Pitfalls:
Overlooking that “input” includes automated sources (sensors, files), not just keyboard entry.
Final Answer:
All of the above
Discussion & Comments