Which of the following best explains the distinction between arithmetic,…

2025

Which of the following best explains the distinction between arithmetic, logical, and shift instructions in machine-level programming?

  1. A.

    Arithmetic instructions perform numerical operations, logical instructions handle bitwise computations, and shift instructions change data positions in registers.

  2. B.

    All three types only manipulate control flow and do not affect data.

  3. C.

    All three are only used in input/output operations and are rarely used in actual computation.

  4. D.

    Arithmetic instructions perform data transfers, logical instructions access memory, and shift instructions modify opcodes.

Attempted by 5 students.

Show answer & explanation

Correct answer: A

In machine-level programming, instructions are categorized based on their functionality:

Arithmetic instructions perform mathematical calculations such as addition, subtraction, multiplication, and division.
Logical instructions perform bitwise operations like AND, OR, XOR, and NOT.
Shift instructions move bits left or right within a register, often used for fast multiplication/division and bit manipulation.

These instruction types are essential for CPU data processing and low-level computation.

Explore the full course: Niacl Ao It Specialist