Back to the 2025 paper

Module 1: Functional Block of computer and Data representaion

20252m

Two's complement representation is primarily used for:
(i) Signed integers
(ii) Instruction opcodes
(iii) ASCII characters
(iv) Floating point numbers

Worked SolutionAI Assisted

Answer: (i) Signed integers

Two's complement is the standard representation for signed integers in modern computers.

  • Allows representation of both positive and negative numbers using a single binary format with MSB as sign bit (0 = positive, 1 = negative).
  • Enables subtraction to be performed as addition: A - B = A + (-B) where -B is two's complement of B (invert bits + 1).
  • Unique representation for zero and simple arithmetic overflow detection. It is not used for opcodes, ASCII or floating-point (which uses IEEE 754 sign-magnitude).

Correct option: (i)

Similar questions

Free AppAndroid App

Coursify Android App

Generate AI courses, take quick quizzes between classes, and master complex engineering concepts on the go.