Fully solved problem book
Bitwise logic
Set 4 of 9 · 32 worked questions. Predict your result before expanding the solution.
These worked traces are meant to build fluency through controlled variation. If several answers feel identical, try the next difficult value and look for the point where a carry, sign, branch, or selected memory address changes the outcome.
Boolean logic · Problem 0097
Calculate 01010110 AND 11101000.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01010110.
- B is the eight-bit string 11101000.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 1) = 0.
- Position 6 (weight 64): AND(1, 1) = 1.
- Position 5 (weight 32): AND(0, 1) = 0.
- Position 4 (weight 16): AND(1, 0) = 0.
- Position 3 (weight 8): AND(0, 1) = 0.
- Position 2 (weight 4): AND(1, 0) = 0.
- Position 1 (weight 2): AND(1, 0) = 0.
- Position 0 (weight 1): AND(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 01000000.
- The output is 64 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 01000000
Boolean logic · Problem 0098
Calculate 01010111 OR 00100001.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01010111.
- B is the eight-bit string 00100001.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 0) = 0.
- Position 6 (weight 64): OR(1, 0) = 1.
- Position 5 (weight 32): OR(0, 1) = 1.
- Position 4 (weight 16): OR(1, 0) = 1.
- Position 3 (weight 8): OR(0, 0) = 0.
- Position 2 (weight 4): OR(1, 0) = 1.
- Position 1 (weight 2): OR(1, 0) = 1.
- Position 0 (weight 1): OR(1, 1) = 1.
- Concatenate the output bits from position seven to zero: 01110111.
- The output is 119 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 01110111
Boolean logic · Problem 0099
Calculate 01011001 XOR 00101100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01011001.
- B is the eight-bit string 00101100.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(1, 0) = 1.
- Position 5 (weight 32): XOR(0, 1) = 1.
- Position 4 (weight 16): XOR(1, 0) = 1.
- Position 3 (weight 8): XOR(1, 1) = 0.
- Position 2 (weight 4): XOR(0, 1) = 1.
- Position 1 (weight 2): XOR(0, 0) = 0.
- Position 0 (weight 1): XOR(1, 0) = 1.
- Concatenate the output bits from position seven to zero: 01110101.
- The output is 117 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 01110101
Boolean logic · Problem 0100
Calculate 01011001 XOR 01100111.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01011001.
- B is the eight-bit string 01100111.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(1, 1) = 0.
- Position 5 (weight 32): XOR(0, 1) = 1.
- Position 4 (weight 16): XOR(1, 0) = 1.
- Position 3 (weight 8): XOR(1, 0) = 1.
- Position 2 (weight 4): XOR(0, 1) = 1.
- Position 1 (weight 2): XOR(0, 1) = 1.
- Position 0 (weight 1): XOR(1, 1) = 0.
- Concatenate the output bits from position seven to zero: 00111110.
- The output is 62 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 00111110
Boolean logic · Problem 0101
Calculate 01011011 OR 01011100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01011011.
- B is the eight-bit string 01011100.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 0) = 0.
- Position 6 (weight 64): OR(1, 1) = 1.
- Position 5 (weight 32): OR(0, 0) = 0.
- Position 4 (weight 16): OR(1, 1) = 1.
- Position 3 (weight 8): OR(1, 1) = 1.
- Position 2 (weight 4): OR(0, 1) = 1.
- Position 1 (weight 2): OR(1, 0) = 1.
- Position 0 (weight 1): OR(1, 0) = 1.
- Concatenate the output bits from position seven to zero: 01011111.
- The output is 95 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 01011111
Boolean logic · Problem 0102
Calculate 01011011 XOR 01100010.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01011011.
- B is the eight-bit string 01100010.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(1, 1) = 0.
- Position 5 (weight 32): XOR(0, 1) = 1.
- Position 4 (weight 16): XOR(1, 0) = 1.
- Position 3 (weight 8): XOR(1, 0) = 1.
- Position 2 (weight 4): XOR(0, 0) = 0.
- Position 1 (weight 2): XOR(1, 1) = 0.
- Position 0 (weight 1): XOR(1, 0) = 1.
- Concatenate the output bits from position seven to zero: 00111001.
- The output is 57 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 00111001
Boolean logic · Problem 0103
Calculate 01011011 OR 11010001.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01011011.
- B is the eight-bit string 11010001.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 1) = 1.
- Position 6 (weight 64): OR(1, 1) = 1.
- Position 5 (weight 32): OR(0, 0) = 0.
- Position 4 (weight 16): OR(1, 1) = 1.
- Position 3 (weight 8): OR(1, 0) = 1.
- Position 2 (weight 4): OR(0, 0) = 0.
- Position 1 (weight 2): OR(1, 0) = 1.
- Position 0 (weight 1): OR(1, 1) = 1.
- Concatenate the output bits from position seven to zero: 11011011.
- The output is 219 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 11011011
Boolean logic · Problem 0104
Calculate 01011100 AND 10011100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01011100.
- B is the eight-bit string 10011100.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 1) = 0.
- Position 6 (weight 64): AND(1, 0) = 0.
- Position 5 (weight 32): AND(0, 0) = 0.
- Position 4 (weight 16): AND(1, 1) = 1.
- Position 3 (weight 8): AND(1, 1) = 1.
- Position 2 (weight 4): AND(1, 1) = 1.
- Position 1 (weight 2): AND(0, 0) = 0.
- Position 0 (weight 1): AND(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 00011100.
- The output is 28 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00011100
Boolean logic · Problem 0105
Calculate 01011111 AND 01110100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01011111.
- B is the eight-bit string 01110100.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 0) = 0.
- Position 6 (weight 64): AND(1, 1) = 1.
- Position 5 (weight 32): AND(0, 1) = 0.
- Position 4 (weight 16): AND(1, 1) = 1.
- Position 3 (weight 8): AND(1, 0) = 0.
- Position 2 (weight 4): AND(1, 1) = 1.
- Position 1 (weight 2): AND(1, 0) = 0.
- Position 0 (weight 1): AND(1, 0) = 0.
- Concatenate the output bits from position seven to zero: 01010100.
- The output is 84 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 01010100
Boolean logic · Problem 0106
Calculate 01011111 OR 10110010.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01011111.
- B is the eight-bit string 10110010.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 1) = 1.
- Position 6 (weight 64): OR(1, 0) = 1.
- Position 5 (weight 32): OR(0, 1) = 1.
- Position 4 (weight 16): OR(1, 1) = 1.
- Position 3 (weight 8): OR(1, 0) = 1.
- Position 2 (weight 4): OR(1, 0) = 1.
- Position 1 (weight 2): OR(1, 1) = 1.
- Position 0 (weight 1): OR(1, 0) = 1.
- Concatenate the output bits from position seven to zero: 11111111.
- The output is 255 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 11111111
Boolean logic · Problem 0107
Calculate 01011111 AND 10110110.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01011111.
- B is the eight-bit string 10110110.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 1) = 0.
- Position 6 (weight 64): AND(1, 0) = 0.
- Position 5 (weight 32): AND(0, 1) = 0.
- Position 4 (weight 16): AND(1, 1) = 1.
- Position 3 (weight 8): AND(1, 0) = 0.
- Position 2 (weight 4): AND(1, 1) = 1.
- Position 1 (weight 2): AND(1, 1) = 1.
- Position 0 (weight 1): AND(1, 0) = 0.
- Concatenate the output bits from position seven to zero: 00010110.
- The output is 22 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00010110
Boolean logic · Problem 0108
Calculate 01100000 XOR 00011111.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01100000.
- B is the eight-bit string 00011111.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(1, 0) = 1.
- Position 5 (weight 32): XOR(1, 0) = 1.
- Position 4 (weight 16): XOR(0, 1) = 1.
- Position 3 (weight 8): XOR(0, 1) = 1.
- Position 2 (weight 4): XOR(0, 1) = 1.
- Position 1 (weight 2): XOR(0, 1) = 1.
- Position 0 (weight 1): XOR(0, 1) = 1.
- Concatenate the output bits from position seven to zero: 01111111.
- The output is 127 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 01111111
Boolean logic · Problem 0109
Calculate 01100000 OR 11010100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01100000.
- B is the eight-bit string 11010100.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 1) = 1.
- Position 6 (weight 64): OR(1, 1) = 1.
- Position 5 (weight 32): OR(1, 0) = 1.
- Position 4 (weight 16): OR(0, 1) = 1.
- Position 3 (weight 8): OR(0, 0) = 0.
- Position 2 (weight 4): OR(0, 1) = 1.
- Position 1 (weight 2): OR(0, 0) = 0.
- Position 0 (weight 1): OR(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 11110100.
- The output is 244 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 11110100
Boolean logic · Problem 0110
Calculate 01100011 AND 01111000.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01100011.
- B is the eight-bit string 01111000.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 0) = 0.
- Position 6 (weight 64): AND(1, 1) = 1.
- Position 5 (weight 32): AND(1, 1) = 1.
- Position 4 (weight 16): AND(0, 1) = 0.
- Position 3 (weight 8): AND(0, 1) = 0.
- Position 2 (weight 4): AND(0, 0) = 0.
- Position 1 (weight 2): AND(1, 0) = 0.
- Position 0 (weight 1): AND(1, 0) = 0.
- Concatenate the output bits from position seven to zero: 01100000.
- The output is 96 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 01100000
Boolean logic · Problem 0111
Calculate 01100011 OR 11111001.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01100011.
- B is the eight-bit string 11111001.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 1) = 1.
- Position 6 (weight 64): OR(1, 1) = 1.
- Position 5 (weight 32): OR(1, 1) = 1.
- Position 4 (weight 16): OR(0, 1) = 1.
- Position 3 (weight 8): OR(0, 1) = 1.
- Position 2 (weight 4): OR(0, 0) = 0.
- Position 1 (weight 2): OR(1, 0) = 1.
- Position 0 (weight 1): OR(1, 1) = 1.
- Concatenate the output bits from position seven to zero: 11111011.
- The output is 251 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 11111011
Boolean logic · Problem 0112
Calculate 01100100 AND 00001010.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01100100.
- B is the eight-bit string 00001010.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 0) = 0.
- Position 6 (weight 64): AND(1, 0) = 0.
- Position 5 (weight 32): AND(1, 0) = 0.
- Position 4 (weight 16): AND(0, 0) = 0.
- Position 3 (weight 8): AND(0, 1) = 0.
- Position 2 (weight 4): AND(1, 0) = 0.
- Position 1 (weight 2): AND(0, 1) = 0.
- Position 0 (weight 1): AND(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 00000000.
- The output is 0 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00000000
Boolean logic · Problem 0113
Calculate 01101000 AND 10000010.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01101000.
- B is the eight-bit string 10000010.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 1) = 0.
- Position 6 (weight 64): AND(1, 0) = 0.
- Position 5 (weight 32): AND(1, 0) = 0.
- Position 4 (weight 16): AND(0, 0) = 0.
- Position 3 (weight 8): AND(1, 0) = 0.
- Position 2 (weight 4): AND(0, 0) = 0.
- Position 1 (weight 2): AND(0, 1) = 0.
- Position 0 (weight 1): AND(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 00000000.
- The output is 0 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00000000
Boolean logic · Problem 0114
Calculate 01101001 AND 01000100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01101001.
- B is the eight-bit string 01000100.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 0) = 0.
- Position 6 (weight 64): AND(1, 1) = 1.
- Position 5 (weight 32): AND(1, 0) = 0.
- Position 4 (weight 16): AND(0, 0) = 0.
- Position 3 (weight 8): AND(1, 0) = 0.
- Position 2 (weight 4): AND(0, 1) = 0.
- Position 1 (weight 2): AND(0, 0) = 0.
- Position 0 (weight 1): AND(1, 0) = 0.
- Concatenate the output bits from position seven to zero: 01000000.
- The output is 64 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 01000000
Boolean logic · Problem 0115
Calculate 01101001 XOR 01010111.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01101001.
- B is the eight-bit string 01010111.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(1, 1) = 0.
- Position 5 (weight 32): XOR(1, 0) = 1.
- Position 4 (weight 16): XOR(0, 1) = 1.
- Position 3 (weight 8): XOR(1, 0) = 1.
- Position 2 (weight 4): XOR(0, 1) = 1.
- Position 1 (weight 2): XOR(0, 1) = 1.
- Position 0 (weight 1): XOR(1, 1) = 0.
- Concatenate the output bits from position seven to zero: 00111110.
- The output is 62 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 00111110
Boolean logic · Problem 0116
Calculate 01101001 OR 10100010.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01101001.
- B is the eight-bit string 10100010.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 1) = 1.
- Position 6 (weight 64): OR(1, 0) = 1.
- Position 5 (weight 32): OR(1, 1) = 1.
- Position 4 (weight 16): OR(0, 0) = 0.
- Position 3 (weight 8): OR(1, 0) = 1.
- Position 2 (weight 4): OR(0, 0) = 0.
- Position 1 (weight 2): OR(0, 1) = 1.
- Position 0 (weight 1): OR(1, 0) = 1.
- Concatenate the output bits from position seven to zero: 11101011.
- The output is 235 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 11101011
Boolean logic · Problem 0117
Calculate 01101010 XOR 00010110.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01101010.
- B is the eight-bit string 00010110.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(1, 0) = 1.
- Position 5 (weight 32): XOR(1, 0) = 1.
- Position 4 (weight 16): XOR(0, 1) = 1.
- Position 3 (weight 8): XOR(1, 0) = 1.
- Position 2 (weight 4): XOR(0, 1) = 1.
- Position 1 (weight 2): XOR(1, 1) = 0.
- Position 0 (weight 1): XOR(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 01111100.
- The output is 124 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 01111100
Boolean logic · Problem 0118
Calculate 01101011 AND 00010000.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01101011.
- B is the eight-bit string 00010000.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 0) = 0.
- Position 6 (weight 64): AND(1, 0) = 0.
- Position 5 (weight 32): AND(1, 0) = 0.
- Position 4 (weight 16): AND(0, 1) = 0.
- Position 3 (weight 8): AND(1, 0) = 0.
- Position 2 (weight 4): AND(0, 0) = 0.
- Position 1 (weight 2): AND(1, 0) = 0.
- Position 0 (weight 1): AND(1, 0) = 0.
- Concatenate the output bits from position seven to zero: 00000000.
- The output is 0 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00000000
Boolean logic · Problem 0119
Calculate 01101011 OR 10010010.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01101011.
- B is the eight-bit string 10010010.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 1) = 1.
- Position 6 (weight 64): OR(1, 0) = 1.
- Position 5 (weight 32): OR(1, 0) = 1.
- Position 4 (weight 16): OR(0, 1) = 1.
- Position 3 (weight 8): OR(1, 0) = 1.
- Position 2 (weight 4): OR(0, 0) = 0.
- Position 1 (weight 2): OR(1, 1) = 1.
- Position 0 (weight 1): OR(1, 0) = 1.
- Concatenate the output bits from position seven to zero: 11111011.
- The output is 251 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 11111011
Boolean logic · Problem 0120
Calculate 01101100 OR 11100110.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01101100.
- B is the eight-bit string 11100110.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 1) = 1.
- Position 6 (weight 64): OR(1, 1) = 1.
- Position 5 (weight 32): OR(1, 1) = 1.
- Position 4 (weight 16): OR(0, 0) = 0.
- Position 3 (weight 8): OR(1, 0) = 1.
- Position 2 (weight 4): OR(1, 1) = 1.
- Position 1 (weight 2): OR(0, 1) = 1.
- Position 0 (weight 1): OR(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 11101110.
- The output is 238 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 11101110
Boolean logic · Problem 0121
Calculate 01101100 XOR 11111101.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01101100.
- B is the eight-bit string 11111101.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 1) = 1.
- Position 6 (weight 64): XOR(1, 1) = 0.
- Position 5 (weight 32): XOR(1, 1) = 0.
- Position 4 (weight 16): XOR(0, 1) = 1.
- Position 3 (weight 8): XOR(1, 1) = 0.
- Position 2 (weight 4): XOR(1, 1) = 0.
- Position 1 (weight 2): XOR(0, 0) = 0.
- Position 0 (weight 1): XOR(0, 1) = 1.
- Concatenate the output bits from position seven to zero: 10010001.
- The output is 145 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 10010001
Boolean logic · Problem 0122
Calculate 01101110 XOR 10110101.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01101110.
- B is the eight-bit string 10110101.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 1) = 1.
- Position 6 (weight 64): XOR(1, 0) = 1.
- Position 5 (weight 32): XOR(1, 1) = 0.
- Position 4 (weight 16): XOR(0, 1) = 1.
- Position 3 (weight 8): XOR(1, 0) = 1.
- Position 2 (weight 4): XOR(1, 1) = 0.
- Position 1 (weight 2): XOR(1, 0) = 1.
- Position 0 (weight 1): XOR(0, 1) = 1.
- Concatenate the output bits from position seven to zero: 11011011.
- The output is 219 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 11011011
Boolean logic · Problem 0123
Calculate 01101110 OR 11100110.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01101110.
- B is the eight-bit string 11100110.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 1) = 1.
- Position 6 (weight 64): OR(1, 1) = 1.
- Position 5 (weight 32): OR(1, 1) = 1.
- Position 4 (weight 16): OR(0, 0) = 0.
- Position 3 (weight 8): OR(1, 0) = 1.
- Position 2 (weight 4): OR(1, 1) = 1.
- Position 1 (weight 2): OR(1, 1) = 1.
- Position 0 (weight 1): OR(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 11101110.
- The output is 238 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 11101110
Boolean logic · Problem 0124
Calculate 01101111 OR 00111010.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01101111.
- B is the eight-bit string 00111010.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 0) = 0.
- Position 6 (weight 64): OR(1, 0) = 1.
- Position 5 (weight 32): OR(1, 1) = 1.
- Position 4 (weight 16): OR(0, 1) = 1.
- Position 3 (weight 8): OR(1, 1) = 1.
- Position 2 (weight 4): OR(1, 0) = 1.
- Position 1 (weight 2): OR(1, 1) = 1.
- Position 0 (weight 1): OR(1, 0) = 1.
- Concatenate the output bits from position seven to zero: 01111111.
- The output is 127 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 01111111
Boolean logic · Problem 0125
Calculate 01110000 AND 00011000.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01110000.
- B is the eight-bit string 00011000.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 0) = 0.
- Position 6 (weight 64): AND(1, 0) = 0.
- Position 5 (weight 32): AND(1, 0) = 0.
- Position 4 (weight 16): AND(1, 1) = 1.
- Position 3 (weight 8): AND(0, 1) = 0.
- Position 2 (weight 4): AND(0, 0) = 0.
- Position 1 (weight 2): AND(0, 0) = 0.
- Position 0 (weight 1): AND(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 00010000.
- The output is 16 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00010000
Boolean logic · Problem 0126
Calculate 01110000 XOR 10101000.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01110000.
- B is the eight-bit string 10101000.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 1) = 1.
- Position 6 (weight 64): XOR(1, 0) = 1.
- Position 5 (weight 32): XOR(1, 1) = 0.
- Position 4 (weight 16): XOR(1, 0) = 1.
- Position 3 (weight 8): XOR(0, 1) = 1.
- Position 2 (weight 4): XOR(0, 0) = 0.
- Position 1 (weight 2): XOR(0, 0) = 0.
- Position 0 (weight 1): XOR(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 11011000.
- The output is 216 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 11011000
Boolean logic · Problem 0127
Calculate 01110010 OR 10000101.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01110010.
- B is the eight-bit string 10000101.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 1) = 1.
- Position 6 (weight 64): OR(1, 0) = 1.
- Position 5 (weight 32): OR(1, 0) = 1.
- Position 4 (weight 16): OR(1, 0) = 1.
- Position 3 (weight 8): OR(0, 0) = 0.
- Position 2 (weight 4): OR(0, 1) = 1.
- Position 1 (weight 2): OR(1, 0) = 1.
- Position 0 (weight 1): OR(0, 1) = 1.
- Concatenate the output bits from position seven to zero: 11110111.
- The output is 247 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 11110111
Boolean logic · Problem 0128
Calculate 01110010 OR 10100000.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 01110010.
- B is the eight-bit string 10100000.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 1) = 1.
- Position 6 (weight 64): OR(1, 0) = 1.
- Position 5 (weight 32): OR(1, 1) = 1.
- Position 4 (weight 16): OR(1, 0) = 1.
- Position 3 (weight 8): OR(0, 0) = 0.
- Position 2 (weight 4): OR(0, 0) = 0.
- Position 1 (weight 2): OR(1, 0) = 1.
- Position 0 (weight 1): OR(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 11110010.
- The output is 242 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 11110010