GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  TCS  >  Critical Reasoning
Go To First  |  Previous Question  |  Next Question 
 Critical Reasoning  |  Question 26 of 28    Print  
what's the answer for that question:
A, B and C are 8 bit no's. They are as follows:
A -> 1 1 0 0 0 1 0 1
B -> 0 0 1 1 0 0 1 1
C -> 0 0 1 1 1 0 1 0 ( - =minus, u=union)
Find ((A - C) u B) =?

  
Total Answers and Comments: 6 Last Update: November 13, 2009     Asked by: haja 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: hydsarema
 

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.



Above answer was rated as good by the following members:
aman15490
October 13, 2006 16:05:02   #1  
haja        

RE: what's the answer for that question:A, B and...

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


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
February 20, 2007 16:23:55   #2  
Seenivasan.S        

RE: what's the answer for that question:A, B and...
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..................

 
Is this answer useful? Yes | No
March 13, 2009 07:38:14   #3  
indira.moparthi Member Since: February 2009   Contribution: 6    

RE: what's the answer for that 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) =?
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

 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
May 24, 2009 03:38:19   #4  
hydsarema Member Since: August 2008   Contribution: 11    

RE: what's the answer for that 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) =?

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.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
October 02, 2009 12:46:50   #5  
anusha madhu Member Since: October 2009   Contribution: 1    

RE: what's the answer for that 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) =?
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

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 13, 2009 04:55:52   #6  
don_bhai Member Since: November 2009   Contribution: 1    

RE: what's the answer for that 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) =?
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.)

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape