BITWISE OPERATORS Flashcards

1
Q

Operators that are used to compare binary values or binary numbers.

A

BITWISE OPERATORS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Operator copies a bit to the result if it exists in both operands.

A

Bitwise AND

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

It copies a bit if it exists in either operand.

A

Bitwise OR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

It copies a bit if it is set in one operand but not both.

A

Bitwise XOR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

It is unary and has the effect of ‘flipping’ bits.

A

Bitwise NOT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The left operands value is moved left by the number of bits specified by the right operand.

A

Bitwise Left Shift

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The left operands value is moved right by the number of its specified by the right operand

A

Bitwise Right Shift

How well did you know this?
1
Not at all
2
3
4
5
Perfectly