Change set
Pick exam & year, then Go.
Question map
Which of the following is/are bit manipulation operators ?
1. 11
2. ^
3. >>
4. <<
Select the correct answer using the code given below :
Explanation
Bit manipulation (or bitwise) operators are used to perform operations at the bit level. In most programming languages (like C, C++, Java, and Python):
- ^ (Bitwise XOR) is a standard bitwise operator.
- >> (Right Shift) and << (Left Shift) are bitwise shift operators used to move bits.
- The symbol 11 in the question is likely a typographical error for a bitwise operator such as & (Bitwise AND) or | (Bitwise OR), or it represents the logical operator ||.
In standard technical MCQs of this format, the list typically includes three bitwise operators and one logical operator (like && or ||). Given the options, 1, 2, and 3 are classified as bit manipulation operators, assuming the fourth is a logical operator typo, which is a common pattern in such examination questions.
SIMILAR QUESTIONS
Which of the following is/are state function / functions? 1. q + w 2. q 3. w 4. H - TS Select the correct answer using the code given below.
If a > b are two real numbers such that a + b = 10 and a2 + b2 = 52, then what is the value of a - b ?
Which one of the following is not a logical operator ?
Which one of the following bits is reserved for the sign bit in signed-magnitude representation?