A 0 0 0 0 1 1 1 1B 0 0 1 1 0 0 1 1C 0 1 0 1 0 1 0 1Find ( A u B ) n C

This question is related to TCS Interview

Showing Answers 1 - 20 of 20 Answers

manoj

  • Oct 9th, 2006
 

tell me the procedure to solve this problem

  Was this answer useful?  Yes

Francis

  • Oct 10th, 2006
 

Hi,I think you can try this way. Consider U (Union) as OR gate and Intersection as AND gate. Then you can come at the solution

  Was this answer useful?  Yes

jai ailani

  • Feb 1st, 2007
 

ans is 00010101

  Was this answer useful?  Yes

ayush

  • Mar 5th, 2007
 

A: 1 1 0 1 1 0 1 1

B: 0 1 1 1 1 0 1 0

by binary sub. a-b = 01100001 (1-0=1, 1-1=0,0-0=0, now (a-b)uc= 01100001

           or      01101101

gives 1101101... convert to decimal equals 109

  Was this answer useful?  Yes

To find A-C, We will find 2's compliment of C and them add it with A,
That will give us (A-C)
2's compliment of C=1's compliment of C+1
=10101010+1=10101011
A-C=10101011+00001111
=10111010
Now (A-C) U B is .OR. logic operation on (A-C) and B
10111010.OR . 00110011
The answer is = 10111011,
Whose decimal equivalent is 187.

  Was this answer useful?  Yes

sagarpdy

  • Jun 26th, 2009
 

It is one of the representation of sets

i.e.
 A={0,1,2,3}
likewise

hence A U B = A|B=00111111
(AUB)nC= (AUB)&C=00010101
Ans={0,2,4}

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.