Electrical Engineering (EE) Exam  >  Electrical Engineering (EE) Questions  >  X = 00110 and Y = 10011 are two binary number... Start Learning for Free
X = 00110 and Y = 10011 are two binary numbers represented in 2's complement format. The sum of X and Y represented in 2's complement format using 5 bits is _____
  • a)
    11001
  • b)
    01001
  • c)
    10100
  • d)
    10010
Correct answer is option 'A'. Can you explain this answer?
Most Upvoted Answer
X = 00110 and Y = 10011 are two binary numbers represented in 2s compl...
To find the sum of X and Y represented in 2's complement format, we need to follow these steps:

1. Convert the binary representation of X and Y to their decimal equivalent:
- X = 00110 = 2^1 + 2^2 = 6
- Y = 10011 = -2^0 + 2^1 + 2^4 = -1 + 2 + 16 = 17

2. Add the decimal values of X and Y:
- 6 + 17 = 23

3. Convert the decimal sum back to binary representation:

- If the sum is positive (greater than or equal to 0), convert it to binary normally:
- 23 = 2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 16 + 8 + 4 + 2 + 1 = 10111

- If the sum is negative (less than 0), convert the absolute value to binary and take the 2's complement:
- Absolute value of -23 = 23 = 10111
- Take the 2's complement by inverting all the bits and adding 1:
- Inverting: 10111 -> 01000
- Adding 1: 01000 + 1 = 01001

4. If the binary representation of the sum has more bits than the desired number of bits, truncate the most significant bits until the desired number of bits is reached. In this case, the desired number of bits is 5, so we can keep only the last 5 bits.

Therefore, the sum of X and Y represented in 2's complement format using 5 bits is 11001.
Free Test
Community Answer
X = 00110 and Y = 10011 are two binary numbers represented in 2s compl...
X = 00110
since, the MSB = 0
∴ it is a positive number.
Decimal equivalent: 0 + 1 x 22 + 1 x 21 + 0 x 20 = + 6
Y = 10011
since, the MSB = 1 
∴ it is a negative number,
We need to take the 2's complement of Y, that is.
1's complement (Y) + 1
01100 + 1
⇒ 01101
Decimal equivalent → 0 + 1 × 23 + 1 × 22 + 0 + 1 x 20 → -13
The sum of X and Y is
+6 - 13 = - 7
The 2's complement of - 7
→ 1's complement of 7 + 1
→ 1's complement of 00111 + 1
→ 11000 + 1 → 11001
Explore Courses for Electrical Engineering (EE) exam

Top Courses for Electrical Engineering (EE)

X = 00110 and Y = 10011 are two binary numbers represented in 2s complement format. The sum of X and Y represented in 2s complement format using 5 bits is _____a)11001b)01001c)10100d)10010Correct answer is option 'A'. Can you explain this answer?
Question Description
X = 00110 and Y = 10011 are two binary numbers represented in 2s complement format. The sum of X and Y represented in 2s complement format using 5 bits is _____a)11001b)01001c)10100d)10010Correct answer is option 'A'. Can you explain this answer? for Electrical Engineering (EE) 2024 is part of Electrical Engineering (EE) preparation. The Question and answers have been prepared according to the Electrical Engineering (EE) exam syllabus. Information about X = 00110 and Y = 10011 are two binary numbers represented in 2s complement format. The sum of X and Y represented in 2s complement format using 5 bits is _____a)11001b)01001c)10100d)10010Correct answer is option 'A'. Can you explain this answer? covers all topics & solutions for Electrical Engineering (EE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for X = 00110 and Y = 10011 are two binary numbers represented in 2s complement format. The sum of X and Y represented in 2s complement format using 5 bits is _____a)11001b)01001c)10100d)10010Correct answer is option 'A'. Can you explain this answer?.
Solutions for X = 00110 and Y = 10011 are two binary numbers represented in 2s complement format. The sum of X and Y represented in 2s complement format using 5 bits is _____a)11001b)01001c)10100d)10010Correct answer is option 'A'. Can you explain this answer? in English & in Hindi are available as part of our courses for Electrical Engineering (EE). Download more important topics, notes, lectures and mock test series for Electrical Engineering (EE) Exam by signing up for free.
Here you can find the meaning of X = 00110 and Y = 10011 are two binary numbers represented in 2s complement format. The sum of X and Y represented in 2s complement format using 5 bits is _____a)11001b)01001c)10100d)10010Correct answer is option 'A'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of X = 00110 and Y = 10011 are two binary numbers represented in 2s complement format. The sum of X and Y represented in 2s complement format using 5 bits is _____a)11001b)01001c)10100d)10010Correct answer is option 'A'. Can you explain this answer?, a detailed solution for X = 00110 and Y = 10011 are two binary numbers represented in 2s complement format. The sum of X and Y represented in 2s complement format using 5 bits is _____a)11001b)01001c)10100d)10010Correct answer is option 'A'. Can you explain this answer? has been provided alongside types of X = 00110 and Y = 10011 are two binary numbers represented in 2s complement format. The sum of X and Y represented in 2s complement format using 5 bits is _____a)11001b)01001c)10100d)10010Correct answer is option 'A'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice X = 00110 and Y = 10011 are two binary numbers represented in 2s complement format. The sum of X and Y represented in 2s complement format using 5 bits is _____a)11001b)01001c)10100d)10010Correct answer is option 'A'. Can you explain this answer? tests, examples and also practice Electrical Engineering (EE) tests.
Explore Courses for Electrical Engineering (EE) exam

Top Courses for Electrical Engineering (EE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev