All Exams Test series for 1 year @ ₹349 only
Question

Two’s complement representation of -74 in 8 bit format is

The correct answer is

10110110

Understanding how to represent negative numbers in computer systems is a fundamental concept in digital electronics and computer architecture. The two's complement system is widely used because it simplifies arithmetic operations, particularly subtraction, by converting them into addition problems. Let's break down the process of finding the two's complement representation of -74 in an 8-bit format.

Two's Complement of -74 in 8-Bit Format

To find the two's complement of a negative number like -74, we follow a specific sequence of steps:

  1. First, convert the absolute value of the number (which is +74) into its binary equivalent.
  2. Then, ensure this binary representation is padded with leading zeros to meet the required bit length (in this case, 8 bits).
  3. Next, find the one's complement of this 8-bit binary number by inverting all its bits (changing 0s to 1s and 1s to 0s).
  4. Finally, add 1 to the one's complement to get the two's complement representation.

Binary Conversion of Positive 74

We begin by converting the decimal number 74 into its binary equivalent. This is done by repeatedly dividing 74 by 2 and noting the remainders, reading them from bottom to top.

Division Quotient Remainder
74 ÷ 2 37 0
37 ÷ 2 18 1
18 ÷ 2 9 0
9 ÷ 2 4 1
4 ÷ 2 2 0
2 ÷ 2 1 0
1 ÷ 2 0 1

Reading the remainders from bottom to top, the binary representation of 74 is \((1001010)_2\).

Padding to 8 Bits for 74

Since we need an 8-bit format, we add leading zeros to the binary representation of 74 until it reaches 8 bits.

  • Binary of 74: 1001010 (which is 7 bits long)
  • Adding one leading zero to make it 8 bits: 01001010

One's Complement Calculation

The next step is to find the one's complement of 01001010. This involves inverting each bit; every 0 becomes a 1, and every 1 becomes a 0.

  • Original 8-bit binary for +74: 01001010
  • Inverting each bit: 10110101 (This is the one's complement)

Two's Complement Calculation Steps

Finally, to get the two's complement, we add 1 to the one's complement result.

\[ \begin{array}{r} 10110101 \quad \text{(One's Complement)} \\ +\quad 1 \quad \text{(Add 1)} \\ \hline 10110110 \quad \text{(Two's Complement)} \end{array} \]

Therefore, the 8-bit two's complement representation of -74 is 10110110.

Was this answer helpful?

Important Questions from Number System and Binary Codes

  1. Assertion (A) : In logic circuit, positive logic is represented by logic "0" voltage level is lower than logic "1" voltage level.

    Reason (R) : Excess 3 code is known as self complementary code.

  2. The steps for subtracting two positive numbers (M−N) using (r−1)'s complement are:

    (A) Add the minuend M to the (r−1)'s complement of the substrahend N.

    (B) If an end carry occurs, add 1 to the least significant bit.

    (C) If end carry does not occur, take the (r−1)'s complement of the number obtained in step A and place negative sign in front

    (D) Take (r−1)'s complement of the number obtained in step B on step C.

    Choose the correct answer from the options given below:

  3. The decimal equivalent of (11011101) is

  4. The decimal number system uses the characters 0, 1, 2, ..., 8, 9, and the octal number system uses the characters 0, 1, 2, ..., 6, 7.
    For example, the decimal number 12 ( = $1 \times 10^1 + 2 \times 10^0$ ) is expressed as 14( = $1 \times 8^1 + 4 \times 8^0$) in the octal number system.
    The decimal number 108 in the octal number system is
  5. What is the decimal value for HEX 2A

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App