# What's the answer for the question:A, B and C are 8 bit no's. They are as follows:A -> 1 1 0 0 0 1 0 1B -> 0 0 1 1 0 0 1 1C -> 0 0 1 1 1 0 1 0 ( - =minus, u=union)Find ((A - C) u B) =?

This question is related to TCS Interview

hydsarema

• Member Since Aug-2008 | May 24th, 2009

A-C is the substraction of two binary numbers
ie A is added to the complement of C
which gives

10001011.

the unoin operation if considered as the 'or' operation ie  /
we have 10001011 / 00110011 then we have the answer as
10111011.
please let me know  to deduce the correct ans if the above is wrong.

#### haja

• Oct 13th, 2006

A->11000101

B->00110011

C->00111010

FIND (A-B)UC

ans:

-(minus)  mean take AND operation

U(union) mean take OR operation

A-B->00000001

(A-B)U C->(A-B) OR operation with C

->00111010

#### Seenivasan.S

• Feb 20th, 2007

I think minus means the complement of C and add with A and add one with the answer will be got and union means obviously OR..................

#### indira.moparthi Profile Answers by indira.moparthi

• Mar 13th, 2009

Here A is negative number
Hence by removing sign bit A->1000101
Its 2's complement is 0111011
Hence A-C=0
Hence solution is B

#### hydsarema Profile Answers by hydsarema

• May 24th, 2009

A-C is the substraction of two binary numbers
ie A is added to the complement of C
which gives

10001011.

the unoin operation if considered as the 'or' operation ie  /
we have 10001011 / 00110011 then we have the answer as
10111011.
please let me know  to deduce the correct ans if the above is wrong.

• Oct 2nd, 2009

The binary subraction of A and C is 10001011
and when we take the union it is obivously OR operation so the ans should be
10111011

#### don_bhai Profile Answers by don_bhai

• Nov 13th, 2009

2's complement of C = 11000101+1=11000110 = D

Now, A-C = A+D = 10001011 = E
Now, E U B = 10111011

So, ((A-C) U B) = 10111011 (Ans.)

#### GAIRY HARRY

• Mar 23rd, 2012

When comparing 5400 series logic to 7400 series logic.