Question-107: When
X=1
Y=1
Please map below bitwise operate result
X & B = 1
X | B = 1
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering Python Certification Material
Answer:
Exp:
Bitwise operator
- & - Bitwise And
- | - Bitwise Or
- ^ - Bitwise exclusive or
- ~ - Bitwise negation
X |
Y |
X & B |
X | B |
X ^ B |
0 |
0 |
0 |
0 |
0 |
0 |
1 |
0 |
1 |
1 |
1 |
0 |
0 |
1 |
1 |
1 |
1 |
1 |
1 |
0 |
You can access to full explanation to question and answer from this page.