Bitwise Operations - عمليات البتات
اختر إجابة واحدة لكل سؤال، وتشوف مباشرة إذا كانت صح. في النهاية تطلع نتيجتك وتقدر تتحدى فيها أصحابك.
نحسب نتيجتك…
أسئلة هذا التحدي (١٠)
- For the binary _____ operator, if the input is two 1s, the output is 0.
- For the binary _____ operator, if the input is two 0s, the output is 0.
- The unary _____ operator inverts its single input.
- To flip all the bits of a pattern, make a mask of all 1s and then _____ the bit pattern and the mask.
- To unset (force to 0) all the bits of a pattern, make a mask of all 0s and then _____ the bit pattern and the mask.
- To set (force to 1) all the bits of a pattern, make a mask of all 1s and then _____ the bit pattern and the mask.
- In two's complement representation with a 4-bit allocation, you get ____ when you add 1 to 7.
- To multiply a number by 2, use ______.
- To divide a number by 2, use ______.
- In two's complement representation with a 4-bit allocation, you get ____ when you add 5 to 5.