Fully solved problem book
Bitwise logic
Set 1 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 0001
Calculate 00000001 XOR 01000001.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00000001.
- B is the eight-bit string 01000001.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(0, 1) = 1.
- Position 5 (weight 32): XOR(0, 0) = 0.
- Position 4 (weight 16): XOR(0, 0) = 0.
- Position 3 (weight 8): XOR(0, 0) = 0.
- Position 2 (weight 4): XOR(0, 0) = 0.
- Position 1 (weight 2): XOR(0, 0) = 0.
- Position 0 (weight 1): XOR(1, 1) = 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 XOR operation.
Final answer: 01000000
Boolean logic · Problem 0002
Calculate 00000010 XOR 01101100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00000010.
- B is the eight-bit string 01101100.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(0, 1) = 1.
- Position 5 (weight 32): XOR(0, 1) = 1.
- Position 4 (weight 16): XOR(0, 0) = 0.
- Position 3 (weight 8): XOR(0, 1) = 1.
- Position 2 (weight 4): XOR(0, 1) = 1.
- Position 1 (weight 2): XOR(1, 0) = 1.
- Position 0 (weight 1): XOR(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 01101110.
- The output is 110 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 01101110
Boolean logic · Problem 0003
Calculate 00000100 AND 00110111.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00000100.
- B is the eight-bit string 00110111.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 0) = 0.
- Position 6 (weight 64): AND(0, 0) = 0.
- Position 5 (weight 32): AND(0, 1) = 0.
- Position 4 (weight 16): AND(0, 1) = 0.
- Position 3 (weight 8): AND(0, 0) = 0.
- Position 2 (weight 4): AND(1, 1) = 1.
- Position 1 (weight 2): AND(0, 1) = 0.
- Position 0 (weight 1): AND(0, 1) = 0.
- Concatenate the output bits from position seven to zero: 00000100.
- The output is 4 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00000100
Boolean logic · Problem 0004
Calculate 00000100 XOR 01111011.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00000100.
- B is the eight-bit string 01111011.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(0, 1) = 1.
- Position 5 (weight 32): XOR(0, 1) = 1.
- Position 4 (weight 16): XOR(0, 1) = 1.
- Position 3 (weight 8): XOR(0, 1) = 1.
- Position 2 (weight 4): XOR(1, 0) = 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 0005
Calculate 00000101 OR 00111011.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00000101.
- B is the eight-bit string 00111011.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 0) = 0.
- Position 6 (weight 64): OR(0, 0) = 0.
- Position 5 (weight 32): OR(0, 1) = 1.
- Position 4 (weight 16): OR(0, 1) = 1.
- Position 3 (weight 8): OR(0, 1) = 1.
- Position 2 (weight 4): OR(1, 0) = 1.
- Position 1 (weight 2): OR(0, 1) = 1.
- Position 0 (weight 1): OR(1, 1) = 1.
- Concatenate the output bits from position seven to zero: 00111111.
- The output is 63 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 00111111
Boolean logic · Problem 0006
Calculate 00000110 XOR 11100100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00000110.
- B is the eight-bit string 11100100.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 1) = 1.
- Position 6 (weight 64): XOR(0, 1) = 1.
- Position 5 (weight 32): XOR(0, 1) = 1.
- Position 4 (weight 16): XOR(0, 0) = 0.
- Position 3 (weight 8): XOR(0, 0) = 0.
- Position 2 (weight 4): XOR(1, 1) = 0.
- Position 1 (weight 2): XOR(1, 0) = 1.
- Position 0 (weight 1): XOR(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 11100010.
- The output is 226 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 11100010
Boolean logic · Problem 0007
Calculate 00001000 AND 00110000.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00001000.
- B is the eight-bit string 00110000.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 0) = 0.
- Position 6 (weight 64): AND(0, 0) = 0.
- Position 5 (weight 32): AND(0, 1) = 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(0, 0) = 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 0008
Calculate 00001000 XOR 01100100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00001000.
- B is the eight-bit string 01100100.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(0, 1) = 1.
- Position 5 (weight 32): XOR(0, 1) = 1.
- Position 4 (weight 16): XOR(0, 0) = 0.
- Position 3 (weight 8): XOR(1, 0) = 1.
- Position 2 (weight 4): XOR(0, 1) = 1.
- 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: 01101100.
- The output is 108 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 01101100
Boolean logic · Problem 0009
Calculate 00001000 OR 10010100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00001000.
- B is the eight-bit string 10010100.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 1) = 1.
- Position 6 (weight 64): OR(0, 0) = 0.
- Position 5 (weight 32): OR(0, 0) = 0.
- Position 4 (weight 16): OR(0, 1) = 1.
- Position 3 (weight 8): OR(1, 0) = 1.
- 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: 10011100.
- The output is 156 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 10011100
Boolean logic · Problem 0010
Calculate 00001011 AND 00010011.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00001011.
- B is the eight-bit string 00010011.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 0) = 0.
- Position 6 (weight 64): AND(0, 0) = 0.
- Position 5 (weight 32): AND(0, 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, 1) = 1.
- Position 0 (weight 1): AND(1, 1) = 1.
- Concatenate the output bits from position seven to zero: 00000011.
- The output is 3 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00000011
Boolean logic · Problem 0011
Calculate 00001011 XOR 01101101.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00001011.
- B is the eight-bit string 01101101.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(0, 1) = 1.
- Position 5 (weight 32): XOR(0, 1) = 1.
- Position 4 (weight 16): XOR(0, 0) = 0.
- Position 3 (weight 8): XOR(1, 1) = 0.
- Position 2 (weight 4): XOR(0, 1) = 1.
- Position 1 (weight 2): XOR(1, 0) = 1.
- Position 0 (weight 1): XOR(1, 1) = 0.
- Concatenate the output bits from position seven to zero: 01100110.
- The output is 102 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 01100110
Boolean logic · Problem 0012
Calculate 00001100 AND 01110111.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00001100.
- B is the eight-bit string 01110111.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 0) = 0.
- Position 6 (weight 64): AND(0, 1) = 0.
- Position 5 (weight 32): AND(0, 1) = 0.
- Position 4 (weight 16): AND(0, 1) = 0.
- Position 3 (weight 8): AND(1, 0) = 0.
- Position 2 (weight 4): AND(1, 1) = 1.
- Position 1 (weight 2): AND(0, 1) = 0.
- Position 0 (weight 1): AND(0, 1) = 0.
- Concatenate the output bits from position seven to zero: 00000100.
- The output is 4 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00000100
Boolean logic · Problem 0013
Calculate 00001100 AND 10110010.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00001100.
- B is the eight-bit string 10110010.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 1) = 0.
- Position 6 (weight 64): AND(0, 0) = 0.
- Position 5 (weight 32): AND(0, 1) = 0.
- Position 4 (weight 16): AND(0, 1) = 0.
- Position 3 (weight 8): AND(1, 0) = 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 0014
Calculate 00001111 AND 01101110.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00001111.
- B is the eight-bit string 01101110.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 0) = 0.
- Position 6 (weight 64): AND(0, 1) = 0.
- Position 5 (weight 32): AND(0, 1) = 0.
- Position 4 (weight 16): AND(0, 0) = 0.
- Position 3 (weight 8): AND(1, 1) = 1.
- 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: 00001110.
- The output is 14 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00001110
Boolean logic · Problem 0015
Calculate 00001111 AND 11010101.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00001111.
- B is the eight-bit string 11010101.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 1) = 0.
- Position 6 (weight 64): AND(0, 1) = 0.
- Position 5 (weight 32): AND(0, 0) = 0.
- Position 4 (weight 16): AND(0, 1) = 0.
- 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, 1) = 1.
- Concatenate the output bits from position seven to zero: 00000101.
- The output is 5 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00000101
Boolean logic · Problem 0016
Calculate 00010001 XOR 00000001.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00010001.
- B is the eight-bit string 00000001.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(0, 0) = 0.
- Position 5 (weight 32): XOR(0, 0) = 0.
- Position 4 (weight 16): XOR(1, 0) = 1.
- Position 3 (weight 8): XOR(0, 0) = 0.
- Position 2 (weight 4): XOR(0, 0) = 0.
- Position 1 (weight 2): XOR(0, 0) = 0.
- Position 0 (weight 1): XOR(1, 1) = 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 XOR operation.
Final answer: 00010000
Boolean logic · Problem 0017
Calculate 00010100 XOR 00001010.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00010100.
- B is the eight-bit string 00001010.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(0, 0) = 0.
- Position 5 (weight 32): XOR(0, 0) = 0.
- Position 4 (weight 16): XOR(1, 0) = 1.
- Position 3 (weight 8): XOR(0, 1) = 1.
- Position 2 (weight 4): XOR(1, 0) = 1.
- Position 1 (weight 2): XOR(0, 1) = 1.
- Position 0 (weight 1): XOR(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 00011110.
- The output is 30 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 00011110
Boolean logic · Problem 0018
Calculate 00010100 OR 01011100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00010100.
- 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(0, 1) = 1.
- Position 5 (weight 32): OR(0, 0) = 0.
- Position 4 (weight 16): OR(1, 1) = 1.
- Position 3 (weight 8): OR(0, 1) = 1.
- Position 2 (weight 4): OR(1, 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: 01011100.
- The output is 92 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 01011100
Boolean logic · Problem 0019
Calculate 00010101 AND 11011010.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00010101.
- B is the eight-bit string 11011010.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 1) = 0.
- Position 6 (weight 64): AND(0, 1) = 0.
- Position 5 (weight 32): AND(0, 0) = 0.
- Position 4 (weight 16): AND(1, 1) = 1.
- 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(1, 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 0020
Calculate 00010110 AND 10110110.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00010110.
- 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(0, 0) = 0.
- Position 5 (weight 32): AND(0, 1) = 0.
- Position 4 (weight 16): AND(1, 1) = 1.
- Position 3 (weight 8): AND(0, 0) = 0.
- Position 2 (weight 4): AND(1, 1) = 1.
- Position 1 (weight 2): AND(1, 1) = 1.
- Position 0 (weight 1): AND(0, 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 0021
Calculate 00010111 OR 01101111.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00010111.
- B is the eight-bit string 01101111.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 0) = 0.
- Position 6 (weight 64): OR(0, 1) = 1.
- Position 5 (weight 32): OR(0, 1) = 1.
- Position 4 (weight 16): OR(1, 0) = 1.
- Position 3 (weight 8): OR(0, 1) = 1.
- Position 2 (weight 4): OR(1, 1) = 1.
- Position 1 (weight 2): OR(1, 1) = 1.
- Position 0 (weight 1): OR(1, 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 OR operation.
Final answer: 01111111
Boolean logic · Problem 0022
Calculate 00010111 XOR 10100101.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00010111.
- B is the eight-bit string 10100101.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 1) = 1.
- Position 6 (weight 64): XOR(0, 0) = 0.
- Position 5 (weight 32): XOR(0, 1) = 1.
- Position 4 (weight 16): XOR(1, 0) = 1.
- Position 3 (weight 8): XOR(0, 0) = 0.
- Position 2 (weight 4): XOR(1, 1) = 0.
- Position 1 (weight 2): XOR(1, 0) = 1.
- Position 0 (weight 1): XOR(1, 1) = 0.
- Concatenate the output bits from position seven to zero: 10110010.
- The output is 178 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 10110010
Boolean logic · Problem 0023
Calculate 00010111 AND 10111001.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00010111.
- B is the eight-bit string 10111001.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 1) = 0.
- Position 6 (weight 64): AND(0, 0) = 0.
- Position 5 (weight 32): AND(0, 1) = 0.
- Position 4 (weight 16): AND(1, 1) = 1.
- 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(1, 1) = 1.
- Concatenate the output bits from position seven to zero: 00010001.
- The output is 17 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00010001
Boolean logic · Problem 0024
Calculate 00010111 AND 11101100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00010111.
- B is the eight-bit string 11101100.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 1) = 0.
- Position 6 (weight 64): AND(0, 1) = 0.
- 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, 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: 00000100.
- The output is 4 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00000100
Boolean logic · Problem 0025
Calculate 00011001 AND 11101000.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00011001.
- 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(0, 1) = 0.
- Position 5 (weight 32): AND(0, 1) = 0.
- Position 4 (weight 16): AND(1, 0) = 0.
- Position 3 (weight 8): AND(1, 1) = 1.
- Position 2 (weight 4): AND(0, 0) = 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: 00001000.
- The output is 8 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00001000
Boolean logic · Problem 0026
Calculate 00011001 XOR 11111111.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00011001.
- B is the eight-bit string 11111111.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 1) = 1.
- Position 6 (weight 64): XOR(0, 1) = 1.
- Position 5 (weight 32): XOR(0, 1) = 1.
- Position 4 (weight 16): XOR(1, 1) = 0.
- Position 3 (weight 8): XOR(1, 1) = 0.
- 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: 11100110.
- The output is 230 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 11100110
Boolean logic · Problem 0027
Calculate 00011010 OR 00110010.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00011010.
- B is the eight-bit string 00110010.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 0) = 0.
- Position 6 (weight 64): OR(0, 0) = 0.
- 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(0, 0) = 0.
- 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: 00111010.
- The output is 58 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 00111010
Boolean logic · Problem 0028
Calculate 00011010 AND 00111010.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00011010.
- B is the eight-bit string 00111010.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 0) = 0.
- Position 6 (weight 64): AND(0, 0) = 0.
- Position 5 (weight 32): AND(0, 1) = 0.
- Position 4 (weight 16): AND(1, 1) = 1.
- Position 3 (weight 8): AND(1, 1) = 1.
- Position 2 (weight 4): AND(0, 0) = 0.
- Position 1 (weight 2): AND(1, 1) = 1.
- Position 0 (weight 1): AND(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 00011010.
- The output is 26 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00011010
Boolean logic · Problem 0029
Calculate 00011010 XOR 01111100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00011010.
- B is the eight-bit string 01111100.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 0) = 0.
- Position 6 (weight 64): XOR(0, 1) = 1.
- Position 5 (weight 32): XOR(0, 1) = 1.
- Position 4 (weight 16): XOR(1, 1) = 0.
- Position 3 (weight 8): XOR(1, 1) = 0.
- Position 2 (weight 4): XOR(0, 1) = 1.
- Position 1 (weight 2): XOR(1, 0) = 1.
- Position 0 (weight 1): XOR(0, 0) = 0.
- Concatenate the output bits from position seven to zero: 01100110.
- The output is 102 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 01100110
Boolean logic · Problem 0030
Calculate 00011011 XOR 11010100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00011011.
- B is the eight-bit string 11010100.
- The operation is XOR, applied separately to each matching bit position.
- Position 7 (weight 128): XOR(0, 1) = 1.
- Position 6 (weight 64): XOR(0, 1) = 1.
- Position 5 (weight 32): XOR(0, 0) = 0.
- Position 4 (weight 16): XOR(1, 1) = 0.
- Position 3 (weight 8): XOR(1, 0) = 1.
- Position 2 (weight 4): XOR(0, 1) = 1.
- Position 1 (weight 2): XOR(1, 0) = 1.
- Position 0 (weight 1): XOR(1, 0) = 1.
- Concatenate the output bits from position seven to zero: 11001111.
- The output is 207 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise XOR operation.
Final answer: 11001111
Boolean logic · Problem 0031
Calculate 00011101 AND 10110100.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00011101.
- B is the eight-bit string 10110100.
- The operation is AND, applied separately to each matching bit position.
- Position 7 (weight 128): AND(0, 1) = 0.
- Position 6 (weight 64): AND(0, 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(0, 0) = 0.
- Position 0 (weight 1): AND(1, 0) = 0.
- Concatenate the output bits from position seven to zero: 00010100.
- The output is 20 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise AND operation.
Final answer: 00010100
Boolean logic · Problem 0032
Calculate 00011110 OR 00001011.
Try it on paper first. The worked answer is hidden below.
Reveal detailed solution →
- A is the eight-bit string 00011110.
- B is the eight-bit string 00001011.
- The operation is OR, applied separately to each matching bit position.
- Position 7 (weight 128): OR(0, 0) = 0.
- Position 6 (weight 64): OR(0, 0) = 0.
- Position 5 (weight 32): OR(0, 0) = 0.
- Position 4 (weight 16): OR(1, 0) = 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(0, 1) = 1.
- Concatenate the output bits from position seven to zero: 00011111.
- The output is 31 when interpreted as unsigned decimal.
- No arithmetic carries occur in a bitwise OR operation.
Final answer: 00011111