GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  TCS  >  Quantitative Aptitude

 Print  |  
Question:  A 0 0 0 0 1 1 1 1

B 0 0 1 1 0 0 1 1


C 0 1 0 1 0 1 0 1

Find ( A u B ) n C




May 05, 2008 05:08:13 #6
 chandradeepika CRM Expert  Member Since: May 2008    Total Comments: 28 

RE: 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
 
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.

     

 

Back To Question