Question: 84. Input 2 integers x, y [ -231,231-1 ], then output 1s complement of x, x, y, x bitwise-and y, x bitwise-inclusive-or y, x bitwise-exclusive-or

84. Input 2 integers x, y [ -231,231-1 ], then output 1s complement of x, x, y, x bitwise-and y, x bitwise-inclusive-or y, x bitwise-exclusive-or y all as 32-bit unsigned binary integers. No negative signs should show up in the output. Here is an example of properly formatted output x? 123 y? 456 x = 00000000000000000000000001111011 y = 00000000000000000000000111001000 ~x = 11111111111111111111111110000100 x & y = 00000000000000000000000001001000 x | y = 00000000000000000000000111111011 x ^ y = 00000000000000000000000110110011

I need it in python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!