Quantitative Aptitude Question:
Download Questions PDF

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

Answer:

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.

Download Quantitative Aptitude Interview Questions And Answers PDF

Previous QuestionNext Question
194 base 10= ___ base 5

The base 5 representation of the decimal number 2048 is______?
TCS Quantitative Aptitude Questions: