3.3 Binary Arithmetic & Logic Operations
This lesson covers fundamental binary arithmetic operations focusing on integer addition and subtraction, including carry and borrow mechanisms. It also explains bitwise logical operations (NOT, AND, OR, and XOR) with truth tables and examples, detailing how inputs are processed bit-by-bit.
ප්රධාන සංකල්ප
- Binary Addition
- The process of combining two or more binary numbers, which involves carrying over values to the next higher place value when a sum exceeds 1 (e.g., 1 + 1 = 10 in binary, which is 0 with a carry of 1).
- Binary Subtraction
- The process of finding the difference between two binary numbers, which may involve borrowing a value of 1 (equivalent to 2 in decimal) from an adjacent higher place value when subtracting 1 from 0.
- Bitwise NOT Operation
- A logical operation that takes a single binary number and inverts each bit, changing 0s to 1s and 1s to 0s.
- Bitwise AND Operation
- A logical operation performed on two binary representations of equal length, where each corresponding pair of bits is evaluated to 1 only if both bits are 1, resulting in 0 otherwise.
- Bitwise OR Operation
- A logical operation performed on two binary representations of equal length, where each corresponding pair of bits is evaluated to 0 only if both bits are 0, resulting in 1 otherwise.
- Bitwise XOR Operation
- A logical operation performed on two binary representations of equal length, where the output bit is 0 if both corresponding input bits are identical, and 1 if the input bits are different.
MCQ කට්ටල
MCQ 12විභාගයේදී
- Performing binary addition and subtraction calculations on integer values
- Evaluating the outputs of bitwise NOT, AND, OR, and XOR operations on given binary patterns
- Solving MCQ and structured essay questions requiring step-by-step logic manipulation
