I think the easiest way to handle the binary questions is to learn/understand binary and simply work through them. ex: 5 & 9 = ? (first convert to binary and find the result) 0101 & 1001 = 0001 (second convert the answer to decimal) 5 & 9 = 1 find two's compliment of 77 (convert 77 to binary) 0100 1101 (invert the digits) 1011 0010 (add 1) 1011 0011 (convert to signed decimal) -51 .... hmmmm did I do that right? [ November 16, 2002: Message edited by: Jessica Sant ]
Jessica - I think you're trying to trick us! 1011 0011 is -77... it's true that 00110011 is 51, but you don't just flip the sign bit to get a negative number... you've got to do the whole 2's compilment tango... were we on our toes?
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)